Forum Discussion
diskovered
7 years agoHelper III
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 = FORMAT(MONTH(EOMONTH(TODAY(),-1)), "MMMM") <-- this shows January
LastMonth = MONTH(EOMONTH(TODAY(),-1)) <--- this shows '2' or Feb.
Thanks
5 Replies
- parry2kSuper User
- diskoveredHelper III
Ahhh! That works, thank you!
- diskoveredHelper III
parry2k Any way to add year? (February 2019? in the same code?
- parry2kSuper User