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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.