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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

How to summarize during many-to-many relationships

Hello.
I want to make a table that summarizes table1 and table4 below.

But table4 is not displayed. . I also couldn't use the RELATED function.
table1-table2 is related with key1 and table2-3-4 is related with key2.
I want to know the solution.

 

f_999_0-1643595415716.png

f_999_1-1643595432527.png

 

2 REPLIES 2
v-kkf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Has this relationship ever been tried?

 

vkkfmsft_0-1644198836466.png

Table = 
SUMMARIZE (
    Table1,
    Table1[key1],
    Table2[key2],
    "V1", SUM ( Table1[value] ),
    "V2", SUM ( Table4[value2] )
)

vkkfmsft_1-1644198914000.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

TheoC
Super User
Super User

@Anonymous you should be able to achieve what you are wanting in Power Query and use the Group By function:

TheoC_0-1643595860040.png

Hope this helps! 🙂

If I have posted a response that resolves your question, please accept it as a solution to formally close the post.

Also, if you are as passionate about Power BI, DAX and data as I am, please feel free to reach out if you have any questions, queries, or if you simply want to connect and talk to another data geek!

Want to connect?www.linkedin.com/in/theoconias

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.