Forum Discussion

UditJ's avatar
UditJ
Helper III
3 years ago
Solved

To show previous month value [Measure Value]

In the below table i need to add a column which will basically have previous months value. Example Jan - Will have Null Value , Feb - 0.18%(jans Value) , March - 0.20% (Febs Value).. So on..
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi UditJ ,

     

    The data for 2019 does not affect the use of PREVIOUSMONTH() functions.

    You need a calendar table to connect to the main table, use the month column of the calendar table, and use

    PREVIOUSMONTH('Calendar'[Date]) to return the previous months' data.

    Measure = CALCULATE([CTR],PREVIOUSMONTH('Calendar'[Date]))

     

     

    Best Regards,

    Stephen Tao

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.