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: 
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
Partner - Champion III
Partner - Champion III

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
Partner - Champion III
Partner - Champion III

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.