Forum Discussion
Need Help in Visualization for 13 week moving average
YweiB , Create a date table join with date and use week rank column
13 WK MA V2 =
calculate(
AVERAGEX(values('Date'[Week Rank])
,
'KPI List'[Total Sales]
) ,WINDOW(
-12,REL,0,REL,
ALLSELECTED('Date'[Week Rank]),
ORDERBY('Date'[Week Rank],asc)
))
Week Rank
Have these new columns in Date Table, Week Rank is Important in Date/Week Table
Week Rank = RANKX('Date','Date'[Week Start date],,ASC,Dense)
OR
Week Rank = RANKX('Date','Date'[Year Week],,ASC,Dense) //YYYYWW format
Thank you Amitchandak.
I just created the Week Rank and use the window function to calculate the 13 weeks moving average.
Could you tell me how to viualize this moving average in line chart to compare the 2022 and 2023 with week rank? adding the filter 2023 will make the number of first 12 week off. how to make the number is cut by filters. I just want to display the number of moving average
Thanks,