Forum Discussion
Creating a Dynamic Curve from Input Parameters
- 6 years ago
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()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!
maybe you can provide some dummy data?
- Anonymous6 years agoNot 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.
- richbenmintz6 years agoResident Rockstar
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
- Anonymous6 years agoNot 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?