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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Greg_Deckler
Super User
Super User

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


@ 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!:
The Definitive Guide to Power Query (M)

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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