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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Creating a Dynamic Curve from Input Parameters

I am trying to build a dashboard tool that allows some of our engineers to adjust a set of parameters that are used in defining the equation of a curve. 

 

What is the best approach for doing this? Does the Python or R visual allow you to read in table inputs like a series? 

 

In the example I am trying to build, would follow the following equation for a hyperbolic curve.

 

hyperbolic_curve(t, qi, b, di)

 

t = time

qi = initial rate

b = hyperbolic constant

di = nominal decline rate

 

Output = qi/((1.0+b*di*t)**(1.0/b))

 

Thanks

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

I have created a measure called hyperbolic_equation in the model, pbix here, sample.pbix 

 

 

hyperbolic_equation = divide([Initial Production Rate (qi) Value],(POWER((1.0+[Hyperbolic constant (b) Value]*[Nominal decline rate (di) Value]*([time (t) Value])),(1.0/[Hyperbolic constant (b) Value]))))

 

 

Then i add the measure to the values area and added the following python.

 

 

import matplotlib.pyplot as plt
dataset.plot(kind='line', x='time (t) Value', y='hyperbolic_equation', color='red')
plt.show()

 

 

richbenmintz_0-1597264500818.png

 

 
 

Hope this Helps,
Richard


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


View solution in original post

10 REPLIES 10
vanessafvg
Super User
Super User

what are you expecting, can you demonstrate what you want to end up with.

maybe you can provide some dummy data?




If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

I was thinking the report page would have several parameter buttons and sliders that give the engineers the ability to set different inputs and those changes automatically changing the visualization of the curve. 

Hi @Anonymous,

 

Are you able to provide some sample data, what if parameters should work just want to make sure that the results match the equation, 

 

what variables are mapped to parameters and what variables are mapped to values in your data.

 

Thanks,

Richard



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

@richbenmintz I've not built anything yet. I am unsure how to tackle this as I need to visual to actually plot the equation of the curve. 

 

Can the python visual do that? Can you feed the python visual a what-if parameter?

 

Hi @Anonymous,

 

you can use what if parameters in your Python Visual,

 

richbenmintz_0-1597093074393.png

 

Hope this Helps,

Richard 

 


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

@richbenmintz 

I added some additional parameters to this model to see if this is feasible. It is in line with what I am trying to build but I am unsure how to get it to graph 

 

https://github.com/rstover/PowerBI 

Hi @Anonymous,

 

I have created a measure called hyperbolic_equation in the model, pbix here, sample.pbix 

 

 

hyperbolic_equation = divide([Initial Production Rate (qi) Value],(POWER((1.0+[Hyperbolic constant (b) Value]*[Nominal decline rate (di) Value]*([time (t) Value])),(1.0/[Hyperbolic constant (b) Value]))))

 

 

Then i add the measure to the values area and added the following python.

 

 

import matplotlib.pyplot as plt
dataset.plot(kind='line', x='time (t) Value', y='hyperbolic_equation', color='red')
plt.show()

 

 

richbenmintz_0-1597264500818.png

 

 
 

Hope this Helps,
Richard


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Anonymous
Not applicable

Thanks. Do you mind showing a higher resolution picture? I can't see the details

Hi @Anonymous,

 

Link to a pbix file, you may have to change the pathing for python, but the file will show you have when you change the param the visual changes

sample.pbix,

 

Richard,


Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!



I hope this helps,
Richard

Did I answer your question? Mark my post as a solution! Kudos Appreciated!

Proud to be a Super User!


Pragati11
Super User
Super User

Hi @Anonymous ,

 

Try checking what-if parameters in Power BI:

https://radacad.com/power-bi-what-if-parameters

 

Thanks,

Pragati

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors