Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
alex59800
Contributor II
Contributor II

Force the "no answer " with an applymap function

Hello

Just a question on applymap functionnality :

When you do

applymaptest:

MAPPING LOAD

X

Y

SQL SELECT X Y.....

applymap('applymaptest', X)

when applymap does not suceed in finding X, the function give you the answer X.

My question is, can we force the no answer by giving to the no answer by default Z as no answer instaed of X ?

Thanks a lot

Alex

Labels (1)
1 Solution

Accepted Solutions
Anonymous
Not applicable

Yes,

applymap('mapname', expr [ , defaultexpr ] )


Just add a default value after X:

applymap('applymaptest', X, Z)

View solution in original post

2 Replies
Anonymous
Not applicable

Yes,

applymap('mapname', expr [ , defaultexpr ] )


Just add a default value after X:

applymap('applymaptest', X, Z)

alex59800
Contributor II
Contributor II
Author

Thanks a lot Johannes, you're the one !


Best regards