Forum Discussion

Unknowncharacte's avatar
Unknowncharacte
Icon for Helper III rankHelper III
2 years ago
Solved

Show Last Month Name

Hello, 

 

I have a calendar table fully filled in with a date and month name, example below. 

Full Month NameFull Date
September09/01/2023

 

I need to show last month name, I dug up the following measure from this forum:

CALCULATE(MAX('DIM Calendar'[Full Month Name]), DATESMTD(DATEADD('DIM Calendar'[Full Date],+1,MONTH)))

 

The measure works BUT is this the right way to write this out? +1 MONTH makes me think I am doing it wrong, if I replace it with - 1 MONTH, the result is August, not September.

5 Replies