Forum Discussion

Karthis476's avatar
Karthis476
New Member
2 years ago
Solved

Retrieve Previous Month Data from Date Column

Hi, I have Month Column, Customer ID, Target Date. So I just want retrieve last month Target date for individual customer so I can compare their Target dates revision. Please help me on this.
  • xifeng_L's avatar
    xifeng_L
    2 years ago

    I guess you're missing the month-1 filter.

     

    Anyway, base on your latest data, you can try below expression.

     

     

    Result = CALCULATE(MAX('Table'[Target Date]),ALLEXCEPT('Table','Table'[ID]),PARALLELPERIOD('Table'[Month],-1,MONTH))

     

     

    Did I answer your question? If yes, pls mark my post as a solution and appreciate your Kudos !

     

    Thank you~