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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count not returning correct answer 1

Status
Not open for further replies.

sprog

IS-IT--Management
Sep 12, 2002
48
NZ
Hi there
I have written a very simple report listing total staff and if they are full time or part time.

My 2 formulas are:
if {Employee.HoursPerPeriod} >= 60 then "Full Time" and
if {Employee.HoursPerPeriod} < 60 then "Part Time"

I need to calculate percentage of Full & Part time. When I use the count function it is returning the total number of staff, rather than just the number of full and then part time.

Any suggestions would be appreciated.
Thanks Julie
 
Hi,
Add 2 formulas to do the counting:
{?IsFullTime}
If {Employee.HoursPerPeriod} >= 60 then 1 else 0

{?IspartTime}
{Employee.HoursPerPeriod}< 60 then 1 else 0

Place these in the details section ( you can supress their display) and SUM then to get 2 counts...go from there...

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Thank you very much. This worked perfectly!
Julie
 
Hi,
Glad to help..




[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top