Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
mert1917
Contributor III
Contributor III

incremental data update in qlik sense

Hi Everyone,

I need your help about incrementel data update.

Can you help me please?

question;

1.EXECUTEDATE:01.01.2020;

ID_1ID_2STATUSDATE
134A1.01.2020
235B1.01.2020
336C1.01.2020
437D1.01.2020

 

2.EXECUTEDATE:02.01.2020;

ID_1ID_2STATUSDATE
534B2.01.2020
635U2.01.2020
738A2.01.2020
839B2.01.2020

 

After my target incremental table;

(FINAL TABLE)

ID_1ID_2STATUSDATE
134B1.01.2020
235U1.01.2020
336C1.01.2020
437D1.01.2020
534B2.01.2020
635U2.01.2020
738A2.01.2020
839B2.01.2020

 

How can I do that?
What is the script?

Best regards

 

 

 

 

 

 

 

 

 

 

 

7 Replies
lawrance
Creator II
Creator II

Hi,

Please refer this below url. I hope this will helps to answer your question.

 

https://help.qlik.com/en-US/sense/November2019/Subsystems/Hub/Content/Sense_Hub/LoadData/use-QVD-fil...

 

Vegar
MVP
MVP

It feels like you left out some information (maybe you simplified your source data to much). 
With the current description the solution I'll give it a shot. Try this.

If QvdCreateTime('File.qvd')>0
  Data:
  Load ID_1, ID_2, STATUS, DATE
  From File.qvd (qvd);
Endif

//Autoconcatenate
Data:
Load ID_1, ID_2, STATUS, DATE 
From Source
Where not exsists (ID_1);

Store Data Into File.qvd (qvd);
Drop table Data;

mert1917
Contributor III
Contributor III
Author

Hi,

thank you for yor help
I will examine this url.

regards 

 

 

mert1917
Contributor III
Contributor III
Author

Hi all,

I couldn't solve the problem.

how can i solve?

Can you help me plase?

MAXKEYLOAD : load max(date(DATE,'DD.MM.YYYY')) as MAXID FROM (QVD);

LET MAXID= PEEK('MAXID',0,MAXKEYLOAD);

INC :  LOAD ID_1,ID_2,STATUS,DATE FROM (DATA) WHERE DATE>'$(MAXID)';

Concatenate

LOAD*FROM (QVD) WHERE not EXISTS(ID_1);

Inner Join

LOAD ID_1,ID_2,STATUS,DATE FROM (DATA);

If ScriptErrorCount =0 then

Store INC into (QVD);

End If

Vegar
MVP
MVP

Where lies you issue? Please explain. 

mert1917
Contributor III
Contributor III
Author

hi,
I think my script is wrong, this table does not appear and I cannot find the error.

How will i do ?

(FINAL TABLE)

ID_1ID_2STATUSDATE
134B1.01.2020
235U1.01.2020
336C1.01.2020
437D1.01.2020
534B2.01.2020
635U2.01.2020
738A2.01.2020
839B2.01.2020

 

Brett_Bleess
Former Employee
Former Employee

Your best bet at this point is to be sure you have the Script/Document log enabled, so you can see exactly what is going on during the reload process as to what calls are being made and how many rows are returned etc...

How to enable the script log

Only other thing I could offer would be to maybe use the Debugger in the Script Editor to try to see what is going on via limited number of rows stepping through things.

https://help.qlik.com/en-US/qlikview/April2019/Subsystems/Client/Content/QV_QlikView/Debugger.htm

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.