Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi!
I'm new to DAX, and am trying to create a formula that will calculate the price deviation, but the total does not sum the rows, but instead returns the calculated result on the total.
This is what i'm using:
=([Price per KG - Actual] - [Price per KG - Budget]) * [Sum of RM Weight Sold ADJ M (2023)]
Please help!
Hi @Monami
Please try
=
SUMX (
VALUES ( Conso[Product] ),
( [Price per KG - Actual] - [Price per KG - Budget] ) * [Sum of RM Weight Sold ADJ M (2023)]
)
thanks Andhiii,
I added the SUMX, but it uses the underlying data. is there any way for the formula to calculate the formula based only on the table presented ? (without the underlying)
Please make a example table, your current measure, the wrong result and what you want 🙂
Proud to be a Super User!
hope this is clear enough
Can you please show the underlaying table? Some data record would be great, are there more rows with repeting price budget and actual? Than you have to use maxx or minx.
Proud to be a Super User!
You have to use sumx:
https://radacad.com/sum-vs-sumx-what-is-the-difference-of-the-two-dax-functions-in-power-bi
Proud to be a Super User!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 6 | |
| 5 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 13 | |
| 8 | |
| 8 | |
| 8 |