Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi good day,
T1:
LOAD
*
FROM [lib://CARGA_INCREMENTAL/incremental.Qvd](qvd);
sub:
LOAD Date(max(FECHA_SOLICITUD)) as maxID
Resident T1;
DROP Table T1;
let vmaxID=Peek('maxID',-1,T1);
Incremental:
LOAD
*
FROM
[lib://CARGA_INCREMENTAL/incremental.Qvd](qvd);
Concatenate
LOAD
*
FROM
[lib://CARGA_INCREMENTAL/direfencial.Qvd](qvd)
Where FECHA_SOLICITUD>$(vmaxID);
STORE Incremental into [lib://CARGA_INCREMENTAL/Prueba4_Incremental.qvd](qvd);
Hi Alejandro,
Please find the below response for your answer. The problem was both the table you are sourcing your variable from and formatting since it comes in as text.
T1:
LOAD
*
FROM [lib://CARGA_INCREMENTAL/incremental.Qvd](qvd);
sub:
LOAD
max(DATE#(FECHA_SOLICITUD,'DD/MM/YYYY')) AS maxID
Resident T1;
DROP Table T1;
let vmaxID=Peek('maxID',-1,sub);
Incremental:
LOAD
*
FROM
[lib://CARGA_INCREMENTAL/incremental.Qvd](qvd);
Concatenate
LOAD
*
FROM
[lib://CARGA_INCREMENTAL/direfencial.Qvd](qvd)
Where DATE#(FECHA_SOLICITUD,'DD/MM/YYYY')>$(vmaxID);
STORE Incremental into [lib://CARGA_INCREMENTAL/Prueba4_Incremental.qvd](qvd);
Hi Alejandro,
Please find the below response for your answer. The problem was both the table you are sourcing your variable from and formatting since it comes in as text.
T1:
LOAD
*
FROM [lib://CARGA_INCREMENTAL/incremental.Qvd](qvd);
sub:
LOAD
max(DATE#(FECHA_SOLICITUD,'DD/MM/YYYY')) AS maxID
Resident T1;
DROP Table T1;
let vmaxID=Peek('maxID',-1,sub);
Incremental:
LOAD
*
FROM
[lib://CARGA_INCREMENTAL/incremental.Qvd](qvd);
Concatenate
LOAD
*
FROM
[lib://CARGA_INCREMENTAL/direfencial.Qvd](qvd)
Where DATE#(FECHA_SOLICITUD,'DD/MM/YYYY')>$(vmaxID);
STORE Incremental into [lib://CARGA_INCREMENTAL/Prueba4_Incremental.qvd](qvd);