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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! 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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.

Top Solution Authors