Forum Discussion

SimonC1988Help's avatar
SimonC1988Help
New Member
3 years ago

3 Month Average

Hello hopefully a quick one.

 

For some reason my three month calculation is returning a strange number and I havent been able to correct it. 

 

Result is shown below and the formula I am using is the below.  Im sure it is a basic fix but I am missing it.

 

Last 3 Month Average = AVERAGEX(
                        DATESINPERIOD('Mapping Month'[Registration Date ],
                            max('Mapping Month'[Registration Date ]),
                            -3,MONTH)
                            ,
                            [Total Retails])

Thanks

Simon

3 Replies

  • Migasuke's avatar
    Migasuke
    Memorable Member

    Hi SimonC1988Help ,

    Try to adjust the formula as I did in my formula using CALCULATE and AVERAGE:
    One note - I am using date , don't know if you have dates or just months, this can be crucial.

     

     

     

     

  • thanks for the reply Migasuke  thisis my mapping table for month. This maybe is where I am going wrong. 

    and unforunately looks like i lose my data when i change to the fomrula you wrote. 

    Thanks

    Simon

     

    • Migasuke's avatar
      Migasuke
      Memorable Member

      Can you send me screenshot of your relationships in Model section?
      I want to see how your Mapping Month connected.