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

Table Chart expression total

Hi,

I have a simple table chart containing dimensions and several calculated expressions. I need to total up the expressions (about 18 in total) into another column in the table. numsum does not do the trick. Any other ideas?

Thanks!

6 Replies
johnw
Champion III
Champion III

Maybe I'm missing something, but column(1) + column(2) + column(3) + ... + column(18)?

Not applicable
Author

That doesn't work, I've tried it. the columns are calculated expressions.

Anonymous
Not applicable
Author

It doesn't matter. Use expression names in place of John's column(n). Or write a new expression like this:
<expression of column 1> + <expression of column 2> +...

johnw
Champion III
Champion III

I don't know why it wouldn't work. It works just fine for me where the columns are calculated expressions. See the attached. Is it possible to post an example of the problem you're seeing? Alternatively, does my example show you that I'm misunderstanding your question, and if so, can you clarify?

Oleg_Troyansky
Partner Ambassador/MVP
Partner Ambassador/MVP

It might not work if some of the columns return nulls - then the whole expression is rendered as null. The way around it is using rangesum:


=rangesum(Column(1), Column(2), ..., Column(18))


johnw
Champion III
Champion III

Ah! Of course. Good point. That could easily be the problem.