Remove duplicate rows in powerpivot

Myura

New Member
Joined
Feb 26, 2016
Messages
36
When I create a relationship between two tables, it says each column has duplicate entries. How can I delete them? I just have to check my primary key column and remove rows of duplicate entries.

Thanks in advance


 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
All relationships in Power Pivot are of the type 1 to many. Imagine you had a table of sales data in Excel, and the table of sales data had product code and qty. But you wanted to know product name and quantity. You could write a VLOOKUP to go to another table, a table with product code and product name to fetch the product name. But what would happen if you table had 2 different names for the same product code? everything would fall apart. When you write a vlookup, you must point to a table that has a primary key (eg product code) and each entry in your sales table (product key) must match only one record in your product table. Otherwise which value will be returned? This is how it also works in Power Pivot
 
Upvote 0
All relationships in Power Pivot are of the type 1 to many. Imagine you had a table of sales data in Excel, and the table of sales data had product code and qty. But you wanted to know product name and quantity. You could write a VLOOKUP to go to another table, a table with product code and product name to fetch the product name. But what would happen if you table had 2 different names for the same product code? everything would fall apart. When you write a vlookup, you must point to a table that has a primary key (eg product code) and each entry in your sales table (product key) must match only one record in your product table. Otherwise which value will be returned? This is how it also works in Power Pivot

Exactly, my second table has duplicate entries. I want to delete them. I do not know how to do it
 
Upvote 0
If you load the data via Power Query, there is a "remove duplicates" menu option. Just select the key column and then click this button. It will be random as to which row it keeps though.
 
Upvote 0

Forum statistics

Threads
1,216,031
Messages
6,128,424
Members
449,450
Latest member
gunars

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top