Amtoj
07/21/2021, 8:44 PMSandii
07/21/2021, 9:20 PMCAD
should likely be in ''
or `""`; you also might want to NVL on exchangerate
, the double bracket on `customer.balance`feels like a typo as wellAmtoj
07/21/2021, 9:23 PMGeorge McMullen
07/21/2021, 10:20 PMCASE
WHEN {currency} = 'CAD'
THEN {customer.balance}
ELSE {customer.balance}/NULLIF({exchangerate}, 0)
END
George McMullen
07/21/2021, 10:21 PM{exchangerate}
Also, perhaps try the =
instead of IS
Amtoj
07/22/2021, 5:11 AM