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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
shbz1690
Frequent Visitor

how to get month name instead of number

I am trying to sort month based on Fiscal year from July to June. I got some solution from here:

https://community.powerbi.com/t5/Desktop/Creating-a-Fiscal-Year-amp-Fiscal-Quarter-in-a-DATE-calenda...

 

the point where I got stauck is that my month report is showing like this, :

shbz1690_0-1599678749081.png

 

month starts at July and ending at June correctlry. But I want month name not numbers. And those missing values for month 1,3,5,7,9,11 , I am not sure what is that.

 

I have used this formula to create month column:  

FiscalMonth = If( Month([Date]) >= 7 , Month([Date]) - 6, Month([Date]) + 6)

 

1 ACCEPTED SOLUTION
v-jingzhang
Community Support
Community Support

Hi @shbz1690 , add a column in your date table to use Month name, and most importantly sort this month name column by Fiscal month number column. After both steps, you will be able to use the month name column in your chart’s X-axis field and see it sort well.

 

Fiscal Month = FORMAT('Calendar'[Date],"mmmm")

FiscalMonthNo = If( Month([Date]) >= 7 , Month([Date]) - 6, Month([Date]) + 6)

 

v-jingzhang_0-1600046952367.jpeg

 

Best Regards,

Community Support Team _ Jing Zhang

If this post helps, please consider Accept it as the solution to help other members find it more quickly.

View solution in original post

4 REPLIES 4
v-jingzhang
Community Support
Community Support

Hi @shbz1690 , add a column in your date table to use Month name, and most importantly sort this month name column by Fiscal month number column. After both steps, you will be able to use the month name column in your chart’s X-axis field and see it sort well.

 

Fiscal Month = FORMAT('Calendar'[Date],"mmmm")

FiscalMonthNo = If( Month([Date]) >= 7 , Month([Date]) - 6, Month([Date]) + 6)

 

v-jingzhang_0-1600046952367.jpeg

 

Best Regards,

Community Support Team _ Jing Zhang

If this post helps, please consider Accept it as the solution to help other members find it more quickly.

amitchandak
Super User
Super User

@shbz1690 , I have give all two create calendar for any month here

https://community.powerbi.com/t5/Community-Blog/Creating-Financial-Calendar-Decoding-Date-and-Calend...

 

Check the pbix here

https://www.dropbox.com/s/us4vk2kizs32nzo/Jul_2_Jun_Qtr_Cal.pbix?dl=0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Greg_Deckler
Community Champion
Community Champion

@shbz1690 - Can you just use MonthName = FORMAT([Date],"mmmm")?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Fowmy
Super User
Super User

@shbz1690 

 

 

you need to add a column in your date table to format as Month Name:

 

= FORMAT([DATE], "Mmmm")

 

Check out his video from Alberto : https://www.youtube.com/watch?v=0peKz7XjEdw

________________________

If my answer was helpful, please consider Accept it as the solution to help the other members find it

Click on the Thumbs-Up icon if you like this reply 🙂

YouTube  LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Solution Authors