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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
jpmuk
Frequent Visitor

Output Unique Rank for Same value in a table

 

IDValueAreaConcatanationDesired Output
A124AAAA1241
A124BBBA1242
A213AAAA2131
A213BBBA2132

 

Hi, 
I've got a table laid out similar to the above.  I would like to create a column that gives these values a rank based on a concatanation of the ID and Value
For example. A124 would appear twice. but i would like the first instance to display as 1, the second as 2 and so on. 

Does anyone know how I could acheive this with a DAX function?

I've managed tis in excel previously, but that was simple using the specific dynamic ranges based on cell address. 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @jpmuk,

I think this should more suitable to achieve in the query editor, you can add an index column based on column groups:

Create Row Number for Each Group in Power BI using Power Query - RADACAD

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @jpmuk,

I think this should more suitable to achieve in the query editor, you can add an index column based on column groups:

Create Row Number for Each Group in Power BI using Power Query - RADACAD

Regards,

Xiaoxin Sheng

amitchandak
Super User
Super User

@jpmuk , refer if Rank Tie breaker can help
https://community.powerbi.com/t5/Community-Blog/Breaking-Ties-in-Rankings-with-RANKX-Using-Multiple-...
https://databear.com/how-to-use-the-dax-rankx-function-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors