on 02-24-2009 1:46 PM
Hi,
We use a BI query in our model which gives us an overview of activity status within a campaign. So, we give a campaign_id as variable and we receive a list of status with the number of activities that have that status.
For example:
We give campaign_id=TEST as variable and receive this list:
Status No. of activities
Open 4
Closed 32
Question 1: How can I make some sort of calculation of the total number of activities(so like sum up the cloumn No. of activities in the output table?
Question 2: How can make the following calculation
(No_of_activities_with_status_open / No_of_activities_total) * 100%
?
So actually I want to calculate the percentage of a certain status and display that in a table. Any suggestions?
thanks in advance and best regards,
Jan Laros
Hi Jan Laros,
Try the below steps.
1. Drag one 'Aggregate Data' operator from output table.
2. In 'Configure Element window' of the aggregate data select the value as 'SUM' for 'No. of activities' field
3. Drag a form from it and it shows the total sum(total no of activities) of the field.
This is the solution for your first question.
For your second question do the required calculation in BI query itself and display it Visual Composer.
Regards
Basheer
Edited by: Basheer on Feb 25, 2009 11:15 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Edit: Update: We have changed the query and now I have the result taht I wanted:
Activities StatusISNOTcanceled Rate
100 50 50%
100 50 50%
So, next questions. I only want one line/row in the table. Why am I getting two and how can I change that?
Thanks for your help this far Basheer! Points awarded.
Jan
Edited by: Jan Laros on Feb 25, 2009 4:34 PM
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.