Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
U156531
Post Patron
Post Patron

Getting Alphabetic value of numeric month

Can someone tell me how to get the "mmm" value for Previous month = month(TODAY())-1.

I get 5 but I need May.
 
Thanks
1 ACCEPTED SOLUTION
WishAskedSooner
Responsive Resident
Responsive Resident

"mmm" isn't actually a value in Power BI, rather it is treated as text. You can wrap your function with FORMAT(MONTH(TODAY()) - 1, "mmm"). Just be aware that this will convert the date to text which can create problems in tables, etc. when trying to order chronologically which can be overcome but is a hassle.

View solution in original post

1 REPLY 1
WishAskedSooner
Responsive Resident
Responsive Resident

"mmm" isn't actually a value in Power BI, rather it is treated as text. You can wrap your function with FORMAT(MONTH(TODAY()) - 1, "mmm"). Just be aware that this will convert the date to text which can create problems in tables, etc. when trying to order chronologically which can be overcome but is a hassle.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors