Alex K
09/24/2020, 4:00 AMCASE WHEN {type} = 'Journal' AND {account} = '1102 Investments : Investments - Fixed Income : Investments - Fixed Income' AND {custbody1} != 'T' THEN {amount} ELSE 0 END
custbody1 = checkbox. This does work as expected when the value is set to {custbody1} = 'T'
Sandii
09/24/2020, 1:10 PMCASE WHEN {custbody1} = 'T' THEN 0 ELSE
the rest of your normalSandii
09/24/2020, 1:11 PMcustbody1 IS NULL
, not sure it that works on checkbox or notscottvonduhn
09/24/2020, 2:08 PM'T'
, however, if the checkbox was added after some records were created, then pre-existing records could have a NULL
value. Newer records should have 'F'
as their values, if the box is not checked. Usually, I do this with checkboxes to account for the NULLs, forcing them to be `'F'`: COALESCE({custbody1}, 'F') = 'F'
. Then, both NULL and unchecked values will make the clause true. Alternatively, you could do this (must be in parentheses because of the OR in the middle): ({custbody1} IS NULL OR {custbody1} = 'F')
, which is effectively the same.Alex K
09/24/2020, 5:00 PM