cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
BlueWhite111
Helper III
Helper III

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
Super User
Super User

Hi @BlueWhite111,

 

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
Super User
Super User

Hi @BlueWhite111,

 

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
Carousel_PBI_Wave1

2023 Release Wave 1 Plans

Power BI release plans for 2023 release wave 1 describes all new features releasing from April 2023 through September 2023.

Power BI Summit Carousel 2

Global Power BI Training

Make sure you register today for the Power BI Summit 2023. Don't miss all of the great sessions and speakers!

Thank you 2022 Review

2022 Monthly Feature Releases

We had a great 2022 with a ton of feature releases to help you drive a data culture.