Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
selcukcadir
Creator II
Creator II

sub total transfer

Hi all,

chart 1 sub total (col 4) = 19

send to chart 2 b0 (col 4) value

Is it possible?

test_data.png

6 Replies
sunny_talwar

Try this expression:

If(col3 = 'main total value (a)', sum(TOTAL {<col1 = {'a*'}>} col4), sum(col4))


Capture.PNG

selcukcadir
Creator II
Creator II
Author

Thanks, but,

My case, column no, I need to use,

If(col3 = 'main total value (a)', sum(TOTAL {<col1 = {'a*'}>} C2), sum(col4))

C2 column name

test_data2.png

sunny_talwar

I am confused now. TOTAL for C2 is 18 and not 19?

jonathandienst
Partner - Champion III
Partner - Champion III

If i understand correctly, you would like to read the total of one chart object into another chart object. Unfortunately, that is not possible. You will have to recalculate that total again in the second chart.

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

correct, C2 18 and C3 19

If(col3 = 'main total value (a)', sum(TOTAL {<col1 = {'a*'}>} C4), sum(col4))

column name sum failed

my add example file

sunny_talwar

Like jonathan pointed out you won't be able to use expression labels for getting totals. What is the number you want for main total value (a) (18 or 19)? and where does it come from (another table or same table)?