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
hipau
Frequent Visitor

Automate Power Query Refresh and Import into SQL Server

Hi,

I'm looking for some advice on how to best automate this weekly process:

 

1. Open numerous .xlsx files that use Power Query to connect to Microsoft Dynamics.
          - To elebroate, the .xlsx Power Query uses Source = OData.Feed to connect to Microsoft Dynamics

2. Select Refresh All. Save and close.

3. Open SQL Server Management Studio and use the import wizard to copy data & delete rows in destination table (not append rows).
4. Open the .pbix dashboard, which connect to the Microsoft SQL Server Tables and select Referesh All.

          - It may be possible to streamline the process by having .pbix files point to the .xlsx fles, bypassing SQL Server Management Studio, but there are a number of transformations that are more efficient in SQL Server, which makes this an unfavourable option.

 

Apologies if this is in the wrong section, or if i need to split this up into a few posts. 

Regards, hipau

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

SSIS or Azure Data Factory



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

SSIS or Azure Data Factory



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thanks for your response. I'll take a look into SSIS as a starting point. Is there any particular reason you would choose one over the other?

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