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
Syndicate_Admin
Administrator
Administrator

DUPLICATE ROWS WHEN YOU JOIN 2 QUERIES ON TABLES IMPORTED FROM SQL SERVER

When I do join query of 2 tables imported from SQL I duplicate the records of the first one and I distort the model.
You would supposedly have to keep all the rows of the first and the matching values of the second (without duplicating those of the first). The combination is made by a unique record ID.

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

This helped me fix the duplication of lines, "add in maximum number of matches" =1

Jorgejim85_0-1710974615823.png

Syndicate_Admin
Administrator
Administrator

it happens to me the same, could you solve ?

v-xulin-mstf
Community Support
Community Support

Hi @Syndicate_Admin,

 

Depend on your need, you can try Right outer join.

 

If you still have some question, please don't hesitate to let me known.‌‌

 

Best Regards,

Link

 

Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!

amitchandak
Super User
Super User

@Syndicate_Admin ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Hello.
yes, right.

Captura.PNG

The table on the Left is incremental (each day only the new ID_EXP are added.)
The table on the right contains the closing date of these files and has been updated in full every day (they are bank debtors' files).
When I try to combine queries (using the ID_EXP field) to bring the close date to the table on the left, I duplicate or triple the rows in the table on the left.


I use "combine queries" and this option that I understand is a like a LEFT JOIN:

mati_sterzer_0-1625072297693.png


Thanks a lot!! 🙂

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.