Calculate the Slope of the Regression Line
Use SAQL to perform linear analysis on your data to find the line that best fits the data. Then use .regr_slope to return the slope of this line.
Suppose that you have a dataset that includes the number of activities (such as meetings) and the won opportunity amount.

How much bigger will the deal size be for each extra activity? regr_slope performs a linear analysis on your data then calculates the slope (that is, the increased amount you win for each extra activity).
Based on your existing data, every extra activity that you have tends to increase the deal size by $1.45 million, on average.

See Also