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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request 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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors