Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Suhel_Ansari
Helper V
Helper V

Dynamic Rank as Column

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

Capture.PNG

2 REPLIES 2
v-yuta-msft
Community Support
Community Support

@Suhel_Ansari ,

 

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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.