fbpx

Keep Duplicate Records in Power Query

Power Query in Power BI allows you to perform a series of steps to transform your data. One of the steps amongst this is to keep duplicate records.

Keep Duplicate Records In Power Query

We generally take out duplicate lines but if we need to keep and check what the duplicates are, Power Query allows us to do that. Suppose you have a set of data as shown in the below image. You can see that the marked ones are duplicate values, let’s keep them. DATA WITH DUPLICATE RECORDS

MICROSOFT POWER QUERY FOR BEGINNERS
• Course Certificate • Lifetime Access & Free Updates • Lifetime Support • Career Focused

 

Step 1: Go to Power Query Editor from Power BI Desktop

Get Data > Excel file > Load > Excel Data > Home > Edit Queries

Step 2: Keep the duplicate rows in Power Query Editor

Go to Home > Keep Rows button > Keep Duplicates option

KEEP DUPLICATE RECORDS in Power Query (Power Bi)

 

Step 3: Close & Apply Changes

Click on Close & Apply option from the Home tab and this will apply all the pending changes on your data. When you open the file again, it will be saved as it is.

DUPLICATES KEPT USING POWER QUERY EDITOR

MICROSOFT POWER QUERY TRAINING
• 100+ Video Tutorials • 15 Case Studies • 2 eBooks • 10 Presentation Decks • 2 Webinar • 24*7 Dedicated Support

 

If you want to learn more about Power Query? Yoda Learning provides high quality fully updated Power Query Course that will make you Excel Power Query Hero at the office. This training will provide the latest trends and technical approaches in Power Query with Excel and Power BI. 

You can also learn: