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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
thampton
Helper III
Helper III

Dynamic Ranking in matrix with multiple rows

I have a matrix with three row levels as shown below. There will be multiple rows on each tier and i want to create a dynamic rank on 3 measure i have on the martrix. I would like it to rank based on individual values ( tom's, jane's, etc), then on their group (Row B), and up to the total Group A. How can i do this? 

 

                            Measure A                             Measure B                               Measure C                   Rank (measure A)

Row A                    Total                                       Total                                           Total                                     2

         Row B            Subtotal                                 Subtotal                                     Subtotal                                5

                 John       1                                             1                                                 5                                          1

                Jane         2                                             1                                                 6                                          2

                Tom         3                                             3                                                 8                                          3

 

1 REPLY 1
Anonymous
Not applicable

HI @thampton ,

I don't think you can use one formula to achieve dynamic rank based on row contents level, you need to add if statement to check current row contents level and write correspond rank formulas.

Regards,

Xiaoxin Sheng

Helpful resources

Announcements
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.