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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
biengineer
Helper I
Helper I

Summarize Multiple Values from Different Table within either of Table - File Attached

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:

https://we.tl/t-XAMbWL3KEo  

 

 

biengineer_0-1672289690014.png

 

Best Regards.

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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.

vtangjiemsft_0-1672381467717.png

 

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. 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

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.

vtangjiemsft_0-1672381467717.png

 

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. 

Anonymous
Not applicable

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]
    )
)

 

MFelix
Super User
Super User

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


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português





Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

Check out the May 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.