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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I have a situation where I have a query where I have declared the start date and end date in the query, when I run the complete query on Power BI it gives me the output but I want to change the filters i.e start date and end date on Power BI end only and also wish to have the same as filters or if possible wish to use them as slicer.
Please let me know how to go about the same.
Hi @Anonymous ,
It's not supported to pass the slicer value to SQL statement.
Check if query parameters in Power BI Desktop suits your needs.
https://docs.microsoft.com/en-us/power-bi/connect-data/desktop-dynamic-m-query-parameters
https://reevessmith.wordpress.com/2014/08/19/power-query-and-stored-procedures-with-parameters/
Best Regards,
Jay
@Anonymous , you can use Power query parameters. But I doubt you can use a slicer on that. If is direct query, you can think of dynamic M parameters
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 57 | |
| 43 | |
| 40 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 171 | |
| 104 | |
| 90 | |
| 44 | |
| 44 |