Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi , I have python script that has stored in local disk and now i want to execute this script in powerbi desktop
File path : "C/Users/DataUpload.py
is there any way to run above script using powerbi Button/ any other way?
Thanks.
Hi @User232431 ,
Yes, you can execute an external Python script in Power BI Desktop, but Power BI does not support direct execution via a button. Instead, you can use Power Query's Python scripting feature or Power Automate with Power BI Service. In Power Query, navigate to Transform Data → Run Python Script, then use exec(open("C:/Users/DataUpload.py").read()) to execute the script. However, this method is limited to data transformation tasks. If you need to trigger a script dynamically, you can integrate Power Automate with a Power BI button to execute the script via a cloud-based workflow. Another alternative is using R scripts within Power BI if Python execution is restricted. These methods ensure seamless integration of Python automation within Power BI without requiring manual execution.
Passionate about leveraging data analytics to drive strategic decision-making and foster business growth.
Connect with me on LinkedIn: Rohit Kumar
what is the result of the script? How are you planning to use that result in Power BI?
Script - Which uses SendGrid package to send mails , can this be happen with powerbi Button?Thanks
User | Count |
---|---|
84 | |
76 | |
72 | |
47 | |
37 |
User | Count |
---|---|
111 | |
56 | |
51 | |
42 | |
42 |