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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
bratman93
Contributor
Contributor

Exclude data from database in my loadscript in Qvd

Hi everyone. I have some contaminated data in my database which i want to exclude from my data load. 

bratman93_0-1669208875195.png

This is my load script. I do NOT want to load data where the column MODULE contains the value "username".

Is there a easy way I can fix this in the load script?

Labels (2)
5 Replies
vinieme12
Champion III
Champion III

Add a where clause to your SQL query 

 

SQL Select field1,field2,

From somedb.tablename 

WHERE module<>'username' ; 

 

You can use below

module!=username' 

Or 

Module not in ('username') 

 

You can refer below site for more on learning SQL 

https://www.w3schools.com/sql/

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
bratman93
Contributor
Contributor
Author

But is there a way to do it Qlik instead of the database?

BrunPierre
Partner - Master II
Partner - Master II

As below

LOAD MODULE,
....
TIMESTAMP(CREATEDATE,'YYYY-MMPDDhh:mm:ss') as ErrandCreateDate

Where Not Wildmatch(MODULE,'*username*');

SQL SELECT
...
FROM

bratman93
Contributor
Contributor
Author

thanks my man! did the trick, can I put more than one condition in the same wildmatch?

BrunPierre
Partner - Master II
Partner - Master II

Of course!

See here to learn more: wildmatch - script and chart function