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 derfloh 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
Jun 9, 2010
83
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top