Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

How to get a 12-month rolling average

Sorry, I know this is a fairly common question, but the solutions I've seen don't seem to be working out.    The data is set up like this. Each month, there is a goal. If the goal is met, then the ...
  • amitchandak's avatar
    3 years ago

    Anonymous , You need to try like

    You should always use date table for time intelligence


    CALCULATE(
    AVERAGEX(values(Date[Month year]) ,calculate( Sum(table[goal_reached])) ),
    DATESINPERIOD(Date[Date], LASTDATE(Date[month]), -12, MONTH) )


     

     

    or

     


    CALCULATE(
    AVERAGEX(values(Date[Month year]) ,calculate( AVERAGE(table[goal_reached])) ),
    DATESINPERIOD(Date[Date], LASTDATE(Date[month]), -12, MONTH) )

     

     

    Rolling Months Formula: https://youtu.be/GS5O4G81fww