I have a formula CASE WHEN {createdfrom.fxamount} ...
# general
a
I have a formula CASE WHEN {createdfrom.fxamount} > 800 THEN ‘DHL EXPRESS’ ELSE {createdfrom.shipmethod} END Also need to add another condition to the first case that the “{shipcountrycode} = US” so essentially if fxamount is more than 800 and the ship country code is US then ‘DHL Express’ Any suggestions????
e
CASE WHEN {createdfrom.fxamount} > 800 THEN CASE WHEN {shipcountrycode} = 'US' THEN ‘DHL EXPRESS’ END ELSE {createdfrom.shipmethod} END
You can nest CASE statements like this
a
thank you; let me try
This is very good reference for Saved Search things - I highly recommend checking it out
a
thanks - I just tried your suggestion - dint work but let me see 🙂
e
Also - if you copy and paste that formula make sure that all of the Single Quote symbols are actually Single Quote symbols
CASE WHEN {createdfrom.fxamount} > 800 THEN CASE WHEN {shipcountrycode} = 'US' THEN 'DHL EXPRESS' END ELSE {createdfrom.shipmethod} END
Try this (though it looks the same, I replaced the weird quotes with single quotes)
a
got it, basically I need a Case where both conditions for the fxamount and shipcode need to be true collectively
case when{item.custitem_vertical}=‘AEC’ and {item.custitem_product_type}IN(‘Software’,‘Fee’) then {amount}end I am guessing something of this type??
@ericbirdsall nevermind
your formula worked
thanks
e
There are a few ways to handle these. You can either nest statements like the formula I sent. Or you can use AND in your CASE statements like the example you replied with
Honestly using AND is more readable, and I'd probably do it that way
a
thanks yours worked 🙂 Cheers