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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nicolas_Zim
Regular Visitor

AutoUpdate Database with Python

My requirement is create a script with autoupdate the DataBase info to PowerBi Desktop (like every 30minutes) and after that, update the data for PowerBi Web, for use the reports with daily information.

However i am using an ODBC for use FDB file database and a gateway to update the data of PowerBi Desktop to PowerBi Web. Its working, with manual update, but i can't find a way to update with python.

Comments: I have never used python or R scripts inside PowerBi.
                   It's out of the question to have python manually click on buttons to update.
                   I'm trying get some API or some library with python.
                   Visual example of what I want to do.
                   I'am using ODBC in this way.

Not sure how to proceed, but i need some way to go.
Could I have some help?

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

@Nicolas_Zim,

What error message do you get when using gateway? Do you successfully add SQL data source within gateway?


Regards,
Lydia

View solution in original post

Sorry, i make a mistake. I thought the gateway works with the PBI online, and if it were so i would need use ODBC too.
And then, gateway works alone, without the ODBC and PBI opened in the desktop. I make tests and works.

 

However i am still with a problem to solve. The autoupdate every 30 minutes. Wich isn't will work with schedule of PBI Web.
I am searching for some way to make python autoupdate the database file in PBI Web.

But anyway thanks for it, helped me a lot.

View solution in original post

8 REPLIES 8
Syndicate_Admin
Administrator
Administrator

What about using Power Automate to schedule a BI update every 30 minutes? That gives you the ability to pick any recurrence schedule and if you need python you could call a Power Automate Desktop to do that then refresh...

Anonymous
Not applicable

@Nicolas_Zim,

Why do you need to auto update database info to Power BI Desktop file? After you publish the PBIX file to Power BI Service and configure gateway to set schedule refresh for the dataset, the report in Power BI Service will get updated automatically based on refresh schedule.



Regards,
Lydia

Because, i dont know why... i tried with just gateway, but it doesn't work.
After this i tried update manual in PBI Desktop and push to PBI web, and this way worked. So i am trying to autoupdate for just push the info in PBI web.

 

Anyway i need to update every 30minutes or something like that, if i use the update schedule of PBI web i can't have this update pattern.

However if you know a way to follow for help me, i will be gratefull.

Thanks for attention, 
Nicolas.

Anonymous
Not applicable

@Nicolas_Zim,

What error message do you get when using gateway? Do you successfully add SQL data source within gateway?


Regards,
Lydia

Sorry, i make a mistake. I thought the gateway works with the PBI online, and if it were so i would need use ODBC too.
And then, gateway works alone, without the ODBC and PBI opened in the desktop. I make tests and works.

 

However i am still with a problem to solve. The autoupdate every 30 minutes. Wich isn't will work with schedule of PBI Web.
I am searching for some way to make python autoupdate the database file in PBI Web.

But anyway thanks for it, helped me a lot.

Anonymous
Not applicable

@Nicolas_Zim

"The autoupdate every 30 minutes. Wich isn't will work with schedule of PBI Web".

Could you please describe more details about the above sentence? If you have configured gateway succesfully and add yor data sources within the gateway, you are able to set 30 min refresh schedule if you have Power BI premium license.

Regards,
Lydia

@Anonymous

 

Thank you very much for the answers so far. 

I am having similar problems.


I just wanted to ask if it's possible to "autoupdate" in Power BI Service every 30 min. or every hour without having a Power BI premium license? (I have only  Power BI pro).

 

Thank you.

I will not be in the place where PBI will be running, so I need to leave some script running to update itself.
With the PBI agenda I can only do 8 update times.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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 Solution Authors