Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

multiple where statements and where match statement in Load scripts

I have the following load

LOAD

    Subject,

    "Override Flag",

    num(Grade) as Grade,

    "School Performance School Flag",

     "Attributed District Name"

  

FROM [my file]

(txt, codepage is 1252, embedded labels, delimiter is ',', msq)

WHERE MATCH ("Subject",'M', 'R','E' ,'S')

WHERE ("Attributed District Name"='PHILADELPHIA CITY SD') and ("School Performance School Flag"='Y')

and ("Grade"<'11')

;

I can run it with just the Where Match part or with the multiple Where statement, but how would I be able to mix both. Also how would I be able to change the value of the subject 'M' to 'Math'. Any help is appreciated. I have experience with R, Tableau and some SQL, but a beginner when it comes to Qlik sense load scripts.

Thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

You can only have one WHERE, maybe try something like this

WHERE MATCH ("Subject",'M', 'R','E' ,'S')

and ("Attributed District Name"='PHILADELPHIA CITY SD')

and ("School Performance School Flag"='Y')

and ("Grade"<'11')

View solution in original post

4 Replies
Anonymous
Not applicable
Author

You can only have one WHERE, maybe try something like this

WHERE MATCH ("Subject",'M', 'R','E' ,'S')

and ("Attributed District Name"='PHILADELPHIA CITY SD')

and ("School Performance School Flag"='Y')

and ("Grade"<'11')

Not applicable
Author

Thanks, that works. Any idea on my second questions?

Anonymous
Not applicable
Author

Best to just have one question per thread.  Also not sure I understand your other question so maybe open another thread clarifying your question M question.

holmlund
Contributor III
Contributor III

If(Subject='M', 'Math', Subject) as Subject