Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
kamalqlik
Partner - Specialist
Partner - Specialist

Incremental load


Hi ,Guys...actually i m new to qlikview.I am facing a problem while working with incremental load.PFA of the excel sheet below.I want to insert only those rows of the table to be inserted.

1>The rows which are newly inserted,eg a row with the new  rectime is inserted,than only the row shold be inserted.

2> It should show the rows which have been updated

3>It should delete all the othe other previous records or data, only the dat in step 1 and 2 should be shown.

I am attaching the EXCEL sheet with this.Thanks in advance

Thanks and regard

Kamal

13 Replies
Not applicable

Ich werde ab 05.09.2011 nicht im Büro sein. Ich kehre zurück am

23.09.2011.

Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten.

Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Verwertung des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt.

Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank!

Not applicable

Ich werde ab 05.09.2011 nicht im Büro sein. Ich kehre zurück am

23.09.2011.

Ich werde Ihre Nachrichten nach meiner Rückkehr beantworten.

Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse oder sonstige vertrauliche Informationen enthalten. Sollten Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Verwertung des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich untersagt.

Bitte benachrichtigen Sie uns und vernichten Sie die empfangene E-Mail. Vielen Dank!

kamalqlik
Partner - Specialist
Partner - Specialist
Author

Yes Sunil.....I have already applied this method....I think you are not gettin what I am saying...

Actually I want only the updated data to be in the table or application ..

for example assume a table.

Sales Table:

Emp_ID    Sales    Location

1               1200     A

2               2512     B

3               4545     C

4               6558     D

Now suppose we are deleting the row 2 with employee Id and inserting a new row.

Than the output should be like---

Emp_ID    Sales    Location

2               2893    B

5               3652    E

ie only the Updated records,and inserted records in table.

..

I have attached the excel sheet above

suniljain
Master
Master

Let ThisExecTime = Now( );

QV_Table:

SQL SELECT PrimaryKey, X, Y FROM DB_TABLE

WHERE ModificationTime >= #$(LastExecTime)#

AND ModificationTime < #$(ThisExecTime)#;

Concatenate LOAD PrimaryKey, X, Y FROM File.QVD

WHERE NOT EXISTS(PrimaryKey);

Inner Join SQL SELECT PrimaryKey FROM DB_TABLE;

If ScriptErrorCount = 0 then

STORE QV_Table INTO File.QVD;

Let LastExecTime = ThisExecTime;

End If