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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Nooby
Helper I
Helper I

Date Slicer - Restricting Min and Max Date

Hello All,

 

The slicer already sets the min and max date from the column pointed.

 

But,

 

the end user is able to select any date from calendar dropdown.

 

Can I restrict the end user? I need that field to be invisible, or at least not pickable.

 

Thank you!restrict calendar.png

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Nooby ,

 

Based on my test, I created a date table only contains date from 3/1/2020 to 3/8/2020, yet i still can select date between 3/1/2020 or after 3/8/2020 from calendar dropdown.

I'm afraid we can't restricting min and max date for calendar dropdown currently but I'd like to suggest you to submit this as an idea through the below link.

https://ideas.powerbi.com/forums/265200-power-bi-ideas.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
Anonymous
Not applicable

Hi @Nooby ,

 

Based on my test, I created a date table only contains date from 3/1/2020 to 3/8/2020, yet i still can select date between 3/1/2020 or after 3/8/2020 from calendar dropdown.

I'm afraid we can't restricting min and max date for calendar dropdown currently but I'd like to suggest you to submit this as an idea through the below link.

https://ideas.powerbi.com/forums/265200-power-bi-ideas.

 

Best Regards,

Jay

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

MFelix
Super User
Super User

Hi @Nooby,

On the filter pane you can select the slicer filter and determine the dates you want in the slicer so people will only see the interval you want.

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



Hello MFelix,

 

I did so and you can restrict the "initial" dates, that's right. And people see what I want but they still can change the dates, even if that date interval doesn't have any data.

 

When you click on it, you can go back like 20 years ago. I cannot see any restriction for "not being able to select date". Maybe it's something easy but I cannot find it.

 

Thank you.

 

PaulDBrown
Community Champion
Community Champion

@Nooby 

 

Not sure what you mean by "they still can change the dates, even if that date interval doesn't have any data."

As @MFelix suggests, you can restrict the dates using the filter pane. If you don't want users to meddle with the filter on the filter pane, there is an option to either hide or block the filter:

2020-03-08.jpg

 

If you want the visual to display data with no blanks, you can add the measure to the filter pane and select "is not blank":

Not blank.JPG

 

Does that help?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Sorry if my explanation was vague.

@PaulDBrown ,

1- I need a date slicer, must be "between" style. This is a must asked by the customer.

 

001.png

 

my data starts from 1st October 2019 and when I add the field it automatically sets the earliest date, that's fine.

I also added the filter as you suggested.

 

2) I save it (I'm on desktop), I push it to the online service and everything is fine.

 

I open the report, I see the dates correct. Until I click on the slicer; as you can see I'm able to select before the earliest date set by me. This screenshot is from browser, user interface.

 

002.png

 

End user: "If I'm able to select, I want my report to start from that date. If I don't have the data, I don't want to be able to select, it confuses me because I'm end user not a nerd"

 

Long story short, my starting date shouldn't be able to be changed, which is 1st October 2019.

eg. 2nd October 2019 is okay, July 2015 is not okay.

 

 

Thank you people.

 

Hi @Nooby,

How is your slicer column made? Is it from a data column from your model?

One option can be having dare table only for slicer that would start and end within the specific dates you need.

Regards

Miguel Félix


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

Proud to be a Super User!

Check out my blog: Power BI em Português



PaulDBrown
Community Champion
Community Champion

@Nooby 

 

Here is an example including a slicer. I have restricted the dates in both the slicer and the visual using the filter on the filter pane (the settings in Desktop):

Slicer.JPGVisual.JPG

 

And how this is rendered in the service:

Slicer service.JPG

 

Visual Service.JPG

 

As it is, you can actually select a previous date in the slicer (so I see what you mean), but since the visual is also resctricted it won't affect the visual. (In my opinion, if there is a filter on the date slicer, you shouldn't be able to select dates outside the values set in the slicer. But at the moment, that seems to be how it works- looks like a bug to me!).





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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