luvmy2kids
MIS
I have the below results set:
State Qtrly Date EmpCnt
AL 2008-05-12 00:00:00.000 1
AL 2008-06-12 00:00:00.000 1
AL 2008-04-12 00:00:00.000 1
What I want the end result to look like in Crystal is:
State Month1 Month2 Month3
AL 1 1 1
I am trying to create a formula as such:
IF Datepart("m", {Command.1stmonth}) in [1,4,7,10] then {Command.employeecount1}
--creating this 3 different times based on if it is the
first, second, or third month of the quarter
The issue is my numbers aren't displaying correctly? Only month2 shows 1, the others show 0? How can I achieve this.
Thanks!
State Qtrly Date EmpCnt
AL 2008-05-12 00:00:00.000 1
AL 2008-06-12 00:00:00.000 1
AL 2008-04-12 00:00:00.000 1
What I want the end result to look like in Crystal is:
State Month1 Month2 Month3
AL 1 1 1
I am trying to create a formula as such:
IF Datepart("m", {Command.1stmonth}) in [1,4,7,10] then {Command.employeecount1}
--creating this 3 different times based on if it is the
first, second, or third month of the quarter
The issue is my numbers aren't displaying correctly? Only month2 shows 1, the others show 0? How can I achieve this.
Thanks!