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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.