Dear all,
I would like to create a report on which one I have a monthly formula different than this total formula.
For example :
Monthly formula : 1-ABS(forecast-sales)/sales
May 2004 : 91 %
Jun 2004 : 89 %
Jul 2004 : 80 %
Total formula : 1-SUM(Abs(forecast-sales)(month))/SUM(Sales)
The interval of month will be dynamic. from 2 to 12 month oculd be selected.
The total will be calculated in function of the month display/selected.
If anybody could give me some idea of development for this query. You're will be welcomed !!!
I think you can solve this using a structure.
First make a general filter for the query for your month selection (interval variable).
Next create a structure containing the months and filter each month on a fixed value (1, 2, 3, 4,...). If the month is outside the interval mentioned in the filter it will not be shown (no data because no union in the filter), and columns without data are not shown.
As last column in your structure you can than create your formula (using the total functions available in the editor).
If this is still not flexible enough, you could even use the cell editor.
kr,
Tom
Hi There,
My Guess is that since you are using percentages, you do not want to add them up, but take the average of the individual monthly values.
<b>Try this if you want to include all months displayed..</b>
Key Figure -> (right click) properties -> Calculations, Calculate Results as -> Average of All Values
<i>[The average (sum divided by total number of values) of all the values for the corresponding area is displayed as the result.]</i>
<b>Try this if you want to include only the months where the percentage is other than 0..</b>
Key Figure -> (right click) properties -> Calculations, Calculate Results as -> Average of All Values <> 0
<i>[The average (total divided by number) of all values for the corresponding area is displayed as the result, with the exception of zeroes, meaning that values equal to 0 are not counted.]</i>
Let me know if that helped!
Rishi
Add a comment