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: 
manoj217
Creator III
Creator III

sum of multi selected values in list box

i have a text object  i want to show sum of all multi selected list box values into text object how can i achieve  that

9 Replies
jaumecf23
Creator III
Creator III

=sum(name_field)

ahmar811
Creator III
Creator III

Hi manoj,

I think jaume is right because if you want to sum of all selection you just put expression sum(field name).

or

but still you have problem so, just share some sample data with your scenario then we will provide our suggestion.

Regards

Ahmar

zebhashmi
Specialist
Specialist

yah looks like its just a sum(of_field) unless .....

qlikwiz123
Creator III
Creator III

Like everyone else said, Sum(Field_Name) should do and when the values are selected in the list box or even a Multi Select Box in your case, the Sum(Field_Name) changes with respect to those selected values. Let all of us know if that expression was of any help or your requirement is something else.

manoj217
Creator III
Creator III
Author

i have taken a text object, initially i hv to show 0 in that while i am selecting the values in list box it have to add all those values and reflect in the text object

avinashelite

try like this

if(getselectedcount(field_name)=0,0,sum(value_field_name)

manoj217
Creator III
Creator III
Author

Thanks avinash its working

avinashelite

cool if you have got the answer mark the correct and helpful answers and close this thread

qlikview2018
Contributor
Contributor

Ho do I create aa attached tablesTime Period.PNG