This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 31 | |
| 25 | |
| 21 | |
| 18 | |
| 17 |
| User | Count |
|---|---|
| 62 | |
| 34 | |
| 33 | |
| 25 | |
| 24 |