Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello Community,
I have this SQL query for Oracle DB:
SELECT *
FROM
myTables
WHERE
OBS_DATE > (trunc(sysdate) - 365)
AND NAME in (
LIST OF VARIABLES
)
The LIST of VARIABLES is usually an alphanumeric number and it must have quotes:
for instance:
'PPF000000028300444', |
'PPF000000028300334' |
I would like to have a Parameter that I can udpate and holds a list of this codes, with commas and quotes.
Therfore, how can I have inside the above query a parameter with my LIST of VARIABLES?
Thank you in advance,
Luca.
Solved! Go to Solution.
So the secret is:
go into edit query -> advance editor -> put in the query NAME in ('"&PARAMETER_NAME&"').
since the parameter is aphanumeric: format such parameter as text.
Done.
So the secret is:
go into edit query -> advance editor -> put in the query NAME in ('"&PARAMETER_NAME&"').
since the parameter is aphanumeric: format such parameter as text.
Done.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |