Showing results for 
Search instead for 
Did you mean: 
alfiethedog Frequent Visitor
Frequent Visitor

Sorting Columns through Multiple Conditions

Hi Everyone,


I am trying to sort my columns in a specific order.  Is there a way to sort columns with MULTIPLE conditions.  As if "this column" = "text" AND "another column" = "text" then = column 1.  Etc.  I am trying to sort approx 20 columns though multiple conditions.



Community Support Team
Community Support Team

Re: Sorting Columns through Multiple Conditions

Hi @alfiethedog,


Current power bi only support single column sort, maybe you can enter to query editor and add a custom column with above condition to mark index, then use this column as sorting column.



Xiaoxin Sheng

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

For learning resources/Release notes, please visit: | |

Helpful resources


How to Get Your Question Answered Quickly

Power BI Super User, Greg Deckler, explains

Summit North America

Power Platform Summit North America

Register by September 5 to save $200

Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Top Ideas
Users Online
Currently online: 32 members 827 guests
Please welcome our newest community members: