Is there way to choose certain months you want to use for the regression? In my case I am trying to using TTM (which I currently have as a Boolean property of Month)
Page 1 / 1
Hi,
I don’t think it’s possible to choose certain months in the ranking dimension because it has to be the dimension itself.
However, given that Sales uses Month, maybe you can try to filter your source data like this:
Thanks, yes filtering on the source data worked. Thanks Benoit.
Hello @connorsmith ,
Benoit beat me by a few minutes with the exact same idea I had, but since I did try to do a comprehensive demo, I believe it is still worth it sharing it.
I have made two calculations, one where the Linear Regression is manually calculated and the other using FORECAST_LINEAR.
I have then done it in a such a way that the when the Exclude boolean changes, the “Valid Period” is recalculated to ignore the period excluded - find table below.
As you can see above, y = mx + b does not include the excluded periods in the calculation of the linear regression, while FORECAST_LINEAR is just excluding them from the base data set.
As you can see in the picture below, ultimately the result is the same.
I hope the above makes sense and complements @Benoit response!
Thanks for the demo Bruno, this looks like a great use case :)