regression-average-x

Returns the average of the independent variable (numeric_expression2) of the regression line.

Note: Supported only in dynamic query mode.

Syntax

regression-average-x ( numeric_expression1 ,  numeric_expression2 )
regression-average-x ( numeric_expression1 ,  numeric_expression2 for 
[ all|any ] expression { , expression } )
regression-average-x ( numeric_expression1 ,  numeric_expression2 for 
report )

Example

regression-average-x ( Cost ,  Margin  for report)

Result

The average of Margin within the regression line for Cost and Margin.

Result data

Cost Margin regression-average-x (Cost, Margin for report)
4 0.33 0.284
5 0.28 0.284
9.22 0.23 0.284
15.93 0.28 0.284
34.97 0.3 0.284