Forum Discussion
Trouble with rolling average
- Anonymous1 year ago
Hi Bibiano_Geraldo ,thanks for the quick reply, I'll add more.
Hi Anonymous ,
Regarding your question, I think you can create a virtual table to store the results you get in your visual. Finally, use this virtual table to find the average value you need
Something like this
Measure = VAR _table = SUMMARIZE(ALL('Table'),[ConvertedDate],"Result",[Site CTS Week]) VAR _CurrentWeek = SELECTEDVALUE('Table'[ConvertedDate]) RETURN AVERAGEX(FILTER(_table,'Table'[ConvertedDate] <= _CurrentWeek),[Result])Best Regards,
Wenbin Zhou
Sorry for mistake 🙂 I would like to achive something simillar, but calculate comulative avg starts from beinning af the year and finish at the last date of year. I changed Yours dax, but still doesn't work correctly 😕
- Anonymous1 year agoNot applicable
Hi Bibiano_Geraldo ,thanks for the quick reply, I'll add more.
Hi Anonymous ,
Regarding your question, I think you can create a virtual table to store the results you get in your visual. Finally, use this virtual table to find the average value you need
Something like this
Measure = VAR _table = SUMMARIZE(ALL('Table'),[ConvertedDate],"Result",[Site CTS Week]) VAR _CurrentWeek = SELECTEDVALUE('Table'[ConvertedDate]) RETURN AVERAGEX(FILTER(_table,'Table'[ConvertedDate] <= _CurrentWeek),[Result])Best Regards,
Wenbin Zhou- Anonymous1 year agoNot applicable
It works, thank You so much! 🙂