Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.
Hi!
I have created a rolling average using 'quick measure'. Following dax is used:
Solved! Go to Solution.
Hi @Anonymous
Yes there is, please see the below
Opened_cases_on_date rolling average = VAR __LAST_DATE = LASTDATE('Dates'[Date]) RETURN AVERAGEX( DATESBETWEEN( 'Dates'[Date]; DATEADD(__LAST_DATE; -30; DAY); __LAST_DATE ); CALCULATE(AVERAGE('Dates'[Opened_cases_on_date])) )
You probobly want to mark your 'Dates' table as a 'date table' this will be requierd if you ever wont write any built in Time Inteligence DAX Functions.
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
Yes there is, please see the below
Opened_cases_on_date rolling average = VAR __LAST_DATE = LASTDATE('Dates'[Date]) RETURN AVERAGEX( DATESBETWEEN( 'Dates'[Date]; DATEADD(__LAST_DATE; -30; DAY); __LAST_DATE ); CALCULATE(AVERAGE('Dates'[Opened_cases_on_date])) )
You probobly want to mark your 'Dates' table as a 'date table' this will be requierd if you ever wont write any built in Time Inteligence DAX Functions.
Regards,
Mariusz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.