Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Why is the overall total sum amount different from the sum amount per debit credit?

novalcia
7 - Meteor

I'm using the Summarize tool to just sum the amount but I got contradictory results. If I just sum the total amount directly:

total sum.png

but if I try to total sum by debit credit:

sum per debit credit.png

This is from the same data file. This happened to all my data. This still happened even after I tried to rerun it.

Why is it contradictory? I don't understand what happened.

 

This is the Alteryx I'm using:
Version: 2022.3.1.573 Patch: 7 

Running Non-Elevated

I also tried using Version: 2023.2.1.17242 Patch: 4 but it still happened

21 REPLIES 21
JerryCooperCMA
6 - Meteoroid

@novalcia what Data Type are you using? When I do a Summarize on that data using the Double data Type, I get the same discrepancy as shown in your original post, but when I use Int64 or Fixed Decimal (Size 40.2) the sum of "K" records matches the sum of "D" records. Here is the Summarized output for Double

JerryCooperCMA_0-1762454500006.png

Here is the Summarized output for Int64

JerryCooperCMA_1-1762454746903.png

Edited: you wouldn't be able to use Int64 if you have numbers to the right of the decimal, so Fixed Decimal is probably best. You just need to know how big your individual values can get, accounting for decimals and negative sign when sizing. I'm not sure if a ticket is needed or if this is just one of those scenarios (very large numbers and lots of them) where floating-point precision suffers when you add them all together.

Labels
Top Solution Authors