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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Pat_Da_Cat
Regular 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
Zubair_Muhammad
Community Champion
Community Champion

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"
)

Regards
Zubair

Please try my custom visuals

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

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"
)

Regards
Zubair

Please try my custom visuals

Thanks! I missed one double entry.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.