Hi there,
I need to be able to calculate a value based on the following rules
Measure.[Max Open] = latest Non Zero Measure.[Max Bal] for the maximum of five prior days.
We have a dimension called Date with an attribute called Date.
I came up with the following Query which works fine, but it doesn't go back only 5 days :-
with Member [Measures].[Max Open] as iif( CoalesceEmpty([Measures].[Max Bal], 0) = 0, /* This is the Bool Test */ ([Date].[Date].PrevMember, Measures.[Max Open]), (Measures.[Max Bal]) ), FORMAT_STRING = "$#,##0;-$#,##0"
My challenge is understanding how I can incorporate the date logic into the test condition. Any help would be greatly appreciated
Cheers :-)