Hi.
Like alot of people I am relatively new to crystal and I use it for call centre reporting off a Rockwell switch.
I am trying to roll up into 1/2 hour periods a whole lot of event data that is recorded when an agent punches a code into their phone. So I need to get the time format to end in either 00 or 30. At the moment the data that comes out is inf the hh:mm:ss. I was thinking I need to break out the minutes and round them to the period ending either 00 or 30 which I did by using.
if (TrimRight ({@StartTime} [4 to 5])) >= "1" and
(TrimRight ({@StartTime} [4 to 5])) < "31"
Then
"30"
else
"00"
Now I need to get the hh: number to increase by 1 if the :mm: number ends with 00 so that it will be 15:00 or 08:00. This is where I am stuck. I can't work out how to increase a number (which is a caculated field) by 1.
I have tried a few formulas eg.
sum(1,TrimLeft ({@StartTime} [1 to 2]))
But I keep getting error messages telling me things like a field has to be entered where the 1 is and I can't just go and add a new field to the data base and give it a constant value of 1.
Any suggestions of how to increase a field by 1???
Thanks
Like alot of people I am relatively new to crystal and I use it for call centre reporting off a Rockwell switch.
I am trying to roll up into 1/2 hour periods a whole lot of event data that is recorded when an agent punches a code into their phone. So I need to get the time format to end in either 00 or 30. At the moment the data that comes out is inf the hh:mm:ss. I was thinking I need to break out the minutes and round them to the period ending either 00 or 30 which I did by using.
if (TrimRight ({@StartTime} [4 to 5])) >= "1" and
(TrimRight ({@StartTime} [4 to 5])) < "31"
Then
"30"
else
"00"
Now I need to get the hh: number to increase by 1 if the :mm: number ends with 00 so that it will be 15:00 or 08:00. This is where I am stuck. I can't work out how to increase a number (which is a caculated field) by 1.
I have tried a few formulas eg.
sum(1,TrimLeft ({@StartTime} [1 to 2]))
But I keep getting error messages telling me things like a field has to be entered where the 1 is and I can't just go and add a new field to the data base and give it a constant value of 1.
Any suggestions of how to increase a field by 1???
Thanks