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

View all the Fabric Data Days sessions on demand. View schedule

Reply
murali5431
Helper III
Helper III

Custom setting for date slicer

Hi,

 

I am building a dashboard which contains data from last 30 days to next 30 days based on "Arrival Date" field.

 

I am looking to create a date slicer with slider which defaults between oldest date (-30 days) to current date, while dashboard is launched. The user can then choose to change the dates based on his/her need.

 

Could you please assist?

 

Thanks in advance!

Muralidhar 

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@murali5431 , Ok, I have tried it you can check Power BI file attached currently we cannot select default date in Power BI but I have used bookmark for this




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
Super User

@murali5431 , Ok, I have tried it you can check Power BI file attached currently we cannot select default date in Power BI but I have used bookmark for this




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you.. @bhanu_gautam .. I will review the file and confirm.

bhanu_gautam
Super User
Super User

@murali5431 , You can create a dynamic date table which show +30 and -30 days by going to modelling tab and create a new table

 


DateRange =
VAR StartDate = TODAY() - 30
VAR EndDate = TODAY() + 30
RETURN
CALENDAR(StartDate, EndDate)

 

After that you can create one new measure from this table for default date range 

 


DefaultDateRange =
VAR MinDate = TODAY() - 30
VAR MaxDate = TODAY()
RETURN
IF(
SELECTEDVALUE('DateRange'[Date]) >= MinDate && SELECTEDVALUE('DateRange'[Date]) <= MaxDate,
1,
0
)

 

And add this measure in visual of the slicer and set the filter to show items where Default date range=1 and create a slider and between slicer




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam Thanks a lot for your quick response!

 

What I obtained currently is below, where current date at the end of the slider

murali5431_3-1719487474045.png

 

My objective is to obtain a slicer as below on launch, after which the user can drag the slider till end (+30 days), as needed.

murali5431_2-1719487428466.png

 

Hope this explains my requirement.

 

Thanks,

Muralidhar

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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 Solution Authors
Top Kudoed Authors