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 August 31st. Request your voucher.
Hello,
My objected is two parts (1) Calculate a dynamic ranking for a basic matrix (2) Create individual measures that return the name and profit for a specific rank (e.g. rank 2).
(1) Created Dynamic ranking calculated measure with following equation:
As you can see, it worked. And as I change the filters on the page, it dynamically adjusts.
@Anonymous , refer
, refer my rank
City Rank = RANKX(all(Geography[City]),[Sales])
filters I tried
Rank Top 10= CALCULATE(if([City Rank]<=10,[Sales],BLANK()) ,VALUES(Geography[City]))
Rank Top 10 1 = sumx(VALUES(Geography[City]),if([City Rank]<=10,[Sales],BLANK()) )
Top 10 City Rank = CALCULATE([Sales],TOPN(10,all(Geography[City]),[Sales],DESC),VALUES(Geography[City Id]))
Rank 2nd top = sumx(filter(VALUES(Geography[City]),[City Rank]=2),[Sales] )
| User | Count |
|---|---|
| 15 | |
| 8 | |
| 6 | |
| 6 | |
| 6 |
| User | Count |
|---|---|
| 23 | |
| 14 | |
| 13 | |
| 8 | |
| 8 |