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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

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! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.