Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
stesappo
New Member

drill down to a database SQL query

Dear All,

I'd like to know if there is a possibility, starting from a dataset in Power BI, to drill down the aggregated dataset to a database SQL query (like Oracle databasde or whatever RDBMS).

It it possible to use Power BI in this way?

Is it possible to pass a SQL query with filters and then retrieve the result?

 

Regards

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @stesappo ,

If the data source is Oracle, you can refer the following link to get it by filling in SQL statement the Advanced options section just as below screenshot... Please note that Power BI Desktop doesn't support Oracle native queries that execute a stored procedure and Oracle native queries in "begin ... end" block doesn't return any result set.

Connect to an Oracle database with Power BI Desktop

yingyinr_0-1669369657859.png

Best Regards

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @stesappo ,

If the data source is Oracle, you can refer the following link to get it by filling in SQL statement the Advanced options section just as below screenshot... Please note that Power BI Desktop doesn't support Oracle native queries that execute a stored procedure and Oracle native queries in "begin ... end" block doesn't return any result set.

Connect to an Oracle database with Power BI Desktop

yingyinr_0-1669369657859.png

Best Regards

amitchandak
Super User
Super User

@stesappo , In direct query you can use aggregated tables, that can be there in import or direct query mode 

 

https://learn.microsoft.com/en-us/power-bi/transform-model/aggregations-advanced

 

 

You can pass value using dynamic M parameter again in direct query

https://blog.crossjoin.co.uk/2020/10/25/why-im-excited-about-dynamic-m-parameters-in-power-bi/

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

So, if I've understood correctly, I can use dynamic M parameter in direct query to retrieve a dataset from a RDBMS (like Oracle) and have it as result in the Power BI in-memory database, correct?

 

Regards

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.