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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
PowerBIOrg
Resolver II
Resolver II

Matrix Rows with sorting number

Dear All,

 

Is it possible to do something like the following with matrix?

PowerBIOrg_0-1673321436959.png

Above table presents Top 5 Type by Group by Year with percentage of changes per year. Sort column is needed.

 

 

Thank you. 

 

 

1 ACCEPTED SOLUTION

@PowerBIOrg , for that you have to rank bucketing

check if this code can help

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

 

In case the rank bucket is a bit different, you might need allselected, in the final measures too

 

Power BI- TOPN with Others- https://youtu.be/I_TY4hVlzAE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@PowerBIOrg , FOr TOP 5 we have to use a measure filter using rank. For format, we might have to use Measure - Switch Value on Row.

 

Measure Rank: https://www.youtube.com/watch?v=DZb_6j6WuZ0&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=40

 

Calculation Groups can give more formats- Measure Slicer, Measure Header Grouping, Measure to dimension conversion. Complex Table display: https://youtu.be/qMNv67P8Go0

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, thank you for the answer. I knew that I can get Top 5 with rankx, but how to add that Sort # before the Type? 

@PowerBIOrg , for that you have to rank bucketing

check if this code can help

Dynamic segmentation -Measure to Dimension conversion: https://youtu.be/gzY40NWJpWQ

 

In case the rank bucket is a bit different, you might need allselected, in the final measures too

 

Power BI- TOPN with Others- https://youtu.be/I_TY4hVlzAE

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hi, is there anyway to show that Total by Year? My Column fields is Group and Year. 

PowerBIOrg_0-1673426131627.png

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.