Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
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 AAA 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
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Data:

LOAD

     CUSTOMER,

     NAME,

     TYPE

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

FROM DataSource;

Regards,

Jagan.