I am trying to write an mdx query that calculates the 91-day rolling average of order countm by store, by day of week. Initially, it was supposed to be a 90 day average, but since 91 is divisible by 7 for days of week, I changed it.
The end result should be like:
Store Monday Tuesday Wednesday Thursday...
S-101 56 25 26 42
S-102 45 32 99 63
So, for example, if there Store 101 had 728 total orders on the last 13 Mondays, the average would be 56 for that time period.
Time.Fiscal Dimension:
Time
FiscalYear
FiscalQuarter
FiscalWeekEnding
Day
Day of Week Dimension:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Any help would be greatly appreciated!
The end result should be like:
Store Monday Tuesday Wednesday Thursday...
S-101 56 25 26 42
S-102 45 32 99 63
So, for example, if there Store 101 had 728 total orders on the last 13 Mondays, the average would be 56 for that time period.
Time.Fiscal Dimension:
Time
FiscalYear
FiscalQuarter
FiscalWeekEnding
Day
Day of Week Dimension:
Monday
Tuesday
Wednesday
Thursday
Friday
Saturday
Sunday
Any help would be greatly appreciated!