Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
kishcolor
Frequent Visitor

On sales forecasting by combining multiple factors

For example, suppose you have sales data with the following data.

  • Date (Quarter, month, day, weekday)
  • Weather (atmospheric temperature)

I could use the "Forecast" function of Power BI to generate a sales forecast on a line graph.

However, it seems that only dates, etc. can be achieved, and multiple elements cannot be used.

Is it possible to combine two or more factors (date+weekday+temperature) to calculate a sales forecast?

 

If you know of any good methods or ways to achieve this, please let me know.

* By the way, about the factors to be used...
Since we have already calculated the correlation coefficient, we assume that only elements with a correlation coefficient of 0.8 or higher will be used.

 

2022-01-09 211756.png

Red text: Temperature obtained from weather forecast
Yellow cell: Sales value to be predicted

 

Best regards

 

1 REPLY 1
AlexisOlson
Super User
Super User

You'd need to write your own forecast formula. Multilinear regression is possible in DAX (I've done it myself) but a lot of work since DAX doesn't have built-in matrix algebra functions. DAX isn't great for complex predictive analytics since you need to essentially build everything from scratch, even determinants and matrix inversion.

 

As a side note, I'd be surprised if those independent variables have a >0.8 correlation coefficient all combined, much less individually.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.