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: 
ZigaD
Contributor II
Contributor II

Qlik Sense exclude values before load data

hi guys

you think some can help me with how i can exclude data from specific excel column, before is loaded?

for example from Column "a" i would like to prevent loading rows which include values "n1", "n2", "n3" etc.

appricate you help

2 Solutions

Accepted Solutions
TimvB
Creator II
Creator II

WHERE a<>'n1' is indeed a valid script. If you have multiple parameters, you could use the Where Not Match() approach. 

Every time you extract a table by using the statements From or Resident, a new table is created. You can then drop the table that you do not need anymore.

View solution in original post

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

try this

Table:

Load 

*
From Source

Where [a]=if(WildMatch(Trim([a]), 'n1', 'n2', 'n3')=0,[a]);

Hope this helps

Thanks

Thanks and Regards
Kashyap.R

View solution in original post

5 Replies
TimvB
Creator II
Creator II

To filter data from a source (e.g. Excel), you should use a where clause. For example:


TableName:

Load 

*
From YourExcelSource

Where not match([a], 'n1', 'n2', 'n3');

 

Hope it helps!

ZigaD
Contributor II
Contributor II
Author

Hi

thank you for your reply its still loading so i tried below one, but it think it works only one, not multi parameters

WHERE a<>'n1'

and it created me a total new data source with "TableName_1"

can i avoid this or its normal process?

TimvB
Creator II
Creator II

WHERE a<>'n1' is indeed a valid script. If you have multiple parameters, you could use the Where Not Match() approach. 

Every time you extract a table by using the statements From or Resident, a new table is created. You can then drop the table that you do not need anymore.

Kashyap_R
Partner - Specialist
Partner - Specialist

Hi

try this

Table:

Load 

*
From Source

Where [a]=if(WildMatch(Trim([a]), 'n1', 'n2', 'n3')=0,[a]);

Hope this helps

Thanks

Thanks and Regards
Kashyap.R
ZigaD
Contributor II
Contributor II
Author

Hi Kashyap,

thank you for your help, it worked.

Appreciate your help