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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.