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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Darats
Frequent Visitor

Unwanted duplicated rows in visual table

Hello,

 

I'm struggling with a stange behavior I cannot explain. Hopefully, someone will be able to help me on it.

 

I have 2 tables from 2 PBI Datasets (live connection), linked via a "many to many" relationship.

Darats_0-1620115322431.png

 

If I create a visual table:

Darats_2-1620116235037.png

This is expected behavior, all rows from Table 1 and rows from table 2 only when data are matching between the 2 tables

 

If I add others fields from Table 2 : for some reason, PBI duplicates rows (yellow bellow) :

Darats_1-1620115882014.png

 

I see no reason why PowerBI behave like this and cannot find any similar problem on the forums.

 

Thanks,

 

1 ACCEPTED SOLUTION

Hi,

 

Sorry for my late answer.

As I have live datasets I tried to embed the data directely within the pbix and I figured out that my duplicated rows issue was gone.

 

So I must say that it looks like a bug when having a relationship between 2 tables from live powerbi datasets.

 

Problem is solved at the moment as I have embed everything within the same pbix.

 

But if you want to reproduce, you can try to link 2 live datasets and make a relationship between them, then display the result in a visual table.

View solution in original post

5 REPLIES 5
amitchandak
Super User
Super User

@Darats , In such cases it is better to create one or more bridge table like ref_user in this case and use that

https://www.seerinteractive.com/blog/join-many-many-power-bi/

 

refer to my video on how to create Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi,

 

I did follow your tutorial and try to create a Bridge table before, I didn't succeed and there came back with the many to many relation.

 

I've made a Bridge table  : DISTINCT ( UNION ('Table 1','Table 2') ).

I wasn't able to append Table 1 and Table 2 because I cannot have them in power query because they are PBI Datasets

Darats_4-1620120598392.png

 

 

Here are the results I got :

Darats_3-1620120532602.png

 

Bridge + Table 1 and Bridge + Table 2 works but I still have those duplicated rows problems (yellow above).

Table 1 + Table 2 : gives an error, which I don't understand why.

 

I still believe those duplicated rows are not normal, any idea?

 

Hi @Darats ,

 

You can learn more about many to many relationship from https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-many-to-many-relationships and https://docs.microsoft.com/en-us/power-bi/guidance/relationships-many-to-many

 

Would you please show us sample pbix contains table1 and table2?

 

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

 

Best Regards,

Dedmon Dai

Hi,

 

Sorry for my late answer.

As I have live datasets I tried to embed the data directely within the pbix and I figured out that my duplicated rows issue was gone.

 

So I must say that it looks like a bug when having a relationship between 2 tables from live powerbi datasets.

 

Problem is solved at the moment as I have embed everything within the same pbix.

 

But if you want to reproduce, you can try to link 2 live datasets and make a relationship between them, then display the result in a visual table.

Hi @Darats ,

 

Thank you for sharing the solution. One thing need to be confirmed, if the two tables from different live connection data source, then the issue happens.

 

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

 

Best Regards,

Dedmon Dai

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.