RSUM not producing desired result when filtering
I've built a widget that uses RSUM to sum the values for multiple rows/RSUM of Fiscal Period of Year as shown in column Avg YTD Revenue shown in the two screen shots below:
Works great. However, if I filter the pivot down to a single Fiscal Period the calculation is incorrect because the RSUM reduces to that single row. See screen shot if filtered to period 8 below:
I have tried using the ALL() function, but of course that results in all periods for all time. Anyone have any thoughts on how to achieve the goal.
Note that I can't use YTD() because these are custom fiscal periods on a multi-tenant system with different fiscal years & periods. In doing some testing, it looks like it would have the same issue.
Any help greatly appreciated, Jim