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
Anonymous
Not applicable

5 Year Rolling Average DAX

Hi Experts

 

How could i modify the following DAX Measure to work out the year rolling average..

BlueWhite111_0-1670011698801.png

 

1 ACCEPTED SOLUTION
Seanan
Solution Supplier
Solution Supplier

Hi @Anonymous,

 

Could you please try this:

5 Year Rolling Avg = AVERAGEX(DATESINPERIOD('Dates'[Date],LASTDATE('Dates'[Date]),-5,YEAR),[Total Sales])

Super User Signature.PNG

 

View solution in original post

1 REPLY 1
Seanan
Solution Supplier
Solution Supplier

Hi @Anonymous,

 

Could you please try this:

5 Year Rolling Avg = AVERAGEX(DATESINPERIOD('Dates'[Date],LASTDATE('Dates'[Date]),-5,YEAR),[Total Sales])

Super User Signature.PNG

 

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.