IneedHelp01
Programmer
Hi,
I am using crystal reports 2008 and I am using a Greater than Less than formula and it is only returning the data that is equal and is not counting the less than. The data is Turnaround times in days ranging from 0 days up so I created this formula:
if {'9PK_'.TAT}<=1
then "1 Day or Less"
else if {'9PK_'.TAT}<=2
then "2 Days or Less"
else if {'9PK_'.TAT}<=3
then "3 Days or Less"
else if {'9PK_'.TAT}<=4
then "4 Days or Less"
else if {'9PK_'.TAT}>=5
then "5 Days or More"
else "nothing"
And grouping and doing a summmary count this is what I get
1 Day or Less 26
2 Days or Less 43
3 Days or Less 44
4 Days or Less 23
5 Days or More 19
The logic is correct so 2 Days or Less (<=2) should give me everything that is 2 days and the 26 that are in the 1 Day or Less so 2 Days or Less should be 69...and so on
This is essentially what I need crystal to give me
1 day or less 26
2 days or less 69
3 days or less 113
4 days or less 136
5 days or more 19
Is there something wrong with my formula or is there another type of formula I need to be using?
Thank you!!!
I am using crystal reports 2008 and I am using a Greater than Less than formula and it is only returning the data that is equal and is not counting the less than. The data is Turnaround times in days ranging from 0 days up so I created this formula:
if {'9PK_'.TAT}<=1
then "1 Day or Less"
else if {'9PK_'.TAT}<=2
then "2 Days or Less"
else if {'9PK_'.TAT}<=3
then "3 Days or Less"
else if {'9PK_'.TAT}<=4
then "4 Days or Less"
else if {'9PK_'.TAT}>=5
then "5 Days or More"
else "nothing"
And grouping and doing a summmary count this is what I get
1 Day or Less 26
2 Days or Less 43
3 Days or Less 44
4 Days or Less 23
5 Days or More 19
The logic is correct so 2 Days or Less (<=2) should give me everything that is 2 days and the 26 that are in the 1 Day or Less so 2 Days or Less should be 69...and so on
This is essentially what I need crystal to give me
1 day or less 26
2 days or less 69
3 days or less 113
4 days or less 136
5 days or more 19
Is there something wrong with my formula or is there another type of formula I need to be using?
Thank you!!!