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: 
Srinivas
Creator
Creator

instead of null i want values

Hi All,

See below data, Here i have Num,Item_Type. and Type

Type have null values so instead of null values i want ITEM_TYPE values.

NUMITEM_TYPEType
17721fast food-
17722fast food-
17723fast food-
17724fast food-
17725fast food-
17726fast food-
17727fast food-
17728fast food-
17729fast food-

Regards

Munna

11 Replies
jagan
Luminary Alumni
Luminary Alumni

Hi Munna,

Try like this

Temp:
LOAD *

FROM Table1;


Left Join(Temp)

LOAD *

FROM Table2;

Data:
Load

Num,

ITEM_TYPE,
if(Len(Trim(Type)) = 0 OR Type='-', ITEM_TYPE, Type) AS Type
Resident Temp;
DROP Table Temp;

Hope this helps you.

Regards,

Jagan.

jagan
Luminary Alumni
Luminary Alumni

Or Try mapping load

TypeMapping:

Mapping LOAD

Num, Type

FROM Table2

WHERE Len(Trim(Type)) > 0 OR Type <> '-';

Data:
LOAD

Num,

ITEM_TYPE,

ApplyMap('TypeMapping', Num,  ITEM_TYPE) AS Type

FROM Table1;

Hope this helps you.

Regards,

Jagan.