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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Hi there,
Our setup...we have an enterprise gateway installed on our server to refresh the Power BI dashboard and report. The underlying data sources for the report are tables and views from a SQL server, not a cube. Our datasets are setup with an ‘import’ connection.
My question...instead of scheduling refreshes via the Power BI Service, we would like to create a step within a SQL Agent job to execute the refresh. Is this possible? Maybe using Powershell? Any suggestions on viable solutions?
Thank you.
Solved! Go to Solution.
It is surely possible. Power BI Services provides the APIs to import data into a published report, you can follow this toturial Push data into a Power BI dashboard. Recently I am studying on this, it is quite easily understanding if you have some coding skill. Just form data in JSON format and call the APIs to load data to Power BI services.
Regarding developing, you can create a console application following the tutorial in Visual Studio or SQL Server Integration Service(my preference),and schedule a windows task or SQL Server Agent job to load data in a certain interval automatically.
Also check Power BI REST API limitations.
It is surely possible. Power BI Services provides the APIs to import data into a published report, you can follow this toturial Push data into a Power BI dashboard. Recently I am studying on this, it is quite easily understanding if you have some coding skill. Just form data in JSON format and call the APIs to load data to Power BI services.
Regarding developing, you can create a console application following the tutorial in Visual Studio or SQL Server Integration Service(my preference),and schedule a windows task or SQL Server Agent job to load data in a certain interval automatically.
Also check Power BI REST API limitations.
@tinaklo Not saying it "can't" be done, but I'm not aware of anyone having done it before. Obviously this isn't supported out of the box. The only mechanism to "refresh from on premises" would be to use Direct Query or a live connection to a SSAS instance. Then you don't need to schedule anything in the Service.
Another solution can be to have an Azure SQL and replicate Data in the Cloud....
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the September 2025 Power BI update to learn about new features.