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.

OtherSymbol<br />

In many cases a way to represent all other values in a table is needed, i.e. all values that were not explicitly<br />

found in the loaded data. This is done with a special variable called OtherSymbol. To define the Other-<br />

Symbol to be treated as ‘all other values’, use the following syntax:<br />

SET OTHERSYMBOL=;<br />

before a load/select statement. may be any string.<br />

The appearance of the defined symbol in an internal table will cause <strong>QlikView</strong> to define it as all values not<br />

previously loaded in the field where it is found. Values found in the field after the appearance of the Other-<br />

Symbol will thus be disregarded.<br />

In order to reset this functionality use:<br />

Example:<br />

SET OTHERSYMBOL=;<br />

Insert the following statement in the script before the point where the first table above is loaded:<br />

SET OTHERSYMBOL=+;<br />

All references to CustomerIDs other than 1, 2 or 3, e.g. as when clicking on OrderID 1299 will result in<br />

Undefined under Name.<br />

Note!<br />

OtherSymbol is not intended to be used for creating outer joins between tables!!<br />

27.10 NULL Value Handling in <strong>QlikView</strong><br />

When no data can be produced for a certain field as a result of a database query and/or a join between tables,<br />

the result is normally NULL values.<br />

The <strong>QlikView</strong> logic treats the following as real NULL values:<br />

l NULL values returned from an ODBC connection<br />

l NULL values created as a result of a forced concatenation of tables in the <strong>QlikView</strong> script<br />

l NULL values created as a result of a join statement made in the <strong>QlikView</strong> script<br />

l NULL values created as a result of the generation of field value combinations to be displayed in a<br />

table box or exported by an export button.<br />

Normally it is impossible to use these NULL values for associations and selections. However, it is possible<br />

to manipulate NULL values at field level, using the nullasvalue statement. See NullAsValue (page 255). Furthermore,<br />

NULL values from ODBC, can be manipulated using nulldisplay (see below).<br />

Text files per definition cannot contain NULL values.<br />

388

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

Saved successfully!

Ooh no, something went wrong!