Types of Load into QlikView

    I've found a good and simple document that needs to be shared through the community that explains the different ways and methos to load data into QlikView. There are 7 types of Load and you can find bellow examples and uses of methods for each one.

     

     

    1. Loading data from the file


    This method is normal method of loading data into the Qlikview application. Load data from files like Excel,MSDB,CSV,Txt files etc., can be done by creating ODBC and connecting to your database directly.


    Ex:


    LOAD

    A,

    B

    FROM [C:filename.xls] (biff, embedded labels, table is Data$);

     

    2. Inline Load


    The second method of loading is Inline Load where the user can define their own data and load within Qlikview. The Inline data can be defined in the inline Data Wizard . InsertàLoad Dataà Inline Data.


    Ex:


    LOAD * INLINE [ A B C ];

     

    3. Resident Load


    Loading data from already loaded Qlikview table is possible using Resident Load. Transformations and Calculations can be performed in the resident load script. Loading a existing field or a succeeding table is possible too.

     

    Ex:


    Employees:

    Select

    Empname,

    HireDate,

    Salary,

    Incentives

    From Employee;

    Load

                Empname,

    Month(HireDate),

    Salary + Incentives as ‘GrossSalary’

    Resident Employees;

     

    4. Incremental Load

     

    Incremental load is used to load only the new or changed records. It will be very helpfull where a database is big. This involves loading old data from the QVD and new records from the database and combine into single QVD.

     

    Ex:


    SQL SELECT            PrimaryKey,

    X,

    Y

    FROM DB_TABLE WHERE ModificationTime >= #$(LastExecTime)# AND ModificationTime < #$(BeginningThisExecTime)#;


    Concatenate


    LOAD     PrimaryKey,

                    X,

                    Y

    FROM File.QVD;


    STORE QV_Table INTO File.QVD;

     

    5. Binary Load

     

    Loading data from one qlikview file is called Binary Loading. The data model of one QVW file is copied from RAM to disk in 0s and 1s for another qvw file. This Binary Load will be more usefull when you want to enhance the already built qvw with the same metrices defined.

     

    Ex:

     

    Binary c:order.qvw;

     

    6. Add Load

     

    Add Load is used to append or concatenate the data from one table to other table. During a partial reload the QlikView table, for which a table name is generated by the add load/add select statement (provided such a table exists), will be appended with the result of the add load/add select statement. Since it wont check for duplicates, it is required us suitable where condition in the script.

     

    Ex:

    LOAD

    ENO,

    ENAME

    FROM Employees.csv;

    ADD LOAD ENO,

    ENAME

    FROM Employees1.csv Where Not Exists(ENO);

     

    7. Buffer Load

     

    Buffer load helps to create the QVD files automatically. The created QVD will be maintained as defined in User Preferences Locations.

     

    Ex:


    Buffer select * from Employees.csv


    References:

    [1] Different ways to load data in qlikview