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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
shahid_tanmoy00
Regular Visitor

Using textbox input in Sql source Query possible?

Hi All :), 

 

I have a sql query that is connected to sql database server. 
I have a sql code that runs on a refresh but I want I want to build a tool out of it that restricts the code to whatever order number the user is looking for information about. 

 

I feel like this is not a thing in PowerBI but is there anyway a dax code in advanced editor can reference a textbox that is on the dashboard that a user has inputed a order number too. 

 

powerbisqlhelp.png

1 REPLY 1
Anonymous
Not applicable

Hi @shahid_tanmoy00 ,

 

Using textbox seems impossible. However, you can use parameters to dynamically change data source. Please refer to

How to Parameterize Data Sources in Power BI | phData

Change the Source of Power BI Datasets Dynamically Using Power Query Parameters - RADACAD

 

 

                                                                                                                                                         

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.           

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.