Hoping someone can help me with this...
I've read the "Deep Dive into Query Parameters and Power BI Templates" article about the use of parameters in Power BI Desktop . Further to this, I've been trying - unsuccessfully - to make use of a parameter in a simple test SQL query that accesses an Oracle database.
Let's say I have a simple query:
SELECT col1, col2
FROM mytable
WHERE col3 = 'mytestvalue'
I then create a parameter called "myparam", which I'd like to use instead of the literal value:
SELECT col1, col2
FROM mytable
WHERE col3 = &myparam
I've tried various ways of expressing the parameter, e.g. &myparam& / :myparam / "&myparam&" but none have worked - I just get different Oracle errors raised, e.g. ORA-904: invalid identifier, ORA-1008 not all variables bound.
How should I express the parameter to get this to work?