Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum in load script with two dependent fields

Hi,

I'm trying to calculate a sum in a script, currently I'm running out of ideas...

The table looks similar to this:

MainSubValue of Sub
AA.1450
AA.2550
AA.31000
BB.1460
CC.1540
CC.2300

What I would need now is a sum for Main element A,B,C in a new field of the same table. How can I achieve this?

Thanks&Regards

Jens

1 Solution

Accepted Solutions
Not applicable
Author

Hi,

See the attached app :

View solution in original post

3 Replies
Not applicable
Author

Could you explain breif

Load

Main,

sum(Main) as Main1,

Sub,

Value

from table

groupby Main,

Sub,

Value;

try like this.......... hope it is helpful

Not applicable
Author

Hi,

See the attached app :

Not applicable
Author

This is working perfectly fine, thanks.