Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Noob forumula query Post Reply Post New Topic
Author Message
BeardedWonder
Newbie
Newbie


Joined: 23 Aug 2011
Online Status: Offline
Posts: 3
Quote BeardedWonder Replybullet Topic: Noob forumula query
     Posted: 23 Aug 2011 at 3:48am

Hello all,

Just started using Crystal and hit an issue in writing one of my first formulas... good start!
 
The report displays the credit score of suppliers. What I want is a forumla that displays the score as text ie:
 
if credit score between 1 and 20 then = "high risk"
 
and then scale it up 204 - 40 = low risk and so on
 
My (wrong) effort was:
if{LINKS.LNKEXT_NUM3} <= 20 then totext(High" "Risk)
 
Can anyone advise?
 
Thanks
IP IP Logged
sharona
Senior Member
Senior Member
Avatar

Joined: 16 Oct 2008
Location: United States
Online Status: Offline
Posts: 255
Quote sharona Replybullet Posted: 23 Aug 2011 at 3:56am
if{LINKS.LNKEXT_NUM3} >=1 and {LINKS.LNKEXT_NUM3} <= 20 then 'High Risk' else
if{LINKS.LNKEXT_NUM3} >=21 and {LINKS.LNKEXT_NUM3} <= 40 then
'med risk'
else
etc......
 
sharona
IP IP Logged
BeardedWonder
Newbie
Newbie


Joined: 23 Aug 2011
Online Status: Offline
Posts: 3
Quote BeardedWonder Replybullet Posted: 23 Aug 2011 at 4:12am
Thanks for the speedy response Sharona!
IP IP Logged
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum