Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have two tables as follows:
1. A list of products (50 rows)
2. A list of locations (10 rows)
I want to create a third table that will have a row for each combination of product and location. I will end up with a table of 50 x 10 = 500 rows.
What's the best way to do this?
Solved! Go to Solution.
I found this online which gave me the solution I wanted:
I found this online which gave me the solution I wanted:
you can create a relationship between the "Products" table and the "Locations" table and then use the "Merge Queries" feature to create a new table that combines both tables based on this relationship. Here's a step-by-step guide:
Load the Tables:
Create Relationships:
Create a New Table:
Merge Queries:
Configure Merge:
Expand Merged Table:
Load Data:
Now, you should have a new table that contains all possible combinations of products and locations. This table will have 500 rows (50 rows from the "Products" table multiplied by 10 rows from the "Locations" table).
Blog: AnalyticPulse
Youtube Channel: AnalyticPulse
User | Count |
---|---|
75 | |
75 | |
45 | |
31 | |
27 |
User | Count |
---|---|
99 | |
89 | |
52 | |
48 | |
46 |