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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount 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