Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
snehasimon
Contributor
Contributor

Include statement

if(D=11, Include,
if(v=2,include,
if(D=11,include,
ApplyMap('shortlistmap',CODE)))) as sub

 

This is my code for include statement. But I am getting error as include statement not found. Can anyone help me?

6 Replies
Or
MVP
MVP

What exactly are you trying to include? Or are you trying to set your value to 'include'? If that's the case, you need to use quotes to tell Qlik that 'include' is a string.

snehasimon
Contributor
Contributor
Author

Hi Master,

I am actually trying to include a condition like,

If d=11, (exclude this if condition )and include rest of the data.

Or
MVP
MVP

I don't quite follow. What should happen to this value, exactly, if d=11? And why are you checking this twice?

snehasimon
Contributor
Contributor
Author

I actually need to exclude some data from the remaining. so after checking the if condition, I can exclude this condition satisfying data from the remaining data.

Or
MVP
MVP

I'm sorry, I still don't understand what you're trying to do or what this 'include' means.

snehasimon
Contributor
Contributor
Author

I was trying to include a data if some conditions will be true. Initially, I thought there will be some 'include' statement for that. But I was wrong and I done that with IF statement. Thanks for the help