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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Kathir
Frequent Visitor

Help needed

I have two sets of data and both have id columns. One set of id is distinct and the other is not. So theoretically if I link the two tables it should give me one is to many relationship in power bi. I tested both id columns in excel and the vlookup worked without any error. Upon linking the two columns, it shows many to many relationship. I have trimmed any white spaces and removed the blank rows. I couldn't figure out why power bi shows many to many  relationship? Help required pls 🙏 thanks 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Kathir ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1710406274446.png

2.Select the Manage relationships and create new relationships.

vjiewumsft_1-1710406446090.png

3.Select tables and date columns. The result is shown below.

vjiewumsft_2-1710406453351.png

4.One to many relationship that at least one of the id columns involved in the relationship had to contain unique values.

Model relationships in Power BI Desktop - Power BI | Microsoft Learn

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi @Kathir ,

Please try the following methods and check if they can solve your problem:

1.Create the simple table.

vjiewumsft_0-1710406274446.png

2.Select the Manage relationships and create new relationships.

vjiewumsft_1-1710406446090.png

3.Select tables and date columns. The result is shown below.

vjiewumsft_2-1710406453351.png

4.One to many relationship that at least one of the id columns involved in the relationship had to contain unique values.

Model relationships in Power BI Desktop - Power BI | Microsoft Learn

Create and manage relationships in Power BI Desktop - Power BI | Microsoft Learn

 

Best Regards,

Wisdom Wu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

PijushRoy
Super User
Super User

Hi @Kathir 

Bring the ID from the unique table in the table visual
Bring the same ID into the table and choose data show as COUNT
Right-click on the ID (which you bring 1st time and select "Show Item with no data"
Check if there is any count of more than one. If more than one, that means items are respected. Also blank value
Correct your data


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





PijushRoy
Super User
Super User

Hi @Kathir 

Bring the ID from the unique table in the table visual
Bring the same ID into the table and choose data show as COUNT
Right-click on the ID (which you bring 1st time and select "Show Item with no data"
Check if there is any count of more than one. If more than one, that means items are respected. Also blank value
Correct your data


Let me know if that works for you


If your requirement is solved, please mark THIS ANSWER as SOLUTION ✔️ and help other users find the solution quickly. Please hit the Thumbs Up 👍 button if this comment helps you.

Thanks
Pijush
Linkedin




Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





Wilson_
Super User
Super User

Hi Kathir,

 

Can you please share a sample pbix file? (If you don't know how, please check the pinned thread in the forum.) It would make debugging your issue easier. 🙂




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors