In my pivot table I’m using four calculated field (Col 1, col 2, col 3 and col 4). The sum of col 1, col 2 is correct but the sum of col 3 and 4 is not. The sum of col 3 and 4 is not ignoring the rows with zero values, the real value is much lower than what is being shown. Here are the expressions for the calculated fields:
Col 1:
sum(valortotalprodutocomdesconto)
Col 2:
ifelse(
isNull(sumIf(valortotalprodutocomdesconto, statusfaturamento=‘CANCELED’)),
0,
sumIf(valortotalprodutocomdesconto, statusfaturamento=‘CANCELED’)
)
Col 3:
ifelse(
Col 1 - coalesce({Col 2}, 0) = 0,
0,
Col 1 - coalesce({Col 2}, 0)
)
Actually, the issue is in col 4. The total sum is supposed to be -6.169,21. When I add a filter to hide the rows with the value 0,00 in col 4, the total sum display correctly:
Hi @glopes,
Since we have not heard back, I’ll go ahead and close out this topic. However, if you have any additional questions, feel free to create a new post in the community and link this discussion for relevant information if needed.