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.
Dear All,
Hope you all are doing well.
I wish to Summarize based on different columns from different tables with Many - Many Relationship.
Download pbix:
Best Regards.
Solved! Go to Solution.
Hi @biengineer ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
Table =
GENERATE (
SUMMARIZE ( 'A', 'A'[Machine Name], 'A'[Operation], 'A'[Time] ),
SELECTCOLUMNS (
RELATEDTABLE ( 'B' ),
"Item", 'B'[Item],
"Mcss", 'B'[Mcss],
"Quantity", 'B'[Quantity]
)
)
(3) Then the result is as follows.
Please refer to the following document for more information.
Summarizing values from different tables - Microsoft Power BI Community
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @biengineer ,
According to your description, here are my steps you can follow as a solution.
(1) My test data is the same as yours.
(2) We can create a table.
Table =
GENERATE (
SUMMARIZE ( 'A', 'A'[Machine Name], 'A'[Operation], 'A'[Time] ),
SELECTCOLUMNS (
RELATEDTABLE ( 'B' ),
"Item", 'B'[Item],
"Mcss", 'B'[Mcss],
"Quantity", 'B'[Quantity]
)
)
(3) Then the result is as follows.
Please refer to the following document for more information.
Summarizing values from different tables - Microsoft Power BI Community
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous ,
In your answer, is it possible to insert excluding filters?
I mean, using your answer as an example, is it possible to exclude when the column "item" from related "b" is different than null, or "J", etc...
Example:
Table =
GENERATE (
SUMMARIZE ( 'A', 'A'[Machine Name], 'A'[Operation], 'A'[Time] ),
SELECTCOLUMNS (
RELATEDTABLE ( 'B' ),
"Item", IF('B'[Item] <> NULL),
"Mcss", 'B'[Mcss],
"Quantity",'B'[Quantity]
)
)
Hi @biengineer ,
What is the final result you want to achieve? Can you share how the calculation shoud be handle? Can you pledase give some more insights.
Has a good start for the many to many check this video
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThis 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 |
---|---|
77 | |
74 | |
57 | |
40 | |
35 |
User | Count |
---|---|
65 | |
65 | |
59 | |
53 | |
45 |