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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

Enabling parameter in Desktop

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.

 

 

 

Himanshu_13_0-1646743552326.png

 

2 REPLIES 2
Anonymous
Not applicable

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

 

amitchandak
Super User
Super User

@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

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

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.