Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Calculate value between two different charts

Hi there,

I currently have two table charts:

Table A

Indexed LTV BandAll loans
0%-60%246832
100%+11134
61%-65%20394
66%-70%21046
71%-75%20831
76%-80%21979
81%-85%21755
86%-90%19710
90%-95%15197
96%-99%8308
Total407186


Table B

Indexed LTV BandAll loans
0%-60%1569
100+%2007
61%-65%2193
66%-70%2382
71%-75%2600
76%-80%2803
81%-85%3038
86%-90%3246
90%-95%3413
96%-99%3566
-407186


I am trying to calculate between two charts to have value A - value B and give me Value C.

Indexed LTV BandABC
0%-60%2468321569245263
100+%1113420079127
61%-65%20394219318201
66%-70%21046238218664
71%-75%20831260018231
76%-80%21979280319176
81%-85%21755303818717
86%-90%19710324616464
90%-95%15197341311784
96%-99%830835664742


Not sure if Qlikview is able to do this?

4 Replies
prieper
Master II
Master II

Join both tables on the field "Indexed ..." and then do your calculations.

Data: LOAD [Indexed LTV Band], A FROM ....;
JOIN LOAD [Indexed LTV Band], B FROM ....;
CombinedData: LOAD *, A-B AS C RESIDENT Data;
DROP TABLE Data;


you may also choose to only join the tables and do the calculation in your forms/graphs.

HTH
Peter

Not applicable
Author

Really sorry but I am really new to Qlikview and try to familarise with the functions that it has. How do you join those tables?

It is not going to be Edit Scripts and enter the information above?

Or should I be creating a new sheet object and add the information above?

prieper
Master II
Master II

It is Edit Scripts, copy the above and finetune for your own data.

++
Peter

Not applicable
Author

Problem that I have is, I have already used the Edit Script to import some data from the source. From this script, I then split the data into Table A and B (mainly for different fitlers) using ranges and count. Now that I split them, I want to do such a way total in Table A - total in Table B and give me the balance for each index LTV.

Unless you are suggesting that I can do all these in one big Edit Script?