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
Hi DAX Expert,
I Need a DAX to create a Dynamic ranking column based on the country code, I have country short name repeating it multiple time so based on the occurance of this country code I have to rank it, The below formula do the same however when i slice the table based on Country slicer the rank doesn't change, please helpe me out with this issue. Thanks
Regards
Suhel
So your requirement is to achieve a dynamic column based on slicer, right? I'm afraid dynamic column is not supported in power bi, you need to use measure instead.
Regards,
Jimmy Tao
@v-yuta-msft
My requirment is I need to change the Rank based on the Country Code selection and I need a Column so i can later use this in the Switch statement to create a group. Thank
Regards
Suhel
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 37 | |
| 33 | |
| 29 | |
| 27 |
| User | Count |
|---|---|
| 133 | |
| 104 | |
| 61 | |
| 59 | |
| 55 |