Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi all!
I have an IBM DB2 connection and I want to add a parameter into a where clause.
I can do that but the thing is that if I do like this:
I can not change the origen in the configuration options.
Is there any way to that with the posibility of change the origin after?
Thank you so much
Please clarify what you mean. Can you not change the value in the parameter to get different results?
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Hi!!
No, I can change the value of the parameter but, I put the parameter into the query I have disable this option:
Thanks!
You can use a parameter that holds the database name and use it in place of your redacted part of Sql.Database( ). Or you can use parameters in your where clause or other parts of your SQL statement.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
If I use the parameters as a a part of my sql statement after I can not change the origin of data without change it in the Query.
The parameter that appears in the first picture works perfectly but the thing is after that when I need to change the origin on the configuration option you can see that is disable.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.