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
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 III
Advocate III

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.