If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
sum in a report
I am having trouble summing for specific criteria. I have a group called
SType and another group under that called MType. I want a subtotal of all amounts that have a transaction type of "REDEMPTION" and another subtotal for all transation type of "PATRONAGE EQUITY" for the SType group. I have tried running sums on groups to no avail. Now I have done the following, but it also doesn't work any suggestions are very welcomed. I have a field called [ReTo] =IIf([TRANSACTION NAME]="redemption",[Amount],0) in my detail section Another field called [PaTo] =IIf([TRANSACTION NAME]="patronage equity",[Amount],0) in my detail section this gives me what I expected, in my detail section it gives me an amount if the statement is true and a 0 if false then in my Stype footer I have two fields called [ReTot] and [PaTot] and each one of them is a running sum on [ReTo] and [PaTo] - but it isn't summing If Redemption was the last line of the detail it will pick it up, but if not it doesn't and the same holds true for patronage equity |
#2
|
|||
|
|||
sum in a report
Did you try this for the Sum
=Sum(IIf([TRANSACTION NAME]="redemption",[Amount],0)) =Sum(IIf([TRANSACTION NAME]="patronage equity",[Amount],0)) -- \\// Live Long and Prosper \\// BS"D "cmk" wrote: I am having trouble summing for specific criteria. I have a group called SType and another group under that called MType. I want a subtotal of all amounts that have a transaction type of "REDEMPTION" and another subtotal for all transation type of "PATRONAGE EQUITY" for the SType group. I have tried running sums on groups to no avail. Now I have done the following, but it also doesn't work any suggestions are very welcomed. I have a field called [ReTo] =IIf([TRANSACTION NAME]="redemption",[Amount],0) in my detail section Another field called [PaTo] =IIf([TRANSACTION NAME]="patronage equity",[Amount],0) in my detail section this gives me what I expected, in my detail section it gives me an amount if the statement is true and a 0 if false then in my Stype footer I have two fields called [ReTot] and [PaTot] and each one of them is a running sum on [ReTo] and [PaTo] - but it isn't summing If Redemption was the last line of the detail it will pick it up, but if not it doesn't and the same holds true for patronage equity |
#3
|
|||
|
|||
sum in a report
Ah yes - thank you
"Ofer" wrote: Did you try this for the Sum =Sum(IIf([TRANSACTION NAME]="redemption",[Amount],0)) =Sum(IIf([TRANSACTION NAME]="patronage equity",[Amount],0)) -- \\// Live Long and Prosper \\// BS"D "cmk" wrote: I am having trouble summing for specific criteria. I have a group called SType and another group under that called MType. I want a subtotal of all amounts that have a transaction type of "REDEMPTION" and another subtotal for all transation type of "PATRONAGE EQUITY" for the SType group. I have tried running sums on groups to no avail. Now I have done the following, but it also doesn't work any suggestions are very welcomed. I have a field called [ReTo] =IIf([TRANSACTION NAME]="redemption",[Amount],0) in my detail section Another field called [PaTo] =IIf([TRANSACTION NAME]="patronage equity",[Amount],0) in my detail section this gives me what I expected, in my detail section it gives me an amount if the statement is true and a 0 if false then in my Stype footer I have two fields called [ReTot] and [PaTot] and each one of them is a running sum on [ReTo] and [PaTo] - but it isn't summing If Redemption was the last line of the detail it will pick it up, but if not it doesn't and the same holds true for patronage equity |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Parameter thru Form Dialog Box for REPORT | Sandy | Setting Up & Running Reports | 16 | January 10th, 2006 10:06 AM |
Reporting subreport total on main report | BobV | Setting Up & Running Reports | 22 | November 1st, 2005 03:19 AM |
To Sharkbyte and all: Calculate a total values in group level | Ally | General Discussion | 6 | June 13th, 2005 08:16 PM |
Help!! I'm running around in circles! | CathyA | New Users | 19 | December 12th, 2004 07:50 PM |
Save Report With CreateReport Coding Issue | Jeff Conrad | Setting Up & Running Reports | 8 | July 12th, 2004 08:39 AM |