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

Remove duplicates based on value on another column

Below is the sample data

 

IDDOBEthnicityEmail
101/01/2018British or Mixedaa.aol.com
101/01/2018Other Mixed 
202/05/2015British or Mixed British 
202/05/2015 Mixed Britishxx.bt.com
202/05/2015British or Mixed Britishxx.bt.com
301/06/2012Other Mixed

 

ww.bt.com

301/06/2012 

ww.bt.com

401/01/2011White and Asian

 

401/01/2011White and Asian

 

 

I want the output as

IDDOBEthnicityEmail
101/01/2018British or Mixedaa.aol.com
202/05/2015 Mixed Britishxx.bt.com
301/06/2012Other Mixed

 

ww.bt.com

401/01/2011White and Asian 

 

I have a table with duplicates and once I remove the duplicates I want to make sure records that have email addr is not deleted. any advise is greatly appreciated.

1 ACCEPTED SOLUTION
BA_Pete
Super User
Super User

Hi @uc ,

 

Multi-select (Ctrl+click) [ID] and [DOB].

On the Home tab, go to Group By.

In the aggregate columns section at the bottom, create two aggregate columns as follows:

 

New column name: Ethnicity

Operation: Max

Column: Ethnicity

 

New column name: Email

Operation: Max

Column: Email

 

This gives me the following output:

BA_Pete_0-1634292294516.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




View solution in original post

2 REPLIES 2
BA_Pete
Super User
Super User

Hi @uc ,

 

Multi-select (Ctrl+click) [ID] and [DOB].

On the Home tab, go to Group By.

In the aggregate columns section at the bottom, create two aggregate columns as follows:

 

New column name: Ethnicity

Operation: Max

Column: Ethnicity

 

New column name: Email

Operation: Max

Column: Email

 

This gives me the following output:

BA_Pete_0-1634292294516.png

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




It works!! Thanks a lot 🙂

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