Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

create a new column by combining values from an existing column

Hi,

I have an existing column Portfolio with values 'APPS', 'BPO', and 'ITO'. I want to create a new column GBU with values 'ABS' and 'ITO' where 'ABS' is 'APPS' and 'BPO' from the first column.

PortfolioGBU
ITOITO
APPSABS
BPO

I have tried:

Load

..

..

Portfolio,

if(Portfolio='ITO','ITO') and if(Portfolio='APPS','ABS') and if(Portfolio='BPO','ABS') as GBU

..

From

but it's not working for me

Please help!

1 Solution

Accepted Solutions
ecolomer
Master II
Master II

Try this:

if(Portfolio='ITO', 'ITO', if(Portfolio='APPS', 'ABS', if(Portfolio='BPO', 'XXX', 'YYY'))) as GBU

View solution in original post

3 Replies
ecolomer
Master II
Master II

Try this:

if(Portfolio='ITO', 'ITO', if(Portfolio='APPS', 'ABS', if(Portfolio='BPO', 'XXX', 'YYY'))) as GBU

Not applicable
Author

Geez, it's always the simplest way isn't it!! Thanks Enrique.

Do nested if statements work as expressions in charts? I seem to remember having trouble using them there which is why I didn't think to use it in the Load statement.

ecolomer
Master II
Master II

No, you use this in both, graphics and script

TX