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
Simon_29
Helper II
Helper II

Compare rows and add values ​​based on conditions

Hello,

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

SCREEN1.png

1 REPLY 1
HotChilli
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

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.

Top Solution Authors
Top Kudoed Authors