Forum Discussion

Neel98's avatar
Neel98
Frequent Visitor
3 years ago
Solved

Dax: Previous Month calculation

Hi Team, I am trying to create the dax for the Maximum date in the previous month. Could you please share your idea?  
  • NikhilChenna's avatar
    3 years ago

    Hi Neel98 , 
    Hope you have a datedimension table in your data set, if not create that first and create a one to many relationship from your date table to this table and create the below measure. 


    CALCULATE( 
              MAX(Report Date),
              DATEADD('Date Dimension'[date],-1,MONTH)
    )

     

    Regards,
    Nikhil Chenna

     

    Appreciate with a Kudos!! (Click the Thumbs Up Button)
    Did I answer your question? Mark my post as a solution!