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: 
Anonymous
Not applicable

Incremental Load Issues

Hi everyone

I'm using Qlik Sense since 3 months and i'm new using BI tools.

In this moment im trying to use the incremental Loads but for some reason doesn't work.

In theory the incremental load need to work by dates (Fecha column) for identify the last load but when i make the conditional

WHERE Fecha > $(vUltimaCarga);

Doesn't works the script load all the information from the .xlsx fiel

I post my script and the excel

Thanks!

7 Replies
mdmukramali
Specialist III
Specialist III

Hi,

Unable to download Script file so please can you attach it again.

Thanks,

Mukram

m_woolf
Master II
Master II

You didn't say what the value of vUltimaCarga is, so here is a guess:

WHERE Fecha > '$(vUltimaCarga)';

pradosh_thakur
Master II
Master II

try this

WHERE Fecha > '$(vUltimaCarga)';

Learning never stops.
Anonymous
Not applicable
Author

I do the change but is the same problem, it concatenate the new data but with the condition of the id no from the date's row

mdmukramali
Specialist III
Specialist III

Hi,

Can you check the below Script:

Temp:

LOAD

Max(Fecha) as LastModificationDate

FROM

(qvd);

LET LastModificationDate=Date(Peek('LastModificationDate',0,'Temp'));

DROP Table Temp;

Data:

LOAD id,

     first_name,

     last_name,

     email,

     gender,

     ip_address,

     Fecha

FROM

(ooxml, embedded labels, table is data)

Where Date(Fecha)>'$(LastModificationDate)';

Concatenate

LOAD id,

     first_name,

     last_name,

     email,

     gender,

     ip_address,

     Fecha

FROM

(ooxml, embedded labels, table is data)

Where NOT Exists(id);

STORE Data into D:\QVW Files\qvds\Data.Qvd(qvd);

m_woolf
Master II
Master II

What is the contents of vUltimaCarga) and what kind of data is in Fecha?

Anonymous
Not applicable
Author

Fecha are dates and the variable vUltimaCarga is the number that the function peek send