Forum Discussion
Anonymous
4 years agoNot applicable
30 day rolling average
Hi Would anyone be able to help me convert this formula into a "last 30 day rolling average"? I seem to be going in circles. Thank you in advance! Turnover Rolling Avg. Calc. (€) = AVE...
- Anonymous4 years ago
Hi Anonymous ,
I think you can try this code.
Turnover Rolling Avg. Calc. (€) 2 = CALCULATE ( AVERAGE ( onetouch_daily_account_summary_last_2_months[bet_eur] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) && 'Calendar'[Date] > MAX ( 'Calendar'[Date] ) - 30 ) )Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Samarth_18
4 years agoCommunity Champion
Anonymous It should work. Is it possible for you to share PBIX after removing sensitive data?
Anonymous
4 years agoNot applicable
Samarth_18 It will take me ages to clean this file to get it to a place can send 😞
Is this my only formula option or perhaps is there an alternate way using a different function perhaps? Maybe thats asking too much, but i wont be able to send the file just yet. hmm.
- Anonymous4 years agoNot applicable
Hi Anonymous ,
I think you can try this code.
Turnover Rolling Avg. Calc. (€) 2 = CALCULATE ( AVERAGE ( onetouch_daily_account_summary_last_2_months[bet_eur] ), FILTER ( ALL ( 'Calendar' ), 'Calendar'[Date] <= MAX ( 'Calendar'[Date] ) && 'Calendar'[Date] > MAX ( 'Calendar'[Date] ) - 30 ) )Best Regards,
Rico ZhouIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.