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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hello,
I ve a table with the comsuptions by prodution order and then the drilldown by material.
I want to calculate the amount in euros of the difference between the real and teorical consumptions.
The delta (in units and euros are correct). But the total of the delta in euros at order level not (should be the sum of the material differences).
The data have the following structure:
One table with the real consumptions by production order and material;
One table with the teorical consumptions by production order and material;
Another table with price of each material in euros;
The measure that I want to fix is:
Any suggestion?
Solved! Go to Solution.
Hello @Jomachado1 ,
You can use SUMX to bring the row context in the calculation, please try the below measure..
Delta in euros =
SUMX('Material Table',
CALCULATE(SUM('Price Table'[Unit Price]) *
(SUM('Real Consumption Table'[Consumption]) - SUM('Theoretical Consumption Table'[Consumption]))))
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!
Thank You
Dharmendar S
Hello @Jomachado1 ,
You can use SUMX to bring the row context in the calculation, please try the below measure..
Delta in euros =
SUMX('Material Table',
CALCULATE(SUM('Price Table'[Unit Price]) *
(SUM('Real Consumption Table'[Consumption]) - SUM('Theoretical Consumption Table'[Consumption]))))
If you find this helpful , please mark it as solution which will be helpful for others and Your Kudos/Likes are much appreciated!
Thank You
Dharmendar S
Thanks Dharmendar for the quick response.
The soluction propose works perfectely!
User | Count |
---|---|
14 | |
10 | |
7 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |