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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Could I create sql command in PowerBI. [ look like connection function in Excel].?
Solved! Go to Solution.
Hi @supansat ,
We can connect to the SQL server data source in Power BI Desktop.
And Power BI Desktop provides a set of advanced options that you can add to your query if needed when you connect to SQL server. I don't know if it can help you.
Another place that involves query is query folding, you can refer to https://docs.microsoft.com/en-us/power-query/power-query-folding
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I try to add sql command in feild 'SQL statement...' but It show error after running.
Could you help to show exemple.?
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.