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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
MarshalSK
Resolver I
Resolver I

How to get Bar chart with sorting

Hi Folks, How to achieve below chart along with Category wise sorting ?

MarshalSK_0-1707407709788.png

 

1 ACCEPTED SOLUTION
PijushRoy
Super User
Super User

HI @MarshalSK 

You are looking for Sub Category wise sort within each category
Please create a lookup table with the below format

SubCategory SortBy
A1
B2
C3
D4

Click on Sub Category column and change Sort to SortBy Column
Now Create a relationship with the main table and with SubCategory column
Use SubCategory from the lookup table
https://community.fabric.microsoft.com/t5/Desktop/Custom-sort-on-rows-and-columns-in-Power-BI-Matrix...

Almost the same steps as screenshot mentioned in this solution




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

5 REPLIES 5
PijushRoy
Super User
Super User

HI @MarshalSK 

You are looking for Sub Category wise sort within each category
Please create a lookup table with the below format

SubCategory SortBy
A1
B2
C3
D4

Click on Sub Category column and change Sort to SortBy Column
Now Create a relationship with the main table and with SubCategory column
Use SubCategory from the lookup table
https://community.fabric.microsoft.com/t5/Desktop/Custom-sort-on-rows-and-columns-in-Power-BI-Matrix...

Almost the same steps as screenshot mentioned in this solution




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





PijushRoy
Super User
Super User

Hi @MarshalSK 

The image you shared is already sorted by Category in ASC order. You can update the sort order by clicking 3 dots top right side matrix table.
If you are looking for custom sort, please find the steps
https://community.fabric.microsoft.com/t5/Desktop/Custom-sort-on-rows-and-columns-in-Power-BI-Matrix...


Let me know if that works for you


If your requirement is solved, please make THIS ANSWER a SOLUTION ✔️ and help other users find the solution quickly. Please hit the LIKE 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





That's is a sample screen shot from another tool. In PBI, I am not sure how to accomplish this. 

Hi @MarshalSK 

Find the steps

PijushRoy_0-1707413947172.png

Custom sort - find the steps
https://community.fabric.microsoft.com/t5/Desktop/Custom-sort-on-rows-and-columns-in-Power-BI-Matrix...


Iff your requirement is solved, please make THIS ANSWER as SOLUTION




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





In each category, sorting should take place. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.