I have a table in which i determine the percentage orders per working day.
I use the formula “PercentageOrders” =Percentage([NumberOf_Orders];Col) notation #,##0.0[%]%.
Now i want the cumulative percentage of these percentages.
I use the formula "=RunningSum([PercentageOrders]) notation also #,##0.0[%]%
But then i get strange results last NumberOf_Orders cumulative percentage = 299,3%
what’s the logic behind the percentage object? you may need to do a running sum on the object used to get the percentage, rather than the percentage itself
RunningSum([NumberOfOrders])/ (Sum[NumberOfOrders] In Block)
Should then basically take the number of orders cumulative at each row and divide by the total number in the block. (Can swap block for table/report/section etc… or even use in () etc…)
RunningSum([NumberOfOrders])/ (Sum[NumberOfOrders] In Block)
Should work just fine… do me a favor…
If you break out the two sides of the formula the running sum of orders, vs the total in the block into two columns… which one is incorrect?
I’m wondering if perhaps there is some more data in your data provider that your not showing, which is causing the difference in calculations.
What is interesting is i can see the formula IS in fact adding up to 100% (well 99.8 which makes me think there is hidden data somewhere), it’s just not in the breakout you are expecting.
When i broke up the formula in the two blocks i saw what was wrong.
This report is divided into years, and somehow the RunningSum and Sum is over the total of the years, which are presented. When i use only one year its ok, Two years the totals per year are summed.
I used “In Section” “In Break”, same result.
I added as attachment the whole table now with the extra years and above what the formula’s are. This can explain something?
I haven’t looked at the attachment… but is sounds like all you would need to do is
RunningSum([NumberOfOrders]) IN ([Year]) / (Sm(NumberOfOrders) In ([Year]))
Basically use context operators to tell the summation what to sum and when it should reset itself. I know Sum can use the ‘in’ operator, not sure about RunningSum off the top of my head… help within WEBI will show you for sure.