Hi Experts,
On the below report, I want to sum up all market codes for which the description contains the word Retail.
I thought it is an easy one, but tried several things and always getting a syntax error.
I tried following:
CASE WHEN "Marketing"."Market Description" like '%Retail%' THEN "Marketing"."Market Code"='RETAIL' ELSE Marketing"."Market Code" END
CASE WHEN "Marketing"."Market Code" or "Marketing"."Market Description" like '%Retail%' THEN 'RETAIL' ELSE "Marketing"."Market Code" END
I am not an expert, so pretty sure I am doing some mistakes in thinking there.