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! Get ahead of the game and start preparing now! Learn more
I have a need to replace Business Objects reports with Power BI. In Business Objects, you're able to create derived tables which allows you to enter SQL expresssions. Is there a way to do the same in Power BI Desktop? I'm connecting to a mySQL database via ODBC connection. Thanks in advance.
EDIT:
My SQL expressions are complex. They include subqueries. For example:
select a.id, namefirst, nameLast from (
(select id, clobValue as nameFirst from table A where name = 'nameFirst') a,
(select id, clobValue as nameLast from table A where name = 'nameLast') b
)
where a.id = b.id
Solved! Go to Solution.
Hi @Padycosmos ,
In this video, it demonstrates added a SQL query when connecting to a SQL data source. I'm connecting via ODBC to a MySQL data source so I do not have the option to enter the query this way.
You can run multiple queries against the same data source (and they can be custom SQL). Each query will appear as a table in Power BI if you choose to load it.
You do that in the ETL portion called Power Query Editor.
Hi @lbendlin,
Using this feature in Desktop is new to me, can you provide a screenshot of where in Power Query Editor, I could enter the query? Thank you.
Expand Advanced to get the SQL statement window
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 36 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 129 | |
| 88 | |
| 79 | |
| 68 | |
| 63 |