Forum Discussion
Measure Help Needed - Totals Sum calculation
- 1 year ago
Hi,
Write this measure
=Measure = SUMX(VALUES(Bonus[Seller]),[Commission Payable])
Hope this helps.
Hi AFRATH34, I hope you are doing well,
To fix the issue where the total for Comms Pmt is not summing individual line items but instead recalculating based on totals, you can modify your measure to calculate the Comms Pmt per row and then sum the result.
Here's an adjusted DAX formula for Comms Pmt that should sum each row's individual value instead of recalculating based on totals:
Comms Pmt =
SUMX(
'Commission',
'Commission'[Eligible Commission] * [Achieved %]
)
Using SUMX ensures that the calculation is done row by row rather than recalculating based on total values, which is why your original measure was resulting in the total Comms Pmt as 268,955 * 30% = 80,686 instead of the sum of individual line items.
This adjusted measure should now provide the expected total for Comms Pmt. Let me know if this works for you!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Let's Connect on LinkedIn: https://www.linkedin.com/in/anmol-malviya/?originalSubdomain=in