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
klammymaster
Frequent Visitor

Relationship and Unique Values

Hi there,

 

I have a 2 files with many entries trying to relate them together via email addresses. When I try relating the 2 together, I get an error "You can't create a relationship between these two columns because one of the columns must have unique values".  1 file has over 40,000 rows and the other has about 7000.

 

So far I've done: Removed errors, trimmed text, removed blanks, removed nulls, lowercased cells, tried both CSV and XLSX file formats, and created a new query with all of the emails to make it a middle of the relationship.

 

 I've been stuck with this issue for 2 days now and can't figure out what I'm doing wrong. 

1 ACCEPTED SOLUTION

Hi @klammymaster

 

Here is a DAX Soluction for creating a slicer table that will have unique values that you can create relationships too.

 

Then use the field in this table for your slicers

 

Slicer Table = 
    DISTINCT(
        UNION (
            ALL('biibuserdata'[biibEmail]) ,
            ALL(Intune[Email address])
            )
            )

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

View solution in original post

14 REPLIES 14

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.

Top Solution Authors