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,
I have an issue where the total of the rows is not equal to the total calculated in a table, let me explain what I mean:
I calculate first the difference between the CA N and CA N-1 that I store in diff_CA measure
and I store in Calcul_incremental measure:
- if (diff_CA >0, diff_CA, 0)
and I except the total to be 129 367,62 +0,00 = 129 637.62 and not 129 367.62 -263.86 = 129 103.76
What am I doing wrong here to fix the total taking into account not the values calculated with the condition ?
Thank you in advance
Kind regards,
Solved! Go to Solution.
Hi @SaaM ,
It is likely that your total doesn't work because you have multiple columns which is affecting your filter condition. In order for the sumx solution to work you will need to incorporate all the filter condition columns into your sumx formula. An example of the formula is as shown below:
Calcul_incremental_Total =
SUMX(
SUMMARIZE(
'YourTable',
'YourTable'[Column1],
'YourTable'[Column2]
),
IF([diff_CA] > 0, [diff_CA], 0)
)
Would you like me to generate the exact dax formula to fix the total? If so, please let me know which columns are currently listed in the rows section of your table visual.
Best regards,
I'm glad you found a solution! We're here in the community to support each other.
Regards,
Rufyda Rahma | MIE
Hi @SaaM,
Please, try something like this:
Calcul_incremental =
SUMX(
VALUES('YourTable'[YourGroupingColumn]),
IF([diff_CA] > 0, [diff_CA], 0)
)
If this response was helpful in any way, I’d gladly accept a 👍much like the joy of seeing a DAX measure work first time without needing another FILTER.
Please mark it as the correct solution. It helps other community members find their way faster (and saves them from another endless loop 🌀.
unfortunately it is not as I don't get the result expected using the formula suggested:
How should I proceed to have the total that equals 0.00 + 129367.62
Thanks
Kind regards,
SaaM
Hi @SaaM ,
It is likely that your total doesn't work because you have multiple columns which is affecting your filter condition. In order for the sumx solution to work you will need to incorporate all the filter condition columns into your sumx formula. An example of the formula is as shown below:
Calcul_incremental_Total =
SUMX(
SUMMARIZE(
'YourTable',
'YourTable'[Column1],
'YourTable'[Column2]
),
IF([diff_CA] > 0, [diff_CA], 0)
)
Would you like me to generate the exact dax formula to fix the total? If so, please let me know which columns are currently listed in the rows section of your table visual.
Best regards,
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 19 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 31 | |
| 31 | |
| 20 | |
| 12 | |
| 12 |