Forum Discussion

akoita92's avatar
akoita92
Frequent Visitor
4 years ago
Solved

Last 12 months except current month

Hi there, I come to solicit the forum because I am confronted with a problem concerning the calculation of a measurement. I thank you in advance.   I would like to sum the last 12 months without ...
  • akoita92's avatar
    akoita92
    4 years ago

    I did some digging and this code works.

     

    My Calc =
    CALCULATE (
       SUM(price),
       DATESINPERIOD (
          date,        
          EDATE(MAX ( date ),-1),  
          -12,                   
          MONTH                 
        )
    )


    Thank for your help.