Counting with 2 Conditions

T

TomP

I created a report and would like to get a count of records with two
conditions. Here is what I entered:

=Abs(Sum(IIf([terminate]=-1,1,0)) And [caseload]="SA")

This information is entered in an unbound text.

I would like to get a total count where the terminate field (yes/not) is
checked and the caseload meets a certain criteria.

Thank you!
 
M

Marshall Barton

TomP said:
I created a report and would like to get a count of records with two
conditions. Here is what I entered:

=Abs(Sum(IIf([terminate]=-1,1,0)) And [caseload]="SA")

This information is entered in an unbound text.

I would like to get a total count where the terminate field (yes/not) is
checked and the caseload meets a certain criteria.

=Sum(IIf([terminate]=-1 And [caseload]="SA",1,0))
or
=Abs(Sum([terminate]=-1 And [caseload]="SA"))
 
T

TomP

That worked! Thank you so much for your help and patience! Happy New Year!

:)

Marshall Barton said:
TomP said:
I created a report and would like to get a count of records with two
conditions. Here is what I entered:

=Abs(Sum(IIf([terminate]=-1,1,0)) And [caseload]="SA")

This information is entered in an unbound text.

I would like to get a total count where the terminate field (yes/not) is
checked and the caseload meets a certain criteria.

=Sum(IIf([terminate]=-1 And [caseload]="SA",1,0))
or
=Abs(Sum([terminate]=-1 And [caseload]="SA"))
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top