Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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 the code of  the same customer where type is 1 .

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?

2 Replies
Not applicable
Author

Hi,

You can try something like the attached text file within your script.

Hope this helps.

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.