Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi All -
I'm working on a Matrix Visual that contains multiple KPIs for states. The table needs to have the rank of the KPI against all other states. For example:
User filter: North Carolina
| 2022 | 2021 | Rank | |
| GSP | 97.11% | 79.92% | 2 of 50 |
| HPI | 87.75% | 63.97% | 20 of 50 |
| Unemployment | 5.63% | 54.47% | 25 of 50 |
| CPI | 98.54% | 29.38% | 25 of 50 |
Users will also have the option to filter data by other areas such as MSA and CBSAs.
Is there a better way to create the "Rank" column than to create a separate matrix, create a rankx column for all columns in my table, and then have that new matrix conditionally display based on the user filter?
Thanks
Hi @dallison ,
Can you provide the relevant test data and describe it so that I can answer it for you as soon as possible? Looking forward to your reply.
How to Get Your Question Answered Quickly - Microsoft Power BI Community
Best Regards,
Henry
Hi,
you use only one formula for all KPIs? it is needed to use Matrix Visual
I think we use function Rankx():
rank = RANKX(SUMMARIZE(table,state column),formula KPI)
| 2022 | 2021 | Total | ||||
| KPI | Rank | KP | Rank | KP | Rank | |
| GSP | - | - | - | - | - | - |
| HPI | - | - | - | - | - | - |
| Unemployment | - | - | - | - | - | - |
| CPI | - | - | - | - | - | - |
The Matrix seem like that if you add rank column
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 30 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 128 | |
| 104 | |
| 56 | |
| 39 | |
| 31 |