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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Remove not needed data in script

HI,

I have a field called Events which has 10 types of events (E1,E2,....,E10).

There are only 5 events which I am interested in. How can I remove E6,...,E10 events in Script?

Thanks

1 Solution

Accepted Solutions
MayilVahanan

HI

Try like this

LOAD [Segment Name],

     [Event category],

     [Event action],

     [Week Commencing],

     [Total events]    

FROM

$(ExtractPath)\GA_Events.QVD(qvd) where Match([Event category],'Newsletter');

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

4 Replies
swuehl
MVP
MVP

Use a where clause in your load with an appropriate condition:

... where Match(Events,'E1','E2','E3','E4','E5');

Not applicable
Author

Thanks but I tried to apply it and it says "Garbage after statement".

Any idea what am I typing wrong?

LOAD [Segment Name],

     [Event category],

     [Event action],

     [Week Commencing],

     [Total events]

     where Match([Event category],'Newsletter')

FROM

$(ExtractPath)\GA_Events.QVD(qvd);

MayilVahanan

HI

Try like this

LOAD [Segment Name],

     [Event category],

     [Event action],

     [Week Commencing],

     [Total events]    

FROM

$(ExtractPath)\GA_Events.QVD(qvd) where Match([Event category],'Newsletter');

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

It works thanks a lot.