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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Month Name in a measure

My Power BI Desktop file is connected to a Power BI dataset in the Power BI service.  The dataset does not have the MONTH NAME but the MONTH NUMBER.  Since I am connected to the Power BI dataset I cannot create a calculated column.

 

I need to create a measure that gives me the month name.  Is this possible?

 

Regards

1 REPLY 1
Iamnvt
Continued Contributor
Continued Contributor

hi,

 

you can try this:

Month Name = 
VAR n = SELECTEDVALUE('Table'[Month Number])
RETURN 
    IF(
        n > 0 && n < 13 ,
              FORMAT(DATEVALUE("2019-" & n & "-1") , "MMM") ,
              "Other"
        )

here is the PBI file:

https://1drv.ms/u/s!Aps8poidQa5zk6sgY5ZAYJRBPMh42Q

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.