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

Sum Selected ListBox values

Hi,

Can you tell me how to show sum of selected list box values in TextObject.

Screenshot is here,

Sum Selected.png

regards,

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi,

I think you should write just this: sum(distinct [Name_Field_in_listbox])

KR

Elena

View solution in original post

5 Replies
Anonymous
Not applicable
Author

Hi,

I think you should write just this: sum(distinct [Name_Field_in_listbox])

KR

Elena

engishfaque
Specialist III
Specialist III

Dear Elena,

Sum(Distinct(FieldName)) will return the sum of field not list box selected values.

Kind regards,

Ishfaque Ahmed

Anonymous
Not applicable
Author

The question is: "how to show sum of selected list box values in TextObject".

If these values are selected, sum function will return the sum of only the selected values...

Maybe, didn't I understand the question?

Thanks,

Elena

Anonymous
Not applicable
Author

Hi,

Take sum(field_name) in text box.

HTH

Anonymous
Not applicable
Author

=sum(distinct(value)) will return sum of selected values in listbox

'value' is column which is used in list box .