Implementing linear regression in Power BI

preview_player
Показать описание
How to manage the LINESTX function results in DAX to compute linear regression.

Рекомендации по теме
Комментарии
Автор

Great video, Marco! Thank you for sharing this insightful tutorial. Typically, I perform regression analysis in Python and get the coefficients and intercept into Power BI for predicting values. However, with the LINESTX function in Power BI, I can now conveniently run the regression directly within Power BI and obtain the linear equation. This approach is highly efficient, dynamic and saves me time. Thanks again for introducing this helpful technique!

Nazeerul_Hazard
Автор

I assumed linest stood for linear estimator- hence the function would be pronounced lin-est. Not a problem though!
Thanks for all the great content. You guys are life savers

piaveipvsenlawp
Автор

Thank you for the video, Marco! It works! The question is - how to look for a linear regression for the future months where we still have no sales?

ekaterinap.
Автор

Hi,
So, for single row table the SELECTCOLUMNS() returns a scalar value, similar to VALUES().. Thank you!

Bharath_PBI
Автор

Thank you for this useful tutorial. Quick question: what would be the syntax for LINESTX if I want to filter the initial table? For example, in my table I have multiple product categories and I want calculate only for one of them. Would the formula become as below (assuming I am interested in Bikes)?
Table 3 = LINESTX
(FILTER('Table', 'Table'[Category]="Bikes"), 'Table'[Revenue], 'Table'[Sold date], TRUE)

mnedix
Автор

How about if I want to calculate for multiple products on the same plots?

gracechik
Автор

Hi! How many times are we calculating the linear regression? Seems to be expensive. Thanks for this video!

johansantacruz
Автор

Like, regards, from Cali Colombia. I suggest you use Excel's linear forecast function to explain this topic.

alvarorodriguezlasso
Автор

Great explanation. My brain is back to statistics

Wzxxx
Автор

Quick question, changing subject...any new about the issue in Bravo not running after PBI May update? Thanks.

elrevesyelderecho
Автор

Once you have created the linear regression measure, how do you actually add the line to your chart?

brynhumberstone
Автор

What about polynomial regression ? Is it possible?

lionels
Автор

Let's say I have a table with 100 products with all the Prices and Quantities. I'd like to do linear regression with many different products.
How do I use LINESTX in a smart way, avoiding to write 100 DAX queries?
How can I link a dropdown list of the products, located in one tab of our dashboard, to LINESTX function? Is that possible?

lorenzocassina
Автор

Yes I'm facing the same bug issue. How to solve this

aravindbabu
Автор

Does LINESTX still not work for polynomial regression?

kopite
Автор

Quite complicated, it is much easier to take the data back to excel or python and make the regression line

anindadatta