Forum Discussion

D_HL's avatar
D_HL
Frequent Visitor
2 years ago
Solved

12 months prior return

Hi All, 

 

May have been answered previously but I'm struggling to locate. I'm trying to create a new measure which will bring what another measure was 12 months ago. Table below, the red column is what I want to acheive. 

 

Date

Customer NameCurrent RatingRating 12mths prev

1/1/2020

ABC 3N/A
1/1/2021ABC83
1/1/2022ABC98
1/1/2023ABC29

 

Thanks

Dan 

  • Hi D_HL 

     

    Please try

     

    Rating 12 months Previously = CALCULATE(SUM('Table'[Rating]), DATEADD('Table'[Date], -1, YEAR))

     

    Thanks

    Joe

     

    If this post helps, then please Accept it as the solution

1 Reply

  • JoeBarry's avatar
    JoeBarry
    Solution Sage

    Hi D_HL 

     

    Please try

     

    Rating 12 months Previously = CALCULATE(SUM('Table'[Rating]), DATEADD('Table'[Date], -1, YEAR))

     

    Thanks

    Joe

     

    If this post helps, then please Accept it as the solution