Forum Discussion

diskovered's avatar
diskovered
Helper III
7 years ago
Solved

LastMonth

I want to show last month from today. I have this measure but instead of February it's showing January. Any idea?   LastMonth = FORMAT(MONTH(TODAY()-1), "MMMM") <-- this shows January LastMonth...
  • parry2k's avatar
    7 years ago

    diskovered try this

     

    Last Month = FORMAT( EOMONTH( TODAY(), -1 ), "MMMM" )
  • parry2k's avatar
    parry2k
    7 years ago

    diskovered  yup

     

    Last Month = FORMAT( EOMONTH( TODAY(), -1 ), "MMMM, yyyy" )