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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

scripting

what is wrong with below script?

Load

country,

sum(sales)

from sales.qvd;

3 Replies
tresesco
MVP
MVP

Missing group by. Try like:

Load

country,

sum(sales)

from sales.qvd group by country;

its_anandrjs
Champion III
Champion III

Group By is missing

Load

country,

sum(sales)

from sales.qvd

Group By

country;

Regards

Anand

MarcoWedel

When using aggregation functions (count, sum, min, max, avg, ...) in a load (or select), you have to include ALL fields without aggregation function in the group by clause.

hope this helps

regards

Marco