Koon Kabob
03/12/2024, 2:47 PMAnthony OConnor
03/12/2024, 4:41 PMCASE WHEN SUBSTR({itemid}, LENGTH({itemid}) - 3, 2) = '-S' THEN {quantity} ELSE '' END
Anthony OConnor
03/12/2024, 4:54 PMCASE WHEN
SUBSTR( {itemid}, -2, 2) = '-S'
THEN {quantity}
ELSE '' END
Anthony OConnor
03/12/2024, 4:54 PMAnthony OConnor
03/12/2024, 4:56 PM{quantity}
is going to return a NUMBER, but your ELSE is return a STRING... so that might be an issue if you're formula is a number?
CASE WHEN
SUBSTR( {itemid}, -2, 2) = '-S'
THEN {quantity}
ELSE NULL END
Koon Kabob
03/14/2024, 6:07 PM