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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
ngocnguyen
Helper IV
Helper IV

How to use sumx with non-related tables

Hi

I have a Model as below: I wanna create a matrix that getting from Table Dim_PL_Layout the column Level 2 and a Amount column with below logic:

 

For each row in Fact_PL table, let multiple the Actual column in Fact_PL with Column Value in PL_Calculation_table:

 

I wrote a Formulas like 

= SUMX(Fact_PL,Fact_PL[Actual]* RELATED(PL_Calculation_table[Value])
However, it not work. Maybe due to the relationship between Fact_PL and PL_Calculation_table is Many-Many
 
So, is there any way to do it?

 

 

 

ngocnguyen_1-1696616859357.png

 

 

4 REPLIES 4
andhiii079845
Solution Sage
Solution Sage

I create this little example:

andhiii079845_0-1696618791507.png

 

If you choose level = 2 -> Details B and C are in focus and you really want than the sum auf Actual of B and C? 





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

Proud to be a Super User!




@andhiii079845 

Thanks you for your reply

Maybe My question is not really clear. So, let me take a screen shoot as belows:
Table 1 and Table 2 will be in data model

 

Result is what I expect to get. For each data,  Level 2, it will go to each row in Details column of Table 1. Then get the Value column, then multiple it with Actual column in Table 2. After that, get the Sum of them

 

 

ngocnguyen_0-1696636857649.png

 

You talking now about 2 tables, before about 3 tables. Please show us a example with the 3 tables. Upload the xlsx via a external upload service. I think with this information it is not 100 % clear what you want 🙂 





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

Proud to be a Super User!




andhiii079845
Solution Sage
Solution Sage

Do you have a pbix file with some data example data ?





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

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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