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.

angecorrel(x-value , y-value { , x-value , y-value})<br />

Returns the correlation coefficient for a series of coordinates.<br />

X-value is a single value or a range of values as returned by an Chart Inter Record Functions (page 815)<br />

with a third optional parameter.<br />

Y-value is a single value or a range of values as returned by an inter-record function with a third optional<br />

parameter. Each value or range of values must correspond to an x-value or a range of x-values.<br />

The function needs at least two pairs of coordinates to be calculated. Text values, null values and missing<br />

values are disregarded.<br />

Examples:<br />

rangecorrel (2,3,6,8,9,4) returns 0,269<br />

rangecorrel (above(sum(X), 0, 10), above(Y, 0, 10))<br />

rangecorrel (above(total X,0,rowno(total)),<br />

above(total Y,0,rowno(total)))<br />

Chart Inter Record Functions<br />

These functions can only be used in chart expressions.<br />

Note!<br />

Sorting on y-values in charts or sorting by expression columns in straight tables is not allowed when Chart<br />

Inter Record functions are used in any of the chart's expressions. These sort alternatives are therefore automatically<br />

disabled.<br />

Suppression of zero values is automatically disabled when these functions are used.<br />

See Examples of Chart Inter Record Functions (page 839).<br />

Fieldvalue(fieldname , n)<br />

Returns the field value found in position n of the field fieldname (by load order). Fieldname must be given<br />

as a string value, e.g. the field name must be enclosed by single quotes. The first field value is returned for<br />

n=1. If n is larger than the number of field values, NULL is returned.<br />

Example:<br />

fieldvalue( 'Helptext', 5 )<br />

FieldIndex(fieldname , value )<br />

Returns the position of the field value value in the field fieldname (by load order). If value cannot be found<br />

among the field values of the field fieldname, 0 is returned. Fieldname must be given as a string value, e.g.<br />

the field name must be enclosed by single quotes.<br />

Example:<br />

fieldindex( 'Name', 'John Doe' )<br />

dimensionality ( )<br />

Returns the number of dimension columns that have non-aggregation content. i.e. do not contain partial<br />

sums or collapsed aggregates.<br />

A typical use is in attribute expressions, when you want to apply different cell formatting depending on<br />

aggregation level of data.<br />

815

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

Saved successfully!

Ooh no, something went wrong!