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

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

Reply
shahid_tanmoy00
Regular Visitor

Can I use a textbox input into a sql query source

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

2 REPLIES 2
ppm1
Solution Sage
Solution Sage

Have you considered using direct query mode with a dynamic M parameter?

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

 

Pat

Microsoft Employee

Can you show me as in a code how I would do this? 

Helpful resources

Announcements
October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.

Top Kudoed Authors