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

Calculate total by expressions values

Hi!

In my attached sample i have a list box where i can select the expressions that i want to show in my chart.

The problem is that Total expression is always the sum of the other 3 expreesions, so i need that Total expression show only the sum of the selected expressions in the list box

Thanks in advance

Regards

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Reference the columns by name:

=Rangesum(sales1, sales2, sales3)

(RangeSum() will correctkt handle the null case when an expression is not selected)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Reference the columns by name:

=Rangesum(sales1, sales2, sales3)

(RangeSum() will correctkt handle the null case when an expression is not selected)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
francis_gr
Creator
Creator
Author

Hi Jontydkpi!

It works ok!

Thanks for sharing your knowledge and for your time

regards