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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

angeavg (1,2,4) returns 2.33333333<br />

rangeavg (1,'xyz') returns 1<br />

rangeavg (null( ), 'abc') returns NULL<br />

rangeavg<br />

(above(count(x),0,3))<br />

returns a sliding average of the result of the inner count(x) expression calculated<br />

on the current row and two rows above the current row.<br />

rangecount(expr1 [ , expr2, ... exprN ] )<br />

Returns the number of values found within a range of 1 to N arguments. NULL values are not counted.<br />

The argument expressions of this function may contain Chart Inter Record Functions (page 815) with a<br />

third optional parameter, which in themselves return a range of values.<br />

Examples:<br />

rangecount (1,2,4) returns 3<br />

rangecount (2,'xyz') returns 2<br />

rangecount (null( )) returns 0<br />

rangecount<br />

(above(sum(x),-1,3))<br />

returns the number of values within the three results of the sum(x) function<br />

evaluated on the row below the current row, the current row and the row<br />

above the current row.<br />

rangemin(expr1 [ , expr2, ... exprN ])<br />

Returns the lowest numeric value found within a range 1 to N arguments. If no numeric value is found,<br />

NULL is returned.<br />

Examples:<br />

rangemin (1,2,4) returns 1<br />

rangemin (1,'xyz') returns 1<br />

rangemin (null( ),<br />

'abc')<br />

rangemin<br />

(above(sum(x),-1,3))<br />

returns NULL<br />

returns the lowest of the three results of the sum(x) function evaluated on the<br />

row below the current row, the current row and the row above the current row.<br />

rangemax(expr1 [ , expr2, ... exprN ])<br />

Returns the highest numeric values found within a range of 1 to N arguments. If no numeric value is found,<br />

NULL is returned.<br />

Examples:<br />

rangemax (1,2,4) returns 4<br />

rangemax (1,'xyz') returns 1<br />

rangemax (null( ),<br />

'abc')<br />

810<br />

returns NULL

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

Saved successfully!

Ooh no, something went wrong!