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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
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.?
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |