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.

This function is only meaningful if used together with a while clause, see Load (page 246). IterNo( )<br />

returns an integer indicating for which time one single record is evaluated in a load statement with a while<br />

clause. The first iteration has number 1.<br />

autonumber(expression[ , AutoID])<br />

Returns a unique integer value for each distinct evaluated value of expression encountered during the script<br />

execution. This function can be used e.g. for creating a compact memory representation of a complex key.<br />

In order to create multiple counter instances if the autonumber function is used on different keys within the<br />

script, an optional parameter AutoID can be used for naming each counter.<br />

Examples:<br />

autonumber( Region&Year&Month )<br />

autonumber( Region&Year&Month, 'Ctr1' )<br />

autonumberhash128(expression {, expression})<br />

Calculates a 128-bit hash of the combined input expression values and the returns a unique integer value for<br />

each distinct hash value encountered during the script execution. This function can be used e.g. for creating<br />

a compact memory representation of a complex key.<br />

Example:<br />

autonumberhash128 ( Region, Year, Month )<br />

autonumberhash256(expression {, expression})<br />

Calculates a 256-bit hash of the combined input expression values and returns a unique integer value for<br />

each distinct hash value encountered during the script execution. This function can be used e.g. for creating<br />

a compact memory representation of a complex key. This function is only available as a script function.<br />

Example:<br />

Autonumberhash256 ( Region, Year, Month )<br />

fieldvaluecount(fieldname)<br />

Returns the number of distinct values in a field. Fieldname must be given as a string (e.g. a quoted literal).<br />

Example:<br />

let x = fieldvaluecount('Alfa');<br />

Back to Other Functions.<br />

String Functions<br />

In the functions below, the parameters are expressions where s should be interpreted as a string.<br />

ord( s )<br />

ASCII number of first character of string s. The result is an integer.<br />

Example:<br />

chr( n )<br />

320<br />

ord('A') returns the number 65.

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

Saved successfully!

Ooh no, something went wrong!