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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
verocorrea93
Regular Visitor

Query date parameters linked to a filter

Can anyone help me set up query date parameters that are connected to a filter in a report?

 

I have created two query parameters: StartDate and EndDate. I have used those in a query, where I'm getting a table from BigQuery and filtering so that the values in columns session_start_date are smaller than the EndDate parameter, and the values for session_end_date are larger than the StartEnd parameter. 

 

I want to be able to user filters in my report to dynamically change the values for StartDate and EndDate: however, when I add a slicer I can only see the parameters' current value, and not all the values it cna take on.

 

M query: 

verocorrea93_0-1723557468340.png

 Parameters:

verocorrea93_1-1723557547328.png 

verocorrea93_2-1723557617882.png

 

Parameter filter:

verocorrea93_3-1723557641872.png

 

Why can I only see June 1st on the slicer instead of all the dates on I had on the list when setting up the query parameter?

 

If you have any other ideas of how to dynamically query data using filters/slicers let me know 🙂

 

Thank you for your help!

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@verocorrea93 , That we can use in Direct Query Table 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
amitchandak
Super User
Super User

@verocorrea93 , That we can use in Direct Query Table 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 thank you for the helpful information. I followed the tutorial, and when I bind the field in the table to the parameter, it breaks. I get the following error:

verocorrea93_0-1723637397362.png


Do you know why that may be? 

 



Thank you @amitchandak 🙂

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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