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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I have following data
| Client | Product | Source | Balance |
| a | 1 | X | 100 |
| b | 1 | X | 200 |
| c | 2 | Y | 140 |
| d | 2 | Y | 234 |
| e | 3 | X | 456 |
| f | 3 | X | 251 |
I need to create dynamc rank for Balance that changes based on the slicer. I want my table (created on dashboard) based on slicer for product and source. If i select product '1'. this is how the table should look like:
| Rank | Client | Product | Source | Balance |
| 2 | a | 1 | X | 100 |
| 1 | b | 1 | X | 200 |
If i select product '2' it changes to this
| Rank | Client | Product | Source | Balance |
| 2 | c | 2 | Y | 140 |
| 1 | d | 2 | Y | 234 |
If i select both, it should look like this:
| Rank | Client | Product | Source | Balance |
| 4 | a | 1 | X | 100 |
| 2 | b | 1 | X | 200 |
| 3 | c | 2 | Y | 140 |
| 1 | d | 2 | Y | 234 |
Same is the case with source.
Can someone help.
Thanks in Advance.
Solved! Go to Solution.
@Anonymous Please try this as a "New Measure"
Test129 = RANKX(ALLSELECTED(Test129DynamicRnk),CALCULATE(SUM(Test129DynamicRnk[Balance])),,DESC,Dense)
Proud to be a PBI Community Champion
@Anonymous Please try this as a "New Measure"
Test129 = RANKX(ALLSELECTED(Test129DynamicRnk),CALCULATE(SUM(Test129DynamicRnk[Balance])),,DESC,Dense)
Proud to be a PBI Community Champion
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!