cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
imahmood1 Frequent Visitor
Frequent Visitor

Sorting random text values

Hi All,

 

Please see below Graph and the order of Result. I need to change the order the result is showing so instead of A,B,WA,WT,WW i would like to see it in the order of A,B,WT,WW,WA. Any help is appreciated.

SORT ORDER.PNG

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Sorting random text values

You need another column that matches up the sort order that you want, so something like:

 

A,1

B,2

WT,3

WW,4

WA,5

 

The you can set the "Sort By" column to this other column. You could create this other column in Power Query with an IF statement and then use it as your Sort By column.


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

1 REPLY 1
Super User
Super User

Re: Sorting random text values

You need another column that matches up the sort order that you want, so something like:

 

A,1

B,2

WT,3

WW,4

WA,5

 

The you can set the "Sort By" column to this other column. You could create this other column in Power Query with an IF statement and then use it as your Sort By column.


I have book! Learn Power BI from Packt


Did I answer your question? Mark my post as a solution!

Proud to be a Datanaut!

Helpful resources

Announcements
Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Power BI Helps Homeless and Trouble Youth

Power BI Helps Homeless and Trouble Youth

We spoke with Power BI Super User, Greg Deckler, about his charity work

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Kudoed Authors
Users Online
Currently online: 318 members 3,229 guests
Please welcome our newest community members: