Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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.
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?
Proud to be a Super User!
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 20 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 63 | |
| 56 | |
| 47 | |
| 44 | |
| 37 |