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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.