Forum Discussion
Anonymous
1 year agoNot applicable
Executing ML Python Scrip when Pressing Button
Hello! I have trained a linear regression model to predict the success of a promotion based of features like price, product or discount. I want to develop a functionality in my PowerBI dashbo...
lbendlin
1 year agoSuper User
The Python visual in Power BI expects input data. Your Power BI semantic model can be influenced by report user choices (setting filters, clicking on visuals etc). These influences (contexts) extend to the Python visual's intial data frame.
So - every time the users make filter choices your model could re-run. If that is too often then there is also a deferral option ("apply filters now"). Note that your Python visual needs to render something after it finished the script.