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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.