cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Pat_Da_Cat Frequent Visitor
Frequent Visitor

one of the columns must have unique values

Hi,

 

So I have a lookup table consisting of two columns (Component #, Description) with 220 rows of data that i'm trying to create a relationship with my main dataset, however I keep getting the following error message:

 

Image 1.png

 

I checked the lookup table for duplicates and there are none. Does anyone have any ideas?

 

Thanks for reading.

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: one of the columns must have unique values

HI @Pat_Da_Cat

 

Try adding this Column in your MinVit table to identify if there are any Duplicate Components...

 

CalculatedColumn =
IF (
    CALCULATE ( COUNTROWS ( MinVit ), ALLEXCEPT ( MinVit, MinVit[Components] ) ) > 1,
    "Duplicate"
)
2 REPLIES 2
Super User
Super User

Re: one of the columns must have unique values

HI @Pat_Da_Cat

 

Try adding this Column in your MinVit table to identify if there are any Duplicate Components...

 

CalculatedColumn =
IF (
    CALCULATE ( COUNTROWS ( MinVit ), ALLEXCEPT ( MinVit, MinVit[Components] ) ) > 1,
    "Duplicate"
)
Pat_Da_Cat Frequent Visitor
Frequent Visitor

Re: one of the columns must have unique values

Thanks! I missed one double entry.

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

Community News & Announcements

Community News & Announcements

Get your latest community news and announcements.

Virtual Launch Event

Microsoft Business Applications October Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

Community Kudopalooza

Win Power BI Swag with Community Kudopalooza!

Each week, complete activities and be qualified in the drawing for cool Power BI Swag.

Users Online
Currently online: 207 members 2,279 guests
Please welcome our newest community members: