Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi All,
I believe this problem might have an easy solution but I'm not too sure.
I'm wanitng to find the total cost for a product with mutiple ingredients over a selection of past months when prices differ.
I've taken a simplified version of the two tables im using (below) which are connected via Ingredient ID with a many-to-many relationship. (ignore etc.)
BOM:
Component Cost:
I'm trying to get a total cost for each product, which can vary depending on the month (ive not included date table here).
For product 1 in July, I've created this table and would like the Total Product Cost to add up to equal 1.5+425+6+154 = 586.5 but at the moment its giving the multiplied sum of Quantity and Price tables.
The formual I've used for Total Production Cost measure is below, I know it's wrong as I'm using sum on the columns but have no idea what else to use.
Solved! Go to Solution.
@Anonymous , Merge these two table is power query using Indegrident id
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 21 | |
| 20 | |
| 15 |
| User | Count |
|---|---|
| 58 | |
| 54 | |
| 42 | |
| 30 | |
| 24 |