Forum Discussion

mdubose's avatar
mdubose
Helper I
3 years ago
Solved

Create custom query in Desktop

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

7 Replies