Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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
Luminary Alumni
Luminary Alumni

Hi,

Try like this

Data:

LOAD

     CUSTOMER,

     NAME,

     TYPE

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

FROM DataSource;

Regards,

Jagan.