Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
wenners68
Helper II
Helper II

Find duplicates

Hi,
I want to create a new table from the table below only containg duplicated item lines. 

A customer should only have 1 main page for each edition in a publication. In this case Name A's 2 lines should be included in the new table. Any ideas how I can do this?

 

Duplicates.PNG

1 ACCEPTED SOLUTION

@wenners68,

From your original query, then it appears to be the expected output (New table with duplicates):

Duplicates_result.PNG

This can be achieved using duplicate table and then simply using 'Keep Duplicates' (option mentioned in the previous comments by @Fowmy).

If this post solved your query, mark this post as a solution and give a thumbs up !!!

View solution in original post

7 REPLIES 7
Anand24
Super User
Super User

Hi @wenners68,

 

For a new table with duplicates, you can just duplicate the original table from Power Query Editor and apply the 'Keep Duplicates' step mentioned by @Fowmy on the duplicated/new table.

 

Thanks !

Anonymous
Not applicable

You can achieve this in Dax using SUMMARIZE

 

Go to the Data tab and select New table, 

NewTable = SUMMARIZE('TableName','TableName'[Customer],'TableName'[Item],'TableName'[Publication],'TableName'[Edition])

 note - ensure you change "'TableName'" to the name of the table that you want to reference. 

 

Karlos. 

amitchandak
Super User
Super User

@wenners68 , refer

https://yodalearning.com/tutorials/keep-duplicate-records-power-query/

https://www.youtube.com/watch?v=XyFeaGD5ldo

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Fowmy
Super User
Super User

@wenners68 

In Power Query, you can you the Keep Duplicates option to keep only the duplicated records if you mean that way.

Fowmy_0-1596442271031.png

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Hi, I only want the duplicates, nothing else.

@wenners68,

From your original query, then it appears to be the expected output (New table with duplicates):

Duplicates_result.PNG

This can be achieved using duplicate table and then simply using 'Keep Duplicates' (option mentioned in the previous comments by @Fowmy).

If this post solved your query, mark this post as a solution and give a thumbs up !!!

@wenners68 

Did you try what I suggested?

You perform the following 2 steps to get only duplicated rows with single line.

If you can show the expected output form your example, it will give clear understanding.

Fowmy_1-1596446679106.png


________________________

Did I answer your question? Mark this post as a solution, this will help others!.

Click on the Thumbs-Up icon on the right if you like this reply 🙂

YouTube, LinkedIn

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.