I've set up a running total but I've run into an issue where its duplicating one of the values.
Shared NumberVar LT;
LT:=LT+{@Leads}
Shared NumberVar LT;
LT:=0
Shared NumberVar LT;
{@LT Sum}/distinctcount({Matches.Orders},
{@Origin})
So I've placed @LT Sum in the GH for Matches.Orders as this is where the sum needs to occur. I've placed @reset at the GH for @Origin as this is where the reset to 0 needs to occur. This appears to be working but for one flaw...its duplicating one of the values.
for example if 4 values being summed in @LT Sum was
1
4
5
6
the @avg formula is spitting out 22/4 = 5.5
its adding the 6 twice. It should be 16/4 = 4.
I've verified that its doing this on every output.
Let me know if you can help
Edited by martbar - 15 Oct 2012 at 12:31pm