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
Mahi1827
Resolver I
Resolver I

How to set default date ranges for both date slicers in one report

Hi,

I have two date slicers and i would like to set default date ranges when open the report and also able to change any other date ranges

 

date slicer 1 should show default date range as start date is "current month 1st date and end date is current date".

date slicer 2 should show deafult date range as start date is "current date-5 and end date is current date".


date slicer 1: to set default date range i have created 2 columns
column1 for start date: IF('DATE'[YEAR]=YEAR(TODAY()) && 'DATE'[MONTH]=MONTH(TODAY()),1,0)
column2 for end date: IF('DATE'[date]<=TODAY(),1,0)

date slicer 2: to set default date range i have created 2 columns
column3 for start date: IF('DATE'[date]<=TODAY()-5,1,0)
column4 for end date: IF('DATE'[date]<=TODAY(),1,0)

i have used above four columns in both date slicers and set date filter=1 its working fine only when navigating the report data but when i open the report by default date ranges not working..

 

Please suggest how to set above default date ranges for both date slicers.

Thank you in advane for your help and suggestions.

 

Thanks,
Mahi1827

1 REPLY 1
amitchandak
Super User
Super User

@Mahi1827 , As of now, you can not set a date range, the only solutions are like today, this month/year etc

 

Refer: https://www.youtube.com/watch?v=hfn05preQYA

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.

Top Solution Authors