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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
nj17
Helper III
Helper III

sort column values in a matrix in a particular order

Hi All,

 

I need to show below column values in a particular sorted order in a matrix.

the order should be:

1.Total F

2.MULTI BRAND

3.Total H

4.Total Speciality

nj17_0-1660105183152.png

I have created a table manually and created the relationship with above table

nj17_1-1660105410980.png

but still I am not able to sort the businessgroup in required order

Kindly help

@Jihwan_Kim 

1 ACCEPTED SOLUTION

Hi,

Thank you for your message.

Inside Subgroup table, Business Group column does not have a sort group column, so it is not sorted.

Only inside Group table, Business Group column has the sort group column, so it can be sorted.

If you willing to use Business Group Column from Subgroup table, but not from Group table, you have to create a sort group column for Business Group Column inside the Subgroup table, and then sort it by using sort group column from the same table.

When creating this, I suggest do this in Power Query Editor.

Please check the attached file.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

4 REPLIES 4
Jihwan_Kim
Super User
Super User

Hi,

I am not sure how your dataset looks like, but please check the below picture and the attached pbix file.

I tried to create a sample pbix file like below.

- select the column name in the Field pane (Business group)

- click Sort by column

- sort by S.nl column

 

Untitled.png


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Hi @Jihwan_Kim  thank you

from your report can i use 'BusinessGroup' from Subgroup dataset and then sort the matrix.

 

nj17_0-1660153943440.png

when I use this it gives me incorrect order

nj17_1-1660154286908.png

 

Hi,

Thank you for your message.

Inside Subgroup table, Business Group column does not have a sort group column, so it is not sorted.

Only inside Group table, Business Group column has the sort group column, so it can be sorted.

If you willing to use Business Group Column from Subgroup table, but not from Group table, you have to create a sort group column for Business Group Column inside the Subgroup table, and then sort it by using sort group column from the same table.

When creating this, I suggest do this in Power Query Editor.

Please check the attached file.

 


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.