Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
deepakqlikview_123
Specialist
Specialist

Generic load and Partial load.

Hi all,

Can you please tell me ,

1 What are the benefits of generic load.

2 What are benefits of partial load.

Thanks,

3 Replies
Not applicable

hi please go through this link for generic load

http://community.qlik.com/blogs/qlikviewdesignblog/2014/03/31/generic

jagannalla
Partner - Specialist III
Partner - Specialist III

Hi,

CrossTable:

It helps to convert all DB columns as field values into new field  and all DB columns data into another new field based on key column(i.e. first columns in load). This concept is equal to UnPivot function in Sql.

Generic Load:

It is opposite to Crosstable. But it will generate mulitple tables based on key column. This function is equal to Pivot function in Sql.

Eg:

If you have data like this

ObjectAttributeValue
BallColorRed
BallDiameter10 cm
BallWeight100 gms
BoxColorBlack
BoxLength20 cm
BoxWidth10 cm
BoxHeight16 cm
BoxWeight500 gms

/*

  It helps to convert all DB columns as field values into new field

  and all DB columns data into another new fiel based on key column(i.e. first columns in load)

*/

CrossTable(Attribute,Value)

LOAD Object,

    Color,

    Diameter,

    Weight,

    Length,

    Width,

    Height

FROM

ScriptStatementsAndKeyWords.xlsx

(ooxml, embedded labels, table is CrossTable);

/*

  It is opposite to Crosstable.

  But it will generate mulitple tables based on key column

*/

Generic

LOAD Object,

    Attribute,

    Value

FROM

ScriptStatementsAndKeyWords.xlsx

(ooxml, embedded labels, table is GenericDB);

Partial Load:

Add: Add is prefix for Load, Select and Map statements. "Add load" statement will execute at normal & partial load. But "Add only load" statement executes only at partial load. It will not check for any duplicates at normal load, but it will checks at partial load

Replace: Replace will replace the previous loaded table and adds the new table with data. It will work at normal and partial load. In normal reload it will load the first table and immediately it will drop the first table, then it will load the replace table along with data. In partial reload it will drop the first table and loads the replace table along with data.

Eg:

If you have data

Persons:

NameNumber
Jagan1
Sri2

New Persons:

NameNumber
Jagan1
Sri2
X3
Y4

Table1:

LOAD Name,

    Number

FROM

ScriptStatementsAndKeyWords.xlsx

(ooxml, embedded labels, table is Persons);

/* This statement works at normal reload and partial reload */

Add

LOAD Name,

    Number

FROM

ScriptStatementsAndKeyWords.xlsx

(ooxml, embedded labels, table is NewPersons)

;

// This statement works at partial reload

Add Only

LOAD Name,

    Number

FROM

ScriptStatementsAndKeyWords.xlsx

(ooxml, embedded labels, table is NewPersons)

Where not Exists(Name)

;


Try to comment each statement one by one and check with reload and partial reload based on example