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: 
nikhilgarg
Specialist II
Specialist II

How can we use Having clause (SQL Equivalent) along with Groupby in QlikView?

Hey,

How can we use Having clause (SQL Equivalent) along with Groupby in QlikView?

Thanks

4 Replies
sunny_talwar

I think you should be able to use Where Statement.

jonathandienst
Partner - Champion III
Partner - Champion III

You may need a preceding load or a two step load to perform a HAVING equivalent.

For example: SQL

SELECT ID, Sum(Amount) As SumAmount

FROM Table1

GROUP BY ID

Having Sum(Amount) > 0

Qlikview

LOAD ID, SumAmount

Where SumAmount > 0

;

LOAD ID, Sum(Amount) As SumAmount

FROM Table1.xlsx

GROUP BY ID;

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
nikhilgarg
Specialist II
Specialist II
Author

Hey,

but where isn't equivalent to having because we can use where groupby having in sql. So, is it exists() ?

sunny_talwar

I guess not entirely sure how it works in SQL. So go with jonathan‌ suggestion

Best,

Sunny