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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
I_LOVE_POWER_BI
Helper III
Helper III

Complex calculation between two fact tables

Dear Communnity,

I have a rather complex problem I am struggeling with for a while. Would really appriciate if you could take the time to understand the problem first. Looking forward to your support!

I created a fake example to explain the problem: Having a table which shows the Recipes of different pies for different stores:

I_LOVE_POWER_BI_4-1637570752191.png

 

The "Mixed Fruit Pie" is using an ingredient called "Pie Mixture 1", which consits of different pies:

I_LOVE_POWER_BI_3-1637570731828.png

 

The "Pie Mixture Table" splits the ratio of "Pie Mixture 1" between 3 different ingredients (here the ingredients are the pies from the former table itself. And in this case even the "Mixed Fruit Pie" itself is an ingredient (like a workoff which is produced during the production process and will be reused again later for the next pies).

So my goal is to define the price for "Pie Mixture 1" and afterwards add it up to get the total price for the "Mixed Fruit Pie". Here the steps in excel I need to do in order to get there:

I_LOVE_POWER_BI_5-1637570840179.png

 

I can't add a calc. column in the "Pie Mixture Table", because each store is using different %-splits for the ingrediens.

 

My final table shall look like this:

I_LOVE_POWER_BI_2-1637570544704.png

I struggle here, because I choose the Pie and ingredients here, but through the context filter here, it only adds the mixture amount of "Mixed Fruit Pie" itself and ignores the two others...maybe also because of my relationship (?), which looks like this:

I_LOVE_POWER_BI_7-1637572685357.png

 

Hope this makes clear what my problem is...thanks a lot for your kind support!

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi ,

I created a sample pbix for your reference:

Vlianlmsft_0-1637819692095.png

 

 

Best Regards,
Liang
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

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi ,

I created a sample pbix for your reference:

Vlianlmsft_0-1637819692095.png

 

 

Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Top Solution Authors