Showing results for 
Search instead for 
Did you mean: 
Helper I
Helper I

Compare rows and add values ​​based on conditions


I would like to ask how in Power Query to do that if I have the same numbers in "Badge" but a different column "M" to add the name of the metric from the column "Metric name".
In short, when "M" is "MR", take the metric from the "Metric name" column and add it to each record with the same "Badge Number". It's actually about comparing two lines in Power Query, and I don't know if I can do anything.

Can you help me ? I also attach a picture of what it should look like.

Thank you very much


Super User
Super User

This is slightly confusing.  Does the Metric Name column exist already? If it does, what does the new column look like?


Also, can you repost your data as a table (not a picture) please?

Helpful resources

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

November Power BI Update 768x460.png

Check it Out!

Click here to read more about the November 2021 Updates!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Kudoed Authors