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.

steyx( A/B, X*Y/3 )<br />

steyx( total Y, X )<br />

steyx( total Y, X)<br />

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

x-expression[, y0 [, x0 ]])<br />

returns the aggregated m value (slope) of a linear regression defined by the equation y=mx+b for a series of<br />

coordinates represented by paired numbers in x-expression and y-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 />

An optional valye y0 may be stated forcing the regression line to pass through the y-axis at a given point.<br />

By stating both y0 and x0 it is possible to force the regression line to pass through a single fixed coordinate.<br />

Unless both y0 and x0 are stated, the function requires at least two valid data-pairs to calculate. If y0 and x0<br />

are stated, a single data pair will do.<br />

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

total []] expression) (page 774) function. The linest_m 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 />

linest_m( Y, X )<br />

linest_m( A/B, X*Y/3 )<br />

linest_m( total Y, X )<br />

linest_m( total Y, X)<br />

linest_m( Y, X, 0 )<br />

linest_m( Y, X, 1, 1 )<br />

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

y-expression, x-expression [, y0 [, x0 ]] )<br />

returns the aggregated b value (y-intercept) of a linear regression defined by the equation y=mx+b for a series<br />

of coordinates represented by paired numbers in x-expression and y-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 />

An optional valye y0 may be stated forcing the regression line to pass through the y-axis at a given point.<br />

By stating both y0 and x0 it is possible to force the regression line to pass through a single fixed coordinate.<br />

Unless both y0 and x0 are stated, the function requires at least two valid data-pairs to calculate. If y0 and x0<br />

are stated, a single data pair will do.<br />

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

total []] expression) (page 774) function. The linest_b 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 />

776<br />

linest_b( Y, X ) ><br />

linest_b( A/B, X*Y/3 )<br />

linest_b( total Y, X )<br />

linest_b( total Y, X)<br />

linest_b( Y, X, 0 )

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

Saved successfully!

Ooh no, something went wrong!