complains both columns contain duplicate values. at least one of the columns selected must contain only unique values to create a relation

Mohamad Alkhatib

New Member
Joined
Jan 27, 2022
Messages
3
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2016
Platform
  1. Windows
  2. Web
when creating a relationship between two pivot tables it complains both columns contain duplicate values. at least one of the columns selected must contain only unique values to create a relation between the tables
both my tables contain a column called WellId (well name) with the same format (all text) and all with the same Caps
now in this column the WellId the names are repeated for different date values and other corresponding data
the only data repeated in my tables is WellId, the rest are different
How to create the relation between my two tables based on WellId?
Under Power Pivot I get no relations detected and this details:
"No relationships were detected. Fields might have been added to a PivotTable or PivotChart from tables that do not have a relationship defined in the PowerPivot window. Alternatively, the relationship might be too complex to be detected automatically. To continue, use the Manage Relationships dialog box in the PowerPivot window to create new relationships or edit existing ones."

1695100876252.png


1695100985467.png


1695101198121.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
I was trying to follow the guidance on:
but it didn't work: Still no relation between may main data tables!
1695109689253.png
 
Upvote 0
Managed to solve it, by selecting WellId from WellId table and not WellId from the other tables.
 
Upvote 0
Solution

Forum statistics

Threads
1,223,885
Messages
6,175,178
Members
452,615
Latest member
bogeys2birdies

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