Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Counting for different items

Status
Not open for further replies.

tjcusick

Programmer
Dec 26, 2006
134
US
I'm new to this Actuate 8 SP1 reporting tool but am really enjoying working with it.

I'm having just one slight issue:
The data I'm reading in has a column called TORT_OPT and can either be a F or L. I want to put a count line at the end of the group section that has the agency id and the F count and the L count.

so im looking to have [AGENCY_ID] [COUNT() OF 'F'] [COUNT() of L]...

i tried to use iif statement but it's not working the way i would think it would.

I had IIF([TORT_OPT]="F", COUNT( ), 0) but everything came out as a 0...

Should i be putting code in the onRow or onFinish sections?

Any suggestion or help is greatly appreciated.

Tom C
 
For starters, I think using IIF is wrong, as IIF is to insert a value if the stated value is false. IE, if you are insrting a 'Data AS At' DTG, but can report against a backup or live DB, then the expression is IIF(IsNull(BackupDTG,Now(),Backup DTG)) - If BackupDTG Is Null, insert Current DTG (because this is the live DB), else insert BackupDTG (because it's the Backup DB).

Count should be in the After Frame, and an expression in ValueExp like Count Where ([FieldName] = 'T') and a second for ='F'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top