Skip Navigation
20 comments
  • Summing a balance column is never correct. Take any example that doesn't end in a zero balance and it's easy to see that the balance column's sum is meaningless:

  • The sum of spend will always be $50.

    The sum of balance doesn’t mean anything and reflects the number of transactions rather than their size.

    Do the same thing again spending $1 at a time and you’ll see.

  • Data scientist here! What you have discovered is what's known in data analytics as a semi-additive measure. Instead of summing the balance column, you would count it, and get a measure that showed how many transactions took place, but not a balance. Of course, there's no reason to simply count the one column, a row count would suffice and return the same.

  • Am I missing something here? The numbers are different between the columns. The "extra 1" comes from the 30.

20 comments