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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

Reply
mhani
Frequent Visitor

User input to SQL statement in SQL Database query

Hello,

 

Is there a possibility to use user input from Power BI Report to change SQL statement from SQL Database query.

 

Like using parameters for SQL Database query in Power Query, but with the possibility to change the parameter in the front-end. 

 

Thanks in advance! 🙂

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@mhani , You can use the Dynamic M parameter in case of direct query on supported sources

 

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

3 REPLIES 3
mhani
Frequent Visitor

Hi again,

 

Just opening this, as I have another question.

Is there a way to query down in SQL Database with the value of pressing a datapoint in a visual.

 

So if a user click on a datapoint in a visual. It wil use that value to query down in SQL Database, and update other visuals with that data?

amitchandak
Super User
Super User

@mhani , You can use the Dynamic M parameter in case of direct query on supported sources

 

https://learn.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak Thanks for this solution, that was exactly what I was looking for 🙂

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.