21.01.2013 Views

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

QlikView Reference Manual.pdf - QlikCommunity - QlikView

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

26 Data Structures<br />

26.1 Data Loading Statements<br />

Data is loaded by load or select statements. Each of these statements generates an internal table. A table can<br />

always be seen as a list of something, each record (row) then being a new instance of the object type and<br />

each field (column) being a specific attribute or property of the object.<br />

Rules:<br />

<strong>QlikView</strong> does not make any difference between tables generated by a load or a select statement. Hence, if<br />

several tables are loaded, it does not matter whether the tables are loaded by load or select statements or by<br />

a mix of the two.<br />

The order of the fields in the statement or in the original table in the database is arbitrary to the <strong>QlikView</strong><br />

logic.<br />

Field names are used in the further process to identify fields and making associations. These are case sensitive.<br />

It is thus often necessary to rename fields in the script. See Renaming Fields (page 369).<br />

26.2 Execution of the Script<br />

For a typical load or select statement the order of events is roughly as follows:<br />

1. Evaluation of expressions<br />

2. Renaming of fields by as<br />

3. Renaming of fields by alias<br />

4. Qualification of field names<br />

5. Mapping of data if field name matches<br />

6. Storing data in an internal table<br />

26.3 System Fields<br />

In addition to the fields extracted from the data source, system fields are also produced by <strong>QlikView</strong>. These<br />

all begin with "$" and can be displayed in list boxes much like ordinary fields. The system fields which are<br />

typically created during script execution, are primarily used as an aid in document design. The following system<br />

fields can be displayed:<br />

$Table Displays all internal tables loaded by the script. When a single table is<br />

selected, an information symbol will activate in the caption area of the list<br />

box. By clicking here, it is possible to view the table, if it comes from a file.<br />

$Field Displays the fields that are read from the tables. By setting this list box to<br />

Show Frequency in the List Box Properties: General page, it is simple to<br />

detect key fields that occur in several internal tables.<br />

$Fields The numbers in this list box represent the number of fields in different tables.<br />

$FieldNo This list box shows the position of the fields in the tables.<br />

$Rows This list box shows the number of rows in the tables.<br />

$Info If info tables have been included in the document, their names will be displayed<br />

here.<br />

365

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!