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.

numcount( 2,xyz ) returns 1<br />

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

Note!<br />

The numcount function is now obsolete and is superseded by the rangecount(expr1 [ , expr2, ... exprN ])<br />

(page 308) function.<br />

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

Returns the numeric average of 1 to N arguments. If no numeric value is found, NULL is returned.<br />

Examples:<br />

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

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

numavg( null( ) 'abc' ) returns NULL<br />

Note!<br />

The numavg function is now obsolete and is superseded by the rangeavg(expr1 [ , expr2, ... exprN ]) (page<br />

308) function.<br />

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

Returns the lowest numeric value of 1 to N arguments. If no numeric value is found, NULL is returned.<br />

Examples:<br />

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

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

nummin( null( ) 'abc' ) returns NULL<br />

Note!<br />

The nummin function is now obsolete and is superseded by the rangemin(expr1 [ , expr2, ... exprN ]) (page<br />

308) function.<br />

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

Returns the highest numeric value of 1 to N arguments. If no numeric value is found, NULL is returned.<br />

Examples:<br />

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

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

nummax( null( ) 'abc' ) returns NULL<br />

Note!<br />

The nummax function is now obsolete and is superseded by the rangemax(expr1 [ , expr2, ... exprN ])<br />

(page 309) function.<br />

fact(n)<br />

Returns the factorial of a positive integer n. If the number n is not an integer it will be truncated. Non-positive<br />

numbers will return NULL.<br />

Examples:<br />

306<br />

fact( 1 ) returns 1

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

Saved successfully!

Ooh no, something went wrong!