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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
srihitha
Contributor III
Contributor III

load statement

SELECT COUNT(CustomerID), Country
FROM Customers
GROUP BY Country
HAVING COUNT(CustomerID) > 5;

 

If I have to use the same functionality in load statement as shown in above select statement , how can I do it?

I am asking this since having cannot be used in load statement and aggregate function cant be used with where clause

Labels (3)
2 Replies
Chanty4u
MVP
MVP

try this way

LOAD *
WHERE CustomerID > 5
;
LOAD Customer, count(CustomerID) as custid
RESIDENT custtable
WHERE OrderDate >= 20100101
GROUP BY Customer

MayilVahanan
MVP
MVP

Actually, you can use same query in Qlik as it is.

Slight change in "Chanty".

Load * where NoOfCustomers > 5;

Load COUNT(CustomerID) as NoOfCustomers, Country
FROM CustomersSource
GROUP BY Country;

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