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.

Above Function Examples<br />

These examples are made with the above function, but may be applied in a similar manner to the below,<br />

before and after functions. However, note that the before and after functions are relevant only to pivot<br />

tables.<br />

Example 1:<br />

Study the straight table below, depicting the use of the above function in a one-dimensional table:<br />

The third column shows the expression sum(Val) evaluated one row above the current row, which can be<br />

confirmed by comparing with the values for sum(val) in the second column. The above function returns<br />

NULL on the first row, as there is no row above on which to evaluate the expression. The above function<br />

always returns NULL on all total rows.<br />

The fourth column demonstrates the most typical use of this function, i.e. to calculate the difference between<br />

e.g. different time periods.<br />

Example 2:<br />

Study the two-dimensional pivot table below:<br />

841

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

Saved successfully!

Ooh no, something went wrong!