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: 
Not applicable

how to make applymap not to do any action based on my scenario

There is a scenario wherein I don't need to do any action by the applymap.  For Instance, am passing CustID in the below example to a mapping load to return a value based on the CustID, if the value does not exists I want the applymap to not do any action ???  I can't use null() also here ..

     applymap('Inact_fg',CustID,'Y') as flag

Looking for your help here.

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

You have to use default parameter as CustID

ApplyMap('Inact_fg',CustID, CustID)

View solution in original post

5 Replies
tresesco
MVP
MVP

Have you tried this ?

applymap('Inact_fg',CustID) as flag

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

You have to use default parameter as CustID

ApplyMap('Inact_fg',CustID, CustID)

tresesco
MVP
MVP

Hello Celambarasan Adhimulam,

I think that is redundant. If you don't take the third parameter, the default returned value is the value itself when it does not find a match in the mapping table. Correct me, if i am wrong.

CELAMBARASAN
Partner - Champion
Partner - Champion

Hi tresesco

Yes you are right. By default it takes the field value as default value if no mapping value found in the mapping table.

I pointed him to use CustID instead of 'Y'.

Not applicable
Author

You're right Chilambu, thanks