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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Groupby

Hi All,

i want to group by the below inline table on 'wo' column.

input:

load * inline [

id, wo, value

1,a,11

1,b,22

2,a,33

2,b,44

];

output

id,value

1,33

2,77

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

This?

input:

load * inline [

id, wo, value

1,a,11

1,b,22

2,a,33

2,b,44

];

NoConcatenate

final:

LOAD id, sum(value) as value Resident input Group By id;

DROP Table input;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

4 Replies
Anil_Babu_Samineni
MVP
MVP

This?

input:

load * inline [

id, wo, value

1,a,11

1,b,22

2,a,33

2,b,44

];

NoConcatenate

final:

LOAD id, sum(value) as value Resident input Group By id;

DROP Table input;

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
arvind_patil
Partner - Specialist III
Partner - Specialist III

Dear Kulwant,

Please Find below Code:

input:

load * inline [

id, wo, value

1,a,11

1,b,22

2,a,33

2,b,44

];

DATA:

Load id ,Sum(value) As FinalValue Resident input Group By id;

thanks,

Arvind Patil

Kushal_Chawda
MVP
MVP

if you want tp do it on front end

Create the straight table on front end

Dimension:

ID

Expression:

Sum(Value)

Anonymous
Not applicable
Author

Table1:

load * inline [

id, wo, value

1,a,11

1,b,22

2,a,33

2,b,44

];

NoConcatenate

Table2:

LOAD id,

sum(value) as value

Resident Table1

Group By id;

DROP Table Table1;

OP

id value
133
277

Regards

Tahemas