Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
marina24
Contributor III
Contributor III

WHERE NOT EXISTS

Hi experts.

I want to do an incremental reload (INSERT & UPDATE).

marina24_0-1616427921198.png

 

«21.03.2021.xlsx» is old data.

«22.03.2021.xlsx» is new data.

[FULL]:
LOAD
ID,
TEXT,
DATE
FROM
[21032021.xlsx]
(ooxml, embedded labels);

STORE FULL into [FULL.qvd] (qvd);
DROP TABLE [FULL];

[DELTA&FULL]:
NoConcatenate
LOAD
ID,
TEXT,
DATE
FROM
[22032021.xlsx]
(ooxml, embedded labels)
Where DATE>= '22.03.2021';

Concatenate
LOAD
ID,
TEXT,
DATE
FROM
[FULL.qvd]
(qvd)
WHERE NOT EXISTS(ID);


STORE [DELTA&FULL] into [FULL.qvd] (qvd);

 

marina24_1-1616427940993.png

 

So QV displays only the first part of the text for each ID from old data.

Please help me.

1 Solution

Accepted Solutions
MayilVahanan

HI @marina24 

Try like below


[DELTA&FULL]:
NoConcatenate
LOAD
ID,
ID as ID1,
TEXT,
DATE
FROM
[22032021.xlsx]
(ooxml, embedded labels)
Where DATE>= '22.03.2021';


Concatenate([DELTA&FULL])
LOAD
ID,
TEXT,
DATE
FROM
[FULL.qvd]
(qvd)
WHERE NOT EXISTS(ID1, ID);

DROP Field ID1;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

3 Replies
MayilVahanan

HI @marina24 

Try like below


[DELTA&FULL]:
NoConcatenate
LOAD
ID,
ID as ID1,
TEXT,
DATE
FROM
[22032021.xlsx]
(ooxml, embedded labels)
Where DATE>= '22.03.2021';


Concatenate([DELTA&FULL])
LOAD
ID,
TEXT,
DATE
FROM
[FULL.qvd]
(qvd)
WHERE NOT EXISTS(ID1, ID);

DROP Field ID1;

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
marina24
Contributor III
Contributor III
Author

It works!

 @MayilVahanan Thank you sooo much!

I really appreciate your help.

MayilVahanan

You're welcome

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.