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

If.....where

Hi,

I have table bellow, the code for CCC is empty, my need is : if type is '3', then show code of  the same customer where type is 1 as code of CCC.

CUSTOMER NAME TYPECODE
FFFAAA1101
FFFAAA1102
FFFBBB2202
FFFCCC3
FFFAAA1103

The final table will be like bellow

CUSTOMER NAME TYPECODE
FFFAAA1101
FFFAAA1102
FFFBBB2202
FFFCCC3101
FFFCCC3102
FFFCCC3103
FFFAAA1103

how to proceed?

1 Reply
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try like this

Data:

LOAD

     CUSTOMER,

     NAME,

     TYPE

     IF(TYPE= 3, '103', CODE) AS CODE

FROM DataSource;

Regards,

Jagan.