![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I have to make a Calculated Measure for the Rolling(Moving) Average of the last 7 Days sales I have the following formula AVG(LASTPERIODS(3), [Store Sales] which returns any period rolluup but i want to calculate only on day not on any period even though i might be standing on Month,Quartor or any other Level |
#3
| |||
| |||
|
|
Do you mean it displays null on other level than day? If then, you try IIF() function. IIF(Time.CurrentMember.Level.Name = "Day", Avg(....), NULL) Ohjoo Kown www.olapforum.com "Burhan" <burhanuddin.ahmed (AT) gonetbpo (DOT) com> wrote in message news:O$WCE8QFFHA.2180 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I have to make a Calculated Measure for the Rolling(Moving) Average of the last 7 Days sales I have the following formula AVG(LASTPERIODS(3), [Store Sales] which returns any period rolluup but i want to calculate only on day not on any period even though i might be standing on Month,Quartor or any other Level |
|
Do you mean it displays null on other level than day? If then, you try IIF() function. IIF(Time.CurrentMember.Level.Name = "Day", Avg(....), NULL) Ohjoo Kown www.olapforum.com "Burhan" <burhanuddin.ahmed (AT) gonetbpo (DOT) com> wrote in message news:O$WCE8QFFHA.2180 (AT) TK2MSFTNGP10 (DOT) phx.gbl... I have to make a Calculated Measure for the Rolling(Moving) Average of the last 7 Days sales I have the following formula AVG(LASTPERIODS(3), [Store Sales] which returns any period rolluup but i want to calculate only on day not on any period even though i might be standing on Month,Quartor or any other Level |
![]() |
| Thread Tools | |
| Display Modes | |
| |