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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
vfx661
Advocate I
Advocate I

Date range slicer to start and end date M parameters

Is it possible to use a date range slicer (a slicer of type 'between') to populate a start date parameter and an end date parameter for use in an M query?

I've tried creating a list of dates, creating a date parameter, binding a date field to that parameter, setting it to multiple values and then creating a slicer from the date field.  I was hoping it would return a list of dates, however instead it gives me an incompatibility warning.  Perhaps it cannot be done yet?

3 REPLIES 3
Joe_Barry
Super User
Super User

Hi @vfx661 

 

If I understood you correctly you would like to create a Parameter where you can change the date range?

 

There could be other solutions, with this one you can change the dates in Power BI Service after the report has been published.

 

Create a Start and End Date parameter, enter whatever value you need in both. Create filters with the new parameters on the table you would like to filter.

 

After publishing you can go to the Settings of the model and go to the parameters section to change the date range.

 

You can find more information here https://learn.microsoft.com/en-us/power-query/power-query-query-parameters

Joe




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Learn about the Star Schema, it will solve many issues in Power BI!

Date tables help! Learn more



LinkedIn
Let's connect on LinkedIn


Hi @Joe_Barry, thank you for the response.

To clarify, the requirements is for a date range slicer (a slicer of type 'between') to populate the start and end date dynamic M parameter(s) in power bi desktop.  It can be one parameter (a list of dates) or two date parameters - I'm not fussed 🙂 

I can already create two such parameters independently and hook them up to two independent slicers, however that isn't as good a user experience as having a slider choose the start and end dates.  We have a range slider in Power BI - it seems like a very clear use case, however I haven't found anything on it.

Anonymous
Not applicable

Hi @vfx661 

 

One column field can be bound to only one dynamic M query parameter. So a date column cannot be bound to two dynamic M date parameters. Please refer to the considerations and limiatations of the following documentation:

Dynamic M query parameters in Power BI Desktop - Power BI | Microsoft Learn

vjingzhanmsft_0-1722407413214.png

 

However, as it supports Multi-select, you can give this feature a try, maybe it helps.

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 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.

Top Kudoed Authors