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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MarkTarpey
New Member

Query Parameters on DataSets based on Oracle DataSources

Hi 

 

I am creating a DataSet using an Oracle DataSource and I'm trying to add Query Parameters. 

 

The substitution syntax is different

WHERE MyField = @MyParam in a SQL Server query

becomes

WHERE MyField = &MyParam in an Oracle query.

 

MyField one is NUMBER(4)

MyParam is an Integer

 

I've tried amending the syntax of the Query to use the Oracle format but can't get it to work properly - I keep getting Invalid Number errors.

Does anyone have any experience of this, or any examples of how they have used Query Parameters with Oracle datasources?

 

Thanks,

Mark

 

 

 

1 ACCEPTED SOLUTION
MarkTarpey
New Member

Hi,

 

thanks for the reply. I worked out the problem 

when using query parameters for an Oracle query in Paginated Reports 

 

Where Field1 = :Parameter

 

i.e. use ':' where SQL Server query would use '@'

 

View solution in original post

3 REPLIES 3
theov
Advocate II
Advocate II

This will help on thi subject. For creating a parameter from Orcale source or using a parameter in Orcale query.

https://www.youtube.com/watch?v=Qk9yLKtl8t8

MarkTarpey
New Member

Hi,

 

thanks for the reply. I worked out the problem 

when using query parameters for an Oracle query in Paginated Reports 

 

Where Field1 = :Parameter

 

i.e. use ':' where SQL Server query would use '@'

 

DataInsights
Super User
Super User

@MarkTarpey,

 

The post below may be helpful:

 

https://community.powerbi.com/t5/Desktop/Passing-user-selected-values-to-a-query-to-another-query/m-... 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
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.