Forum Discussion

Vitor_sp_bo's avatar
Vitor_sp_bo
Helper I
4 years ago
Solved

Calculate same date last month

 

Guys, good morning!

 

I need help with sales comparison, for example, I want to compare the 12th of this month with the 12th of last month,
and when selecting an example date movie 10th the formula needs to automatically calculate with the 10th of the previous month

  • Vitor_sp_bo 
    CALCULATE(Measure, DATEADD(datedim,-1,month)) this will give you last month same date value based on data availability and using the date slicer. Hope this helps!

1 Reply

  • VijayP's avatar
    VijayP
    Community Champion

    Vitor_sp_bo 
    CALCULATE(Measure, DATEADD(datedim,-1,month)) this will give you last month same date value based on data availability and using the date slicer. Hope this helps!