Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
benhoward00
Frequent Visitor

The average of a trailing average

Hello,

I am calculating the trailing average of a value, [30 day trailing average] and this is working fine and I can choose the offset etc by using the Window function (our data can arrive upto a week late, so I have in effect to ignore the last week.  

What I then need to do is to determine the average of the [30 day trailing average] measure, again, ignoring the last two weeks and looking back over 30 days (so effectively days -14 to -43 from today.  I need to return a single scalar value for this.   The image below is a screenshot of the data when dumped into Excel.
Picture2.png

 

I cannot post a copy of the data as the dates do not come through properly 😞 .   I have a date table of course just called Date.

Thanks in advance,  Ben.

1 REPLY 1
some_bih
Super User
Super User

Hi @benhoward00 check link https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/  I hope this helps you.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!






Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.