Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Below is the sample data
| ID | DOB | Ethnicity | |
| 1 | 01/01/2018 | British or Mixed | aa.aol.com |
| 1 | 01/01/2018 | Other Mixed | |
| 2 | 02/05/2015 | British or Mixed British | |
| 2 | 02/05/2015 | Mixed British | xx.bt.com |
| 2 | 02/05/2015 | British or Mixed British | xx.bt.com |
| 3 | 01/06/2012 | Other Mixed |
ww.bt.com |
| 3 | 01/06/2012 | ww.bt.com | |
| 4 | 01/01/2011 | White and Asian |
|
| 4 | 01/01/2011 | White and Asian |
|
I want the output as
| ID | DOB | Ethnicity | |
| 1 | 01/01/2018 | British or Mixed | aa.aol.com |
| 2 | 02/05/2015 | Mixed British | xx.bt.com |
| 3 | 01/06/2012 | Other Mixed |
ww.bt.com |
| 4 | 01/01/2011 | White 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.
Solved! Go to Solution.
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:
Pete
Proud to be a Datanaut!
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:
Pete
Proud to be a Datanaut!
It works!! Thanks a lot 🙂
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 4 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 5 | |
| 5 | |
| 4 |