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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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

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.

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.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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