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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
EmmaLynch
Frequent Visitor

RE ORDERING COLUMNS IN MATRIX VISUALIZATION

Hi,

I have created the below basic matrix - problem is I need to reorder the columns to be AA, A, B, C & D as AA is better than A and therefore needs to show first.  The matrix is sorting is alphabetically, so putting AA behind A, which I dont want.

 

EmmaLynch_0-1598531782132.png

Could anyhelp be in layman terms please as I am not very technical.

 

Thanks in advance 🙂

 

1 ACCEPTED SOLUTION
Sujit_Thakur
Solution Sage
Solution Sage

Dear @EmmaLynch ,
This is what i used to suffer in,

Simply change order in which they are put in the field.
Or 
The best practise is
make a new table by using enter data option from main tool ribbon on the top of screen.
Make such table

Entity         Direction

AA               1

A                  2

B                  3

C                 4

D                   5

Then realted Entitty with the column from the main data table.

Then you can see a sort option ,
here select sort by Direction.(This is column of new table you created ).

It will do the help always 

Please do not hesitate to give kudos 
If this helped select this post as solution

Regards 
Sujit

View solution in original post

3 REPLIES 3
mhossain
Solution Sage
Solution Sage

@EmmaLynch 

 

1). Create a table using GroupBY  Contract Class and second column as count, and then create a rankx column to rank your 'Contract Class'

2). Drag contract class from above table to matrix visual, and use SORT BY column as per rankx column.

 

Let me know if above makes sense. will you be using any slicer? Above rankx will be done at total count at Contract Class.

Sujit_Thakur
Solution Sage
Solution Sage

Dear @EmmaLynch ,
This is what i used to suffer in,

Simply change order in which they are put in the field.
Or 
The best practise is
make a new table by using enter data option from main tool ribbon on the top of screen.
Make such table

Entity         Direction

AA               1

A                  2

B                  3

C                 4

D                   5

Then realted Entitty with the column from the main data table.

Then you can see a sort option ,
here select sort by Direction.(This is column of new table you created ).

It will do the help always 

Please do not hesitate to give kudos 
If this helped select this post as solution

Regards 
Sujit

amitchandak
Super User
Super User

@EmmaLynch , matrix column (a column is used in the column list) sorted alphabetically unless you use sort column for such a column to change that

https://docs.microsoft.com/en-us/power-bi/desktop-sort-by-column

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.