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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
cgil
Advocate I
Advocate I

IBM DB2 with Parameters

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: 

cgil_0-1611836969366.png

 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

4 REPLIES 4
mahoneypat
Microsoft Employee
Microsoft Employee

Please clarify what you mean.  Can you not change the value in the parameter to get different results?

Pat

 





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI 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:

cgil_0-1611903929897.png

 

Thanks!

mahoneypat
Microsoft Employee
Microsoft Employee

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.

Power BI Introduction: Working with Parameters in Power BI Desktop —Part 4 - Simple Talk (red-gate.c...

 

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI 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.

 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors