Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 11 Oct 2017 at 7:15am
but what field identifies it as a unique value to include in the sum once?
order on that field (inside the group) and change your RT to evaluate on change of that field.
Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Posted: 11 Oct 2017 at 7:26am
The TRANS ID
There are different amounts for each TRANS ID but the data backend returns multiple rows for the same amount.
Here it is the actual data
NAME TID TRANSID POLICY AMT
GH
D KIM 3527 DU JKC74 144
D KIM 3527 DU JKC74 144
D KIM 3527 DU JKC74 0
D MARSHALL 7896 RO JKC74 716
D MARSHALL 7896 RO JKC74 716
GF(POLICY)
I did a running total on the amount with evaluate on TRANS ID and reset on POLICY but im getting skewed SUM.
I tried a formula in evaluate AMOUNT<> Previous (AMOUNT) but still it doesn't add up
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 11 Oct 2017 at 7:57am
maybe this?
sort on transID
set your RT to a SUM of AMT
set the evaluate for on change of field = TransId
set the reset for on each group -
place the RT in the group footer
Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Posted: 11 Oct 2017 at 8:10am
Thanks that worked. But I have a second report where I have to capture a differences of two TRANSID
i.e. SUM(DU) and SUM(RO) and show the difference between them
So basically I have to show 716 - 144 = 562
But the RT includes the duplicates and giving me 1144. ANy workaround?
Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Posted: 11 Oct 2017 at 8:17am
you know your data so not sure if this logic applies but...
create a formula and multiply the AMT by (-1) for when the rowfield="RO" then do the same RT sum but sum the formula field not the AMT field.
Joined: 25 Aug 2009
Location: United States
Online Status: Offline
Posts: 166
Posted: 12 Oct 2017 at 4:04am
That did it but where ever the difference between "RO" and "DU" is equal to 0. It is putting blank field instead on 0. Is there a way to suppress the whole row for that specific problem?
I tried Suppress formula on GF as DIFF = 0 but t doesn't work
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum