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
ChannelDevMike
Regular Visitor

One to many not an option. Telling me I have to use many to many

The ids in accounts table are unique. They corralate with the contacts table. One Id from accounts table can have the same Id 3 times in the contact table. It wants me to do a many to many relationship only and I dont understand why. 
power bi.png

 

1 ACCEPTED SOLUTION

Hi @ChannelDevMike ,

 

multiple null values in accounts would indeed force you to use a many to many relationshipt between tabels.

You need to ask yourself whether:

  1. it makes sense to have multiple empty account ID's in the situation you are in
  2. you need those null accounts in your report

If you don't need the null accounts, you can delete them during data transformation.

If you do need them, your best option seems to create a new & unique account ID, then add that ID to your contacts table so that you can have a one - to - many relation between the 2 tables.

View solution in original post

2 REPLIES 2
ChannelDevMike
Regular Visitor

Unless multiple empty values from the accounts table through it off.. If so, how would I correct this?

Hi @ChannelDevMike ,

 

multiple null values in accounts would indeed force you to use a many to many relationshipt between tabels.

You need to ask yourself whether:

  1. it makes sense to have multiple empty account ID's in the situation you are in
  2. you need those null accounts in your report

If you don't need the null accounts, you can delete them during data transformation.

If you do need them, your best option seems to create a new & unique account ID, then add that ID to your contacts table so that you can have a one - to - many relation between the 2 tables.

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.