Jump to content

This topic is 8199 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I am trying to get a count of unique employee ID numbers for those employees who not only work

at a specific site, but whom also have an AM work schedule. In the employees file, I have all of

their personal info as well as their expected regular schedules. So, I developed the following

CASE statement, trying to get the count (Monday AM is the field that holds each employee's Monday arrival time):


CASE (

Site = "Austin" and Monday AM > 0, Count(Employee ID),

Site = "Rochester" and Monday AM > 0, Count(Employee ID),

Site = "San Francisco" and Monday AM > 0, Count(Employee ID),

Site = "Nashville" and Monday AM > 0, Count(Employee ID),

""

)


I placed the field in the Sub-Summary field of my report where I had grouped the report by site.

All I received was a count of the first instance of the calc that made it true... so all counts are

"1". This is inaccurate. How can I make it count all instances of the statements?

TIA,

KC

Posted

You have 2 problems. One is that only Summary field will calculate in the way you are expecting in a sub-summary part, normal field will simply calculate based on a single record. Second is that the CASE statment will only evaluate ONE of those conditions.

"sCount = Count of EmployeeID" is the way to setup a summary field. This will then count the employees in whatever sub-summary you put this field in.

This topic is 8199 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.