Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Prior Month YTD Issue

I am trying to work with 2 measures:  Current Month YTD and Prior Month YTD to have a final result with:  Current Month = [Current Month YTD]-[Prior Month YTD]   I am using the following dax co...
  • v-xicai's avatar
    7 years ago

    Hi Anonymous ,

     

    You can change measure Prior Month YTD using DAX below.

     

    Prior Month YTD = IF([Current Month YTD]=BLANK(),BLANK(),CALCULATE([Total Group Currency], DATEADD(Dates[Date], -1, MONTH), MONTH(Dates[Date])<>12))

     

    Best Regards,

    Amy

     

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