Qlik Community

QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

marconacian
New Contributor III

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
Valued Contributor III

Re: Incremental Load Issues

Hi,

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

Thanks,

Mukram

mwoolf
Honored Contributor II

Re: Incremental Load Issues

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

WHERE Fecha > '$(vUltimaCarga)';

pradosh_thakur
Honored Contributor II

Re: Incremental Load Issues

try this

WHERE Fecha > '$(vUltimaCarga)';

Learning never stops.
marconacian
New Contributor III

Re: Incremental Load Issues

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
Valued Contributor III

Re: Incremental Load Issues

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);

mwoolf
Honored Contributor II

Re: Incremental Load Issues

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

marconacian
New Contributor III

Re: Incremental Load Issues

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