Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Delta Load of Field Values from Table Names

Hi Guys,

i want to use  Delta Load to generate the QVDs of each year from Table. e.g:

DatumFeld1Feld2Feld3
01.01.2014abc
20.12.2015bde
04.11.2013cfg
15.03.2012ooofffieee
12.03.2012dhi
15.08.2016ejo

That is my code, but i got only the values from  2012.

I want to have  4 QVDs; KG2012.qvd, KG2013.qvd, KG2014.qvd, KG2015.qvd, KG2016.qvd

Delta:

LOAD Datum,

Year(Datum) as Jahr,

     Feld1,

     Feld2,

     Feld3

FROM

Delaload.xlsx

(ooxml, embedded labels, table is Tabelle1);

Min_Max_Jahr:

LOAD

Max(Jahr) as MaxJahr,

Min(Jahr) as MinJahr

Resident Delta;

Let MaxJahr = Peek('MaxJahr', -1);

Let MinJahr = Peek('MinJahr', -1);

For i = 1 to (NoOfRows('Delta')-1);

NoConcatenate

KG:

LOAD

Datum,

Jahr,

Feld1,

    Feld2,

    Feld3

Resident Delta where Jahr = $(vJahr);

Let vJahr = Peek('Jahr', -1,'KG');

Store KG INTO '$(vQVD)\Delta$(vJahr)'.qvd;

Next i;

Drop Table Delta;

Thank in advance

0 Replies