I’m working in Eloqua BI. I am trying to create one column in which I’d like to include data from couple of other columns. Those other columns contain numbers of customers. Those columns have been created so far with a following SQL logic (in Edit Column Formula Field):
CASE
WHEN column_name = '1' THEN 'a'
WHEN column_name = '2' THEN 'b'
WHEN column_name = '3' THEN 'c'
ELSE ‘def’
What I’ve find out is the code above returns correct value for only the first WHEN. All other columns have random values.
How could I fix the code above to receive correct values for all columns? Why that statement is incorrect?