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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
helloWorld
Regular Visitor

Predictive Modeling in Power BI?

I want to incorporate statistical analyses into my Power BI dashboards for forecasting purposes.

 

My goal is to create a forecast that recalculates in response to filters clicked on and off by the user.  This would allow for some really powerful "What if" scenario visualization.

 

To achieve this, would the calculations absolutely need to be performed within Power BI? 

 

Or is it possible for Power BI to send a filtered data set to another software (like a cloud based analytics software), which could:

         a) Calculate the model results

         b) Write the new calculations to a database

If that setup is possible, then I could set up a query in Power BI to grab the model results in real time.

 

My question is:  is it possible to do predictive modeling from within Power BI (besides using really complex DAX patterns)?  Also, is it possible to do predictive modeling using other software in a way that the calculations would respond to the users' filter selections in Power BI?

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@helloWorld - I am not aware of being able to feed anything from Power BI to another program in the way you are describing. I did create a blog article on forecasting with Power BI:

 

http://community.powerbi.com/t5/Community-Blog/Correlation-Seasonality-and-Forecasting-with-Power-BI...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

3 REPLIES 3
Greg_Deckler
Super User
Super User

@helloWorld - I am not aware of being able to feed anything from Power BI to another program in the way you are describing. I did create a blog article on forecasting with Power BI:

 

http://community.powerbi.com/t5/Community-Blog/Correlation-Seasonality-and-Forecasting-with-Power-BI...

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Thanks for your help!

ImkeF
Community Champion
Community Champion

For datasets up to 150k rows you can use some R-trickery in Power BI: http://www.thebiccountant.com/2015/12/28/how-to-export-data-from-power-bi-and-power-query/

On SQL-server-level there is a full R-integration - actually seems to be the fastest R-engine on the market at the moment.

 

@Greg_Deckler 's DAX-forecasts provide some good ground.

 

M can do all that and a bit more, as it also natively handles recursions and is more versatile in general (but mostly not as fast as DAX). FInd a pattern for a TREND-function here: https://github.com/ImkeF/pquery/blob/master/Stat.Trend.m

 

As of today we have parameters in PBI giving the users the ability to define filters: So if we can find some volunteers to put the code for all statistical functions together ... 🙂

 

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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