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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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