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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
radas
Regular Visitor

Exponential Curve Target Line

Hello all, 

 

I'm trying to figure out how to model the following exponential curve in PBI based on averages of historical data. I have tried plotting an average of prior year results and that seems to work but I cannot get the linest/logest of that average data set so that I can plot the data on my chart automatically. This is the data I'm attempting to replicate (current formula is ($170M =$25.0169668M*exp(.14360057+.016086)*month) where .016086 is a plug to make the end result equal to $170M.

 

radas_0-1626470148218.png

 

Here is my chart:

 

radas_1-1626470223774.png

I have actuals + forecast (in green) and I'm attempting to use the linest/logest of the yellow line to create a new y(x)=b*m^x formula in order to replace the red straightlined $170M target. Any ideas?

 

2 REPLIES 2
radas
Regular Visitor

Hi Greg, 

 

Thank you, I did try linear regression on my historical averages line (yellow and dark gray), but it's unclear how to take this further and create the exponential target I'm looking for. The linear regression only creates a trendline of my historical averages for me... any tips? In excel I would take linest(ln) and logest of my average/date range to come up with my variables but I'm not sure how to do this in PBI.

 

radas_0-1626478415953.png

 

The result I'm looking for is the blue exponential line drawn below:

 

radas_0-1626478589888.png

 

Greg_Deckler
Super User
Super User

@radas Sounds like you need linear regression. There are lots of articles on it with DAX, even a default quick measure as well as a quick measure in the Quick Measure Gallery. My book, DAX Cookbook has an example of a deseasonalized linear regression. I don't have a copy with me at the moment, it is in like Chapter 8 or 12 I think. 

https://community.powerbi.com/t5/Quick-Measures-Gallery/Simple-Linear-Regression/m-p/247439#M55

DAX: Simple Linear Regression Pattern - TechNet Articles - United States (English) - TechNet Wiki (m...

Simple linear regression in DAX – XXL 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...

Helpful resources

Announcements
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!

November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.