Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
phongnnguyen
Contributor II
Contributor II

Sum all value in group

Dear guys,

I have a problem with my set analysis. I want to sum group all value like below table:

AccountClientValue
A1A1

100

A2A1200
A3A1300
B1B1400

this is my expected result:

AccountValue
A1600
A2600
A3600
B1400

My expression is:

aggr(sum(value),client)

But it's not work.

Thanks for help !

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

this should answer your need sum(aggr(nodistinct sum([Value]),Client))

View solution in original post

7 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

this should answer your need sum(aggr(nodistinct sum([Value]),Client))

agastya
Creator
Creator

Capture.PNG

phongnnguyen
Contributor II
Contributor II
Author

Thanks for your help. but it is not work too.

phongnnguyen
Contributor II
Contributor II
Author

Thanks for your consider but I dont understand what's your mean.

balabhaskarqlik

May be these:

rangesum(above(TOTAL sum(value), 0, rowno(TOTAL)))

rangesum(above(Value, 0, rowno()))

lironbaram
Partner - Master III
Partner - Master III

hi

what do you mean it doesn't work

this was tested on the demo data and works ,

do you have additional dimensions on your table?

phongnnguyen
Contributor II
Contributor II
Author

Hi Liron Baram,

Sorry about this information, i just have tested your code, and it works with me.

Thanks for your help so much