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

Announcements
Discover how organizations are unlocking new revenue streams: Watch here
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Exclude certain conditions

Hi,

I have a source file, field formats as below:

IDTimeFieldAFieldBFieldC
18:00


28:00


38:00


48:00


58:00


68:00


78:00


88:00


98:00


108:00


118:00


128:00


138:00


148:00


I would like to exclude the following IDs and time from the source

IDTimeCondition
18:00TRUE
29:00TRUE
38:00TRUE
19:00TRUE
210:00TRUE
110:00TRUE
211:00TRUE
111:00TRUE
212:00TRUE
39:00TRUE
48:00TRUE
59:00TRUE
610:00TRUE
49:00TRUE

How can I do that?  the time and ID are generic, basically, each person will have time ranging from 08:00 to 20:00.

Hope you could help to provide the answer in words as i cannot open other's qvw file...

thanks!

3 Replies
tresesco
MVP
MVP

Are these conditions discrete? can't you generalize it? To exclude them during load you have to use WHERE clause. But using them with OR would make it explicit/hard coded, not sure if your requirement demands so or not.

Thanks.

swuehl
MVP
MVP

You can possibly create a composite key made of ID and Time, then load your exclusion table first and use

...

where not exists(Key);

when loading your main table.

Not applicable
Author

Hi,

THanks. This condition is discrete.  If i would like to exclude them in the load condition, how can i do that?