Ok,
I have a report that shows the following
Total Cst NS Cst Avg Cst Rank
Advance C 7852.50 135.00 33.85 1
Crosstown C 0.00 0.00 0.00 1
Riverbend C 4450.00 52.50 44.00 1
Rank 36.61
Rank 2 40.27
Rank 3 43.93
Rank 4 47.59
Ok, RN should be a formula that says if AVG CST is
Less than rank put a 1,
greater than rank but less than rank 2 put a 2,
greater than rank 2 but less than rank 3 put a 3,
greater than rank 3 put a 4
This is what I currently have and it doesn't work.
if {@Avg Cost}<>0
then if {@Avg Cost}<={@Rank}
then 1
else if {@Avg Cost}<={@Rank 2}
then 2
else if {@Avg Cost}<={@Rank 3}
then 3
else if {@Avg Cost}>{@Rank 3}
then 4
Crystal Reports 9
TIA for any help.
I have a report that shows the following
Total Cst NS Cst Avg Cst Rank
Advance C 7852.50 135.00 33.85 1
Crosstown C 0.00 0.00 0.00 1
Riverbend C 4450.00 52.50 44.00 1
Rank 36.61
Rank 2 40.27
Rank 3 43.93
Rank 4 47.59
Ok, RN should be a formula that says if AVG CST is
Less than rank put a 1,
greater than rank but less than rank 2 put a 2,
greater than rank 2 but less than rank 3 put a 3,
greater than rank 3 put a 4
This is what I currently have and it doesn't work.
if {@Avg Cost}<>0
then if {@Avg Cost}<={@Rank}
then 1
else if {@Avg Cost}<={@Rank 2}
then 2
else if {@Avg Cost}<={@Rank 3}
then 3
else if {@Avg Cost}>{@Rank 3}
then 4
Crystal Reports 9
TIA for any help.