Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

crystal formula help

Status
Not open for further replies.

reacha

Programmer
Joined
Jun 9, 2010
Messages
83
Location
US
CASE
WHEN queuetime = 0 and gettoagent >= 40 THEN
gettoagent-40
WHEN queuetime > 0 THEN queuetime
ELSE 0 END

I want write this in the formula

Please help me out !!

Thanks,
reacha
 
Two ways (I think). A nested if statement
if {queuetime} = 0 and {gettoagent} >= 40 then {gettoagent}-40
else
if {queuetime} > 0 then {queuetime}
else 0
else 0

Or an switch statement
switch (queuetime} = 0 and {gettoagent} >= 40 , {gettoagent}-40, {queuetime} > 0, {queuetime}, true, 0)

I hope this helps.
 
Thanks for your help
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top