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: 
Anonymous
Not applicable

group by?


tableA:

load

id,

sum(sales) as  sales

from products

group by id;

here 

id   sales

1     100

2     200

3     300

4     400

what it gives output?

1 Solution

Accepted Solutions
CELAMBARASAN
Partner - Champion
Partner - Champion

Output will be same, No Change

Try with different input

id   sales

1     100

2     200

3     300

4     400

2     600

3     1000

will give you

id   sales

1     100

2     800       // 200+600

3     1300     //300+1000

4     400

View solution in original post

1 Reply
CELAMBARASAN
Partner - Champion
Partner - Champion

Output will be same, No Change

Try with different input

id   sales

1     100

2     200

3     300

4     400

2     600

3     1000

will give you

id   sales

1     100

2     800       // 200+600

3     1300     //300+1000

4     400