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
aashton
Helper V
Helper V

Power BI says Many-to-Many but no duplicates

Hello,

I have an Applications table, linked to Contracts table on Candidate ID.  The relationship should be many-to-one, there can be multiple applications, but only one Contract for that Candidate ID.  Both are Excel spreadsheets.  I've checked the spreadsheet over and over, there are no duplicates in Candidate ID on the Contracts spreadsheet.  However, Power BI will only allow a many-to-many.  I've read every post, I've tried everything here, https://community.fabric.microsoft.com/t5/Desktop/Can-t-establish-many-to-1-relationship-between-tab... nothing works.  I've cleaned, trimmed, UPPER, coalesce, Candidate ID.  I created a visual with unique Candidate IDs with the Candidate ID count from Contracts, and it correctly displays 492 Candidate IDs, each with a count of 1.  However, from Power Query, using Group By on Candidate ID, I am getting outrageous results.  Showing some candidate ID's have up to 10 rows...they do not.   PLease help.  

aashton_0-1689953650883.png

 

aashton_1-1689953783874.png

 

 

1 REPLY 1
foodd
Super User
Super User

Please provide sample data (with sensitive information removed) that covers your issue or question completely, in a usable format (not as a screenshot).


https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...


Please show the expected outcome based on the sample data you provided.

https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...

 

This allows members of the Forum to assess the state of the model, report layer, relationships, and any DAX applied.

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.