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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.

Top Solution Authors
Top Kudoed Authors