Report Total using where clause (1 Viewer)

boycie

Registered User.
Local time
Today, 00:04
Joined
Sep 19, 2001
Messages
45
Hi,
I am trying to create a total in the footer by summing up fields in the detail area using a certain criteria. For example; The report has 3 fields: Name,Job Title, Days Worked. I want to sum all days worked "where Job Title = Gardener for example.
Can anyone help?
thanks
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 16:04
Joined
Aug 30, 2003
Messages
36,129
Try

=Sum(IIf([Job Title] = "Gardener", [Days Worked], 0))
 

boycie

Registered User.
Local time
Today, 00:04
Joined
Sep 19, 2001
Messages
45
Thanks Paul, that worked great!
 

pbaldy

Wino Moderator
Staff member
Local time
Yesterday, 16:04
Joined
Aug 30, 2003
Messages
36,129
Happy to help!
 

Users who are viewing this thread

Top Bottom