The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
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
User | Count |
---|---|
65 | |
61 | |
60 | |
53 | |
30 |
User | Count |
---|---|
181 | |
88 | |
71 | |
48 | |
46 |