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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
wallerjc
Partner - Contributor III
Partner - Contributor III

How to where clause in Load script

hi i'm trying to do the below, but coming up short, i know it's simple just hoping for a second pair of eyes:

Customers:

LOAD CustomerID,

     ThesaurusID as theID,

     PostCode,

     CountryCode,

     GenderName,

     DateOfBirth,

     MailPreference,

     EmailPreference,

     RentPreference,

     TelephonePreference

FROM

(txt, unicode, embedded labels, delimiter is ',', msq)

where count(PostCode) <15;

I know my aggregation is wrong, but I'm not sure how to go about this in either a qlikview expression nor in the load script.

Thanks,

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Do not use the Count in the where expression write like

Customers:

LOAD CustomerID,

     ThesaurusID as theID,

     PostCode,

     CountryCode,

     GenderName,

     DateOfBirth,

     MailPreference,

     EmailPreference,

     RentPreference,

     TelephonePreference

FROM

(txt, unicode, embedded labels, delimiter is ',', msq)

where  PostCode < 15;

You can use variables for this also

Regards,

Anand

View solution in original post

6 Replies
its_anandrjs
Champion III
Champion III

Do not use the Count in the where expression write like

Customers:

LOAD CustomerID,

     ThesaurusID as theID,

     PostCode,

     CountryCode,

     GenderName,

     DateOfBirth,

     MailPreference,

     EmailPreference,

     RentPreference,

     TelephonePreference

FROM

(txt, unicode, embedded labels, delimiter is ',', msq)

where  PostCode < 15;

You can use variables for this also

Regards,

Anand

wallerjc
Partner - Contributor III
Partner - Contributor III
Author

just realised this is a stupid question not sure how to delete.

sorry

JonnyPoole
Former Employee
Former Employee

i think you can only mark as correct in order to close the thread.

So mark yourself or ashfaq as correct.

(There are no st*pid questions)

its_anandrjs
Champion III
Champion III

Sorry jonathan its Anand

@James mark any Question Correct or Help Full to close the thread its a very simple question some time mistake dones.

Regards,

Anand

JonnyPoole
Former Employee
Former Employee

Oops my bad !.  I saw the big 'A' icon and my brain made a wrong turn.

Not applicable

James mark any Question Correct or Help Full to close the thread