cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Resolver I
Resolver I

How to set up input parameter field for end user to pass an ID to a dynamic sql query

Hi , 

 

I understand we can set up parameter and link to SQL "direct query" in Power BI query Editor.
I would like to set up a text box for customer ID and let end user to type in the ID, similar to search on slicer.  Once typed in I would like to let end user click apply and pass the input value as parameter value to the SQL query. 

 

I am not sure how to link the input text to the Parameter value. any help will be much appreciated. 

 

is this possible in Power BI Desktop ?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: How to set up input parameter field for end user to pass an ID to a dynamic sql query

HI @dimsandfacts ,

Current it is impossible to pass visual data to query table side.
I'd like to suggest you use query parameters to parameterize your connection string or filters, then you can simply modify these parameters to integrate with query table records.

Deep Dive into Query Parameters and Power BI Templates 

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

4 REPLIES 4
Highlighted
Super User IV
Super User IV

Re: How to set up input parameter field for end user to pass an ID to a dynamic sql query

@dimsandfacts you cannot pass value from slicer or other ways to power query exept using parameters. 

 

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Resolver I
Resolver I

Re: How to set up input parameter field for end user to pass an ID to a dynamic sql query

thanks for your reply. can we pass what we type in filter field  to parameter ?

 

 

 

Highlighted
Super User IV
Super User IV

Re: How to set up input parameter field for end user to pass an ID to a dynamic sql query

@dimsandfacts unfortunately not.






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Highlighted
Community Support
Community Support

Re: How to set up input parameter field for end user to pass an ID to a dynamic sql query

HI @dimsandfacts ,

Current it is impossible to pass visual data to query table side.
I'd like to suggest you use query parameters to parameterize your connection string or filters, then you can simply modify these parameters to integrate with query table records.

Deep Dive into Query Parameters and Power BI Templates 

Using the Power BI Service Parameters to change connection strings (To possibly change between Dev 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Galleries

Galleries

Looking for inspiration on how to present your data? Need instructional videos? Check out our Galleries!

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors