Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
aviadbein
Contributor II
Contributor II

Combining tables

Hi all,

I want to make a comparison between "Sales forecast present data" and "Sales forecast start-of-year data".

To do so, I got two tables, Table1 (start-of-year "snapshot" data) and Table2 ( present dynamic data):

Table1:

KeyCustomer
1TBD
2A2
3TBD
4A4

Table2:

KeyCustomer
1B1
3B3
4B4
5B5
6B6

and i want to merge those two tables to one like this:

Table:

KeyCustomer
1B1
2A2
3B3
4B4
5B5
6B6

I mean, I want to ignore from Table1.Customer values (historical) if there are present values in Table2.Customer and only append

Table1 rows that deleted over time (cancelled/aborted deals) to Table2.

P.S - I've already read help.qlik.com and this thread: Understanding Join, Keep and Concatenate

Thanks in advance,

Aviad

1 Reply
Gysbert_Wassenaar

Like this:

Table:

LOAD Key, Customer FROM Table2;

CONCATENATE (Table)

LOAD Key, Customer FROM Table1 WHERE Not Exists(Key);


talk is cheap, supply exceeds demand