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.

Expression must not contain aggregation functions, unless these inner aggregations contain the total qualifier.<br />

For more advanced nested aggregations, please use the Advanced Aggregation (page 289) function in<br />

combination with calculated dimensions, see Add calculated dimension... (page 602).<br />

If the word distinct occurs before the function arguments, duplicates resulting from the evaluation of the function<br />

arguments will be disregarded.<br />

If the word total occurs before the function arguments the calculation will be made over all possible values<br />

given the current selections but disregarding the chart dimension variables.<br />

The total qualifier may be followed by a list of one or more field names within angle brackets. These field<br />

names should be a subset of the chart dimension variables. In this case the calculation will be made disregarding<br />

all chart dimension variables except those listed, i.e. one value will be returned for each combination<br />

of field values in the listed dimension fields. Also fields which are not currently a dimension in a<br />

chart may be included in the list. This may be useful in the case of group dimensions, where the dimension<br />

fields are not fixed. Listing all of the variables in the group causes the function to work when the cycle or<br />

drill-down level changes.<br />

Examples:<br />

avg(Sales)<br />

avg(X'Y/3)<br />

avg(distinct Price)<br />

avg(total Sales)<br />

avg({1} total Sales)<br />

sterr ([{set_expression}] [ distinct ][ total [] ]<br />

expression )<br />

returns the aggregated standard error (stdev/sqrt(n)) for a series of values represented by expression iterated<br />

over the chart dimension(s). Text values, null values and missing values will be disregarded.<br />

This function has the same limitations for nested aggregation as the avg([{set_expression}] [ distinct ] [<br />

total []] expression) (page 774) function. The sterr function supports Set Analysis (page 799)<br />

and the total qualifier in the same way as the avg([{set_expression}] [ distinct ] [ total []]<br />

expression) (page 774)function.<br />

Examples:<br />

sterr( X )<br />

sterr( X*Y/3 )<br />

sterr( total X ) ><br />

sterr( total X)<br />

steyx ([{set_expression}][ distinct ] [ total [] ] yexpression,<br />

x-expression)<br />

returns the aggregated standard error of the predicted y-value for each x-value in the regression for a series of<br />

coordinates represented by paired numbers in y-expression and x-expression iterated over the chart dimension(s).<br />

Text values, null values and missing values in any or both pieces of a data-pair will result in the<br />

entire data-pair to be disregarded.<br />

This function has the same limitations for nested aggregation as the avg([{set_expression}] [ distinct ] [<br />

total []] expression) (page 774) function. The steyx function supports Set Analysis (page<br />

799) and the total qualifier in the same way as the avg([{set_expression}] [ distinct ] [ total []] expression) (page 774)function.<br />

Examples:<br />

steyx( Y, X )<br />

775

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

Saved successfully!

Ooh no, something went wrong!