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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
ninoyquinita
New Member

Date Slicer Range using Between

Hi Everyone,

 

First time here. Just need your help if someone of you did the date range with the sample below.

 

Using Slicer Type "Between"

 

When selecting start date "07/15/2019", end date will automatically add 30 days from the selected start date.

 

So Start Date = "07/15/2019" -  End Date = "08/14/2019"

 

Thank you in advance.

3 REPLIES 3
MattAllington
Community Champion
Community Champion

Are you saying it does do this already, or are you saying you want it to behave this way?  Also, do you want the user to be able to change the default period from 30 days?



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Yes, I want it on that way. If it is possible that the user can change the default period from 30 days - that would be better. But for now, We are looking for something that when the user select the first date on the Date Slicer, end date will automatically add 30 days.

You can't automatically set a between slider to do this.  How many measures do you have?  Conceptually you could use a list slicer for date, a what if slicer for period (set to 30 days default) and write a measure that will automatically apply 30 days.  You could change the what if slicer to the number of days you want.  But this approach requires you to write a measure that will look at the slicer and grab the date and number of days. If you have lots of measures, they will all need editing.



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.