-
I have a feeling this may be out of scope but I was curious if anyone has had success in creating a linear regression line using column expressions. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
It is not ergonomic to calculate a linear regression in Perspective currently, though this can be done with This is not out of scope though. We can conquer this in a number of ways, but e.g. |
Beta Was this translation helpful? Give feedback.
It is not ergonomic to calculate a linear regression in Perspective currently, though this can be done with
vlookup()
and afor
loop if all of yourTable
's indices can be easily iterated over. It is also difficult to plot one if you calculate the parameters independently due to bugs/misbehavior - e.g."Y Line"
and"Y Scatter"
seem to erroneously setfloat
columns as category axes when used in theGroup By
position, though it is easy to calculate e.g.a * "Sales" + b
linear regression from the column"Sales"
with knowna
andb
.This is not out of scope though. We can conquer this in a number of ways, but e.g.
Candlestick
charts calculate a moving average window independently already, which…