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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Can we call our custom function written in oracle from the power bi direct query

Hi,

 

Can we call our custom  function written in oracle from the power bi direct query??

 

 

Please reply.

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

I confirmed it internally, it's supported. 

"The SQL statement in advanced option is sent to Oracle server to execute so as long as it’s a valid query including using function, PBI supports it."

 

q1.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

I confirmed it internally, it's supported. 

"The SQL statement in advanced option is sent to Oracle server to execute so as long as it’s a valid query including using function, PBI supports it."

 

q1.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-qiuyu-msft ,

 

is there a way to execute a package and get a table in response ?

 

The package have a function in wich i pass 2 parameters, something like this:

 

Oracle.Database("database", [HierarchicalNavigation=true, Query="
SELECT *
FROM TABLE(dbo.Package_name.function_name('"& P_1 &"', '"& P_2 &"'))
"])

 

The output says i can't have more than one row as response. There's a way around it ?

 

Thak you in advance.

v-qiuyu-msft
Community Support
Community Support

Hi @Anonymous,

 

Based on my test, the same query to call Oracle function in SQLdeveloper can be executed in Power BI desktop DirectQuery as well. But I will double confirm it internally, will update here once I get information. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.