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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
How can I connect to an SQL Server database and, in the Advanced Options SQL Statement, filter the connection string with a parameter.
I mean something in the advanced option like:
"select * from product where product_name = xxxxxx"
And this xxxxxx is a parameter that cames from a querystring.
So, according with the value of the parameter, the connection between the Power BI and SQL will just get the data filtered by that parameter. And this will be automatically and dynamic (everytime parameter automatically change, the data that cames from the connection also change).
Is it possible? If it is possible, how can I do it?
Thanks,
Maria Buzaglo
Solved! Go to Solution.
You can edit in the advanced options to filter with parameters:
You can try use LEFT JOIN to meet your need, you need two tables in SQL to filter parameters.
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name;You can refer this.
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
You can edit in the advanced options to filter with parameters:
You can try use LEFT JOIN to meet your need, you need two tables in SQL to filter parameters.
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name;You can refer this.
Best Regards,
Link
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 19 | |
| 13 | |
| 10 | |
| 9 | |
| 7 |
| User | Count |
|---|---|
| 48 | |
| 41 | |
| 39 | |
| 25 | |
| 25 |