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

Try your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now

Reply
Anonymous
Not applicable

Sorting

Need help to sort a Matrix based on KPI column. I have a sort column in my table where I have assigned sorting order. I sorted KPI based on sort ID in table and it is working however in the view it is not.

In Matrix view it is sorting either by KPI or by $ amount.

 

Is there a way to sort Matrix view based on Sort ID without bringing this into the view?

 

Below is my table.

 

KPIProd ServSort ID
CCProduct3
UC Excl XYZProduct1
UC Inclu XUZProduct2
NWProduct4
Profesionla ServicesServices5
Learning ServicesServices12
Support Services 11Services6
Support Services 22Services7
Support Services 33Services8
PCMS - AAAServices9
PCMS - BBBServices10
PCMS - CCCServices11

 

7 REPLIES 7
jgeddes
Super User
Super User

How exactly is the SORT ID column created?





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

Proud to be a Super User!





jgeddes
Super User
Super User

You can use the Sort by column feature that is found in the table view under column tools.

jgeddes_0-1665073232017.png

highlight your KPI column and then sort by column SORT ID





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

Proud to be a Super User!





Anonymous
Not applicable

@jgeddes I did that exactly but it is not working. Getting below error.

 

However the Column Sort is no way linked/referenced to KPI column. Both are coming from source file.

 

mruhullah_0-1665073444222.png

 

What result are you getting? By that I mean what is it sorting by currently?





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

Proud to be a Super User!





Anonymous
Not applicable

it is sorting by KPI but in ascending order. Not consedering the SORT ID order

Can you share a screenshot of your table relationships? No data needed, just tables and column names. It would help to narrow down where the circular dependancy is coming from.





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

Proud to be a Super User!





Anonymous
Not applicable

This table is linked to Geography and Date. there are around 7 more table which are linked to Geography and sate tables.

Helpful resources

Announcements
Fabric Data Days is here Carousel

Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.