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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hello guys,
I would like to ask, is it possible to set ODBC datasource for gateway with SLQ statement? Most of my sources in desktop version have SQL statement, because without it, it is impossible to load the query.
Solved! Go to Solution.
Hi Sk1X1,
You can add SQL Query in advance option when loading data to your PBI desktop. After you publish the report to web, everytime the data in your report need to be refreshed, PBI Service will send SQL Query to your gateway, then gateway will forward the query to your database.
Regards,
Jimmy Tao
Hi Sk1X1,
You can add SQL Query in advance option when loading data to your PBI desktop. After you publish the report to web, everytime the data in your report need to be refreshed, PBI Service will send SQL Query to your gateway, then gateway will forward the query to your database.
Regards,
Jimmy Tao
Yes, you can use Advanced options in an ODBC connection to paste in a SQL Statement, if that is what you are asking.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.