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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
claytonpreston
New Member

Pull Code / Scripts from remote source like GitHub or a Server

I want to have a SQL (or whatever language) script saved in GitHub or a server file (.sql) somewhere and PBI can pull this in and use the text file as my SQL code.

 

This way, I don't have to open the Desktop file and "edit the query" each time I want to make a minor update to the SQL code; I can simply update the SQL code on GitHub and next time the report refeshes... the code is updated as well.

1 REPLY 1
vanessafvg
Community Champion
Community Champion

why not create a view in sql and point to that view?  that way you dont need to store it in source control?    Other you will need something like devops to run your refresh with your code as far as I know.  However you would need to keep the pbix as far as i know in GIT.

 

Other options are using dataflows?  





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.