I have a code that looks like this but when ever I run this query I am presented with a wrong calculation for the difference in the rolling totals. Is there a workaround or