Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi all,
My question is below. I have two tables connected to each other with "Order" column and many-to many relationship. I want to get a new table shown as below. Is there any way to have it? I am a newbie so, if it is a dumb question, sorry about that.
Thanks in advance.
Solved! Go to Solution.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new table.
GENERATE function (DAX) - DAX | Microsoft Learn
Expected result table =
GENERATE('Table 1', SUMMARIZE('Table 2', 'Table 2'[Operation]))
Hi @CKK
You can use Merge to achieve this effect.
Delete the Order column
Is this the result you expect?
For more details, you can read related document link: Merge queries overview - Power Query | Microsoft Learn
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @CKK
You can use Merge to achieve this effect.
Delete the Order column
Is this the result you expect?
For more details, you can read related document link: Merge queries overview - Power Query | Microsoft Learn
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
I am not sure if I understood your question correctly, but please check the below picture and the attached pbix file.
It is for creating a new table.
GENERATE function (DAX) - DAX | Microsoft Learn
Expected result table =
GENERATE('Table 1', SUMMARIZE('Table 2', 'Table 2'[Operation]))
Hi @CKK
No need to be sorry, create three tables instead. Avoid Many to Many relationships.
Table1 unique parts
Table 2 unique operations
Table 3 Orders
Join Table1 and Table2 to Table3 using One-Many relationship.
You do not need to create a combined table, what is it you want to do with combined table?
Problems with combined table
- Additional storage.
- Slow refresh time.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
10 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
13 | |
12 | |
11 | |
9 |