Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi, I have the following expression to calculate a rolling 12 months in a date dimension.
RangeSum(above(Sum({$<REPORTINGDATE=>}GEP),0, 12))
However, I want the sum to ignore the dimension selection but only display the selected dimension
i.e. if Jan 2018 is selected I only want Jan 2018 displayed in the chart but the calculation should be for Feb 2017 - Jan 2018
Hope that makes sense?
Try this
RangeSum(Above(Sum({$<REPORTINGDATE>} GEP), 0, 12)) * Avg(1)
Avg(1) = 1 for the dates/periods selected and 0 for all things not selected.... multiplying with 0 forces the non selected dates/periods to be 0 🙂