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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Colinu
Helper I
Helper I

Text Order in Graph

HI All

 

I have a data set that contains the month but in as Text. 

 

Data Set.png

 

When i bring this in to the visual is orders it by alphabetically order.

 

Graph.png

 

Is there a way that you can force the visual to retain the order in the table.

 

Colin 

1 ACCEPTED SOLUTION
v-yulgu-msft
Employee
Employee

Hi @Colinu,

 

Please refer to the methods mentioned in below links:

Custom Sorting in PowerBI?

Date Sorting chronologically

 

Best regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yulgu-msft
Employee
Employee

Hi @Colinu,

 

Please refer to the methods mentioned in below links:

Custom Sorting in PowerBI?

Date Sorting chronologically

 

Best regards,

Yuliana Gu

 

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
rajulshah
Super User
Super User

Hello @Colinu,

 

You can create a column in your Dates table as follows:

YearMonthNumber = FORMAT(DTdates_data[Date],"yyyyMM")

And then create another column 

MonthYear = DTdates_data[Month]&" "&DTdates_data[Year]

 

And then select your MonthYear Column in the screenshot and then go to Modelling tab > Sort Column > YearMonthNumber.

 

You will get your months sorted in the visual.

 

If you can't get the results, please revert back.

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.