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 Exclude field values

Hi All,

if i want to Exclude some of the Field values how do i solve that, maybe with the Like Function?

NameSurnameAge
JohnDeer29
MosesFall32
Letta TheressaJoses25
Hallmark LettaMoak50

how do i take out all the Letta in my Table?

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Load * Where Wildmatch(Name, 'Letta') =0;

SELECT * from MyTable;

Let me know

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Where do you want to exclude them? In a front end chart or listbox or do you want to exclude them when you load the data?

In the load script you'd use the Wildmatch function:

LOAD

     Name,

     Surname,

     Age

FROM ...

WHERE NOT Wildmatch(Name, '*Letta*');


talk is cheap, supply exceeds demand
Not applicable
Author

Hi,

Thanks for Quick Response, i want to do it on my Front end

alexandros17
Partner - Champion III
Partner - Champion III

If Name is a dimension then:

Use edit and write : If(wildmatch(Name, 'Letta')>0, null(), Name) and check the box "Suppress null values"

awhitfield
Partner - Champion
Partner - Champion

Hi Thabiso,

Are you actually trying to remove the word 'Letta' from the name OR exclude names that contain the word 'Letta' ?

Andy