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
lherna3
New Member

Power query formula needed

 I need to compare multiple rows for matches in the same column and add a suffix when the rows have the same information. 

In the figure below you can find my column "Nom", it can be repeated several times and I woudl like to add suffix "A", "B", "C", etc. for the same "Nom" number and leave it as it is if it doesn't repeat. 

 

I appreciate your help, I've been trying for several hours 

 

lherna3_0-1699658151145.png

 

lherna3_1-1699658401733.png

 

1 ACCEPTED SOLUTION

and this is if you need the alphabet sequence A, B, C...

View solution in original post

6 REPLIES 6
Ahmedx
Super User
Super User

Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.

Screenshot_7.png

I changed the M code, try again

and this is if you need the alphabet sequence A, B, C...

Thank you very much! That is exactly what I was looking for. 


If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly

Ashish_Mathur
Super User
Super User

Hi,

Why does the third entry of each id nt have a - A?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

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.