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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
LaurenceSD
Advocate II
Advocate II

Monthly 12 Month Rolling Average

Hi,

 

I'm stuck on creating a rolling average for a month, rather than daily that I've created in the past. The scenario is, I've got some NPS scores that I want to display the 12 month rolling average, I think my normal measure is failing because of there are lots of days where the score is 0 because of no response.

 

Here's the data in a table

 

LaurenceSD_0-1642429809797.png

 

& here's the kind of outcome I'd be expecting

LaurenceSD_1-1642429853748.png

Any ideas on a measure to achieve this?

 

Thanks

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@LaurenceSD , Try a measure like with help from date table

 

Rolling 30 = calculate(AverageX(Values('Date'[MONTH Year]),[NPS],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@LaurenceSD , Try a measure like with help from date table

 

Rolling 30 = calculate(AverageX(Values('Date'[MONTH Year]),[NPS],DATESINPERIOD('Date'[Date ],MAX('Date'[Date ]),-12,MONTH))

perfect, thanks very much

 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.