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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Schreckofant
Regular Visitor

Dont Understand the Join

Hi , Im new in PowerBI an i have a problem
I want to join two tables.
The Product ID column is identical in both tables and contains almost 128 Product IDs, each of which is assigned 8 UserIDs and 8 Reviews IDs. I want to join them so that I always have 8 Product IDs, 8 UserIDs and 8 ReviewIDs next to each other.User IDUser IDReview IDReview ID

But if I now perform an InnerJoin and select both ProductIDs as the matching column, and then expand the column. Then it assigns 8 different reviews to each User ID.

So after expanding, I have 64 times the same Product ID, with 8x 8 User IDs, each with 8 different Review IDs.

After JoinAfter Join

 

How can I make it so that the columns are simply linked together without it doing this multiple allocation?

1 ACCEPTED SOLUTION
dufoq3
Super User
Super User

If you want to join them row by row (you have same 128 rows in each table and 8 rows per ID) you can add index to both tables and create such join with INDEX column.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

View solution in original post

5 REPLIES 5
dufoq3
Super User
Super User

If you want to join them row by row (you have same 128 rows in each table and 8 rows per ID) you can add index to both tables and create such join with INDEX column.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Hello again @Schreckofant, you can even use this code. Create blank query, open Advanced editor and replace whole code with this one:

 

let
    Source = Table.FromColumns(Table.ToColumns(UserID) & Table.ToColumns(ReviewID[[ReviewID]]), Value.Type(Table.FirstN(UserID,0) & Table.FirstN(ReviewID[[ReviewID]],0)))
in
    Source

Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Schreckofant
Regular Visitor

Ok, thank you :).
Is there a way to add this column exactly as it is, which would be easy in Excel, but seems impossible here.

Hello @Schreckofant ,

 

You can make relationships with data modelling instead of join in Power Query. However, you made data modelling and put the columns that are product_ıd, user ıd and reference ıd, you will get same results. You need more column that needs to be joined. 

 

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

uzuntasgokberk
Super User
Super User

Hello @Schreckofant ,

You joined only one spesific column which is product ıd. Therefore, in User ID for example for product ıd "...4JI" that have eight different User ID. For Revıew table again same "...4IJ" that have eight different reference ID. When it matches only Product ID they both have eight different value for user ıd and reference ıd so that will be 64 row for only "...4JI" But, assume that you have also user ıd in your review table. and joined both product id and user id, you will get different result. 
You can reference this link:
https://www.geeksforgeeks.org/sql-join-set-1-inner-left-right-and-full-joins/

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.