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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Rylee
Helper I
Helper I

Concatenate Rank Measure and Column

I have a measure that uses the RANKX function to return the rank of Brands by DisplayMeasures. I want to concatenate this rank number with the [Brand] column. When I have the measure on its own, it returns 1, 2, 3, 4, etc.

 

RankSelected = Rankx(ALLSELECTED('T_Final Brand Table'), [DisplayMeasures], , DESC)

 

 

If I put this in a calculated column, I have to specify the [Brand] column or there is a circular dependency. When I use the following function, the RANKX function returns 1 all the way down, so it looks like 1brandnameA, 1brandnameB, 1brandnameC etc.

 

Column = Rankx(ALLSELECTED('T_Final Brand Table'[Brand]), [DisplayMeasures], , DESC) & 'T_Final Brand Table'[Brand]

 

 

Can someone tell me if it is possible to concatenate the two with the correct ranking?

 

Thanks!

1 REPLY 1
v-shex-msft
Community Support
Community Support

Hi @Rylee,

 

Can you please share some sample data to test?

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.