Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

I'd like to add 2 columns from a straight table together and display in a text object. Is this possible?


I've got a straight table (Object ID CH233) and I'd like to add columns 1 & 3 together and display in a text object. Something like the expression below

= (CH233,Column1)+ (CH233,Column3)

Object CH233 only has 1 row of data so doesnt need to be totalled first.

Does anyone know if this is possible and what the correct expression would be?

3 Replies
Not applicable
Author

HI Gavin

I would use the expressions of each column, and sum them in the text object instead of using the Columns.
Columns work great inside a chart for let's say a 4th expression, but I would use that solution instead
Hope it helps
Regards

Pablo

Gysbert_Wassenaar

No, that's not possible. You can't reference values in cells in other objects. You will have to reuse the expressions that calculated the values you wish to add. You will probably have to use the aggr function to get the right values.

sum(aggr( ...1st_expression_from_ch233... + ...2nd_expression_from_ch233... ), Dim1, Dim2,...,DimN)).

Replace Dim1, Dim2,...,DimN with the dimension names of the dimensions of CH233


talk is cheap, supply exceeds demand
Not applicable
Author

OK..Thanks guys. Kinda guessed I would.