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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
goaltender36
Helper I
Helper I

Cant get month name on line graph

Hello,

 

I need help! I have a simple date column (mm/dd/yyyy) from a spread sheet I loaded into Power BI Desktop. I have done a query edit and created a MONTH NUMBER column and MONTH NAME column. When I use Month Number it sorts it in proper order. When I use Month Name it sorts it alphabetically. How can I get it to sort the dates properly, Thank you!

1 ACCEPTED SOLUTION
ankitpatira
Community Champion
Community Champion

@goaltender36 In power bi desktop under Data view right click month number column and sort ascending. Then under modelling tab select month name column and click Sort By Column and select month number column. This willl sort month name column by number column on your visual.

 

Capture.PNG

View solution in original post

4 REPLIES 4
ankitpatira
Community Champion
Community Champion

@goaltender36 In power bi desktop under Data view right click month number column and sort ascending. Then under modelling tab select month name column and click Sort By Column and select month number column. This willl sort month name column by number column on your visual.

 

Capture.PNG

Thank you it worked!!!

ankitpatira
Community Champion
Community Champion

@goaltender36 In power bi desktop right click your month number column and Sort Ascending. Then select month name column adn under Modelling tab click Sort By Column and select month number column. This will sort your month name column by month number column.

Krunoslav123
Regular Visitor

Hi , i think that best solution is to create new Dimension Date and u nead to create new realation . DimDate - Your table 1 - m . 

 

Tip for creating Dimension Date Create Date Dim in Power Bi. There is also other solutions to create Date dim just google it .. 🙂 

 

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.