Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi all!
I need help to set a new measure. I have 3 tables: Product, Product Sales and Product Ingridients. I need to creat a measure that calculates de amount of ingredients I consumed. The tables are related by Product.
Example:
The correct answer here is 733 * 5 + 719 * 5, no (733+719)*(5+5).
Thanks!
Solved! Go to Solution.
Hi @Marcos_Noguer ,
Here I create a sample to have a test.
SumProduct =
VAR _SUMMARIZE =
SUMMARIZE (
VALUES ( 'Table 1'[ID] ),
[ID],
"Value", CALCULATE ( SUM ( 'Table 1'[Value] ) ) * CALCULATE ( SUM ( 'Table 2'[Value] ) )
)
RETURN
SUMX ( _SUMMARIZE, [Value] )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Marcos_Noguer ,
Here I create a sample to have a test.
SumProduct =
VAR _SUMMARIZE =
SUMMARIZE (
VALUES ( 'Table 1'[ID] ),
[ID],
"Value", CALCULATE ( SUM ( 'Table 1'[Value] ) ) * CALCULATE ( SUM ( 'Table 2'[Value] ) )
)
RETURN
SUMX ( _SUMMARIZE, [Value] )
Result is as below.
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi RicoZhou,
Thank you! It works perfectly! Kudus to you!
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 132 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |