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! Get ahead of the game and start preparing now! Learn more
Hello all,
I'm new using Power BI and I'm trying to create a Ranking based in a # by Country, but I want to exclude some of the countries from the ranking, is this possible? How can be done?
Thanks,
Yaitza
Hi, use you can use a measure:
Rank-M = RANKX ( ALLSELECTED ( Table1 ), CALCULATE ( SUM ( Table1[Sales] ) ),, DESC )
And apply a visual level filter to select the countries.
Regards
Victor
Lima - Peru
Hello @Vvelarde,
I tried that one, and didn't work. I'm trying to rank a measure, the measure was done for all the countries, not sure if that affect in the ranking.
Thanks
Hi @yamaro,
Would you please share some sample data and DAX of measure? Also please clarify the desired results regarding this sample data.
Best Regards,
Qiuyun Yu
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 38 | |
| 37 | |
| 28 | |
| 25 |
| User | Count |
|---|---|
| 124 | |
| 87 | |
| 70 | |
| 66 | |
| 65 |