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

Monthly Count

Status
Not open for further replies.

tdavis72

Technical User
Aug 29, 2006
6
US
I am new to Crystal and I have to create a report that captures the number of active employees each month and then sum that total to get the average number of employees based on the report date. How can I set my Begin date variable and ending date variable to do this. (i.e if report month is April, then I need active employees for the month of April, March, February and January). Any advice is greately appreciated.
 
The solution is based on the fields available in the database, so posting technical information is required, in general succcessful posters include:

Crystal verison
Database/connectivity used
Example data
Expected output

The generic answer is that you would use Insert->Group and use the date field as the group and select for each month, then place a formula in the details of:

if isnull({table.terminateddate}) then
1
else
0

Then right click that formula and select insert-summary->sum and select for the date/month grouping.

Of course this is all conjecture because I don't know how you determine who is active or not, and I don't know what you expect the output to be. In future posts consider that we need to know technical information, afterwards you can supply decriptions if you feel it helps.

-k
 
Thanks Synapsevampire, I actually figured out how to do it. What I had was correct it was a Lawson issue as far as storing history information.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top