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
shera276
Advocate I
Advocate I

Date Slicers and Relative Date filtering - Allowing users to updates dates beyond date bounds

Hi - I'd like to default date slicers to last month (updating each month automatically) but allow users to change the dates if necessary.  Adding a relative date filter to that slicer accomplishes the first part but it seems that it doesn't allow the user to change the dates to anything outside the dates selected in the filter.  .e.g  I set the relative date filter to last month. The date slicer that defaults to 12/1/17-12/31/17.  I'm unable to update the date filters to anything before 12/1/17 or anything after 12/31/17 (only in between).  Is there a way to accomplish this?

 

Thanks,

 

S

2 REPLIES 2
vyankarla
Frequent Visitor

Hi Shera - I have a simillar requirement and just wanted to check if you were able to solve it .  In my case , I want my report to default to last 6 months ( which can be done using Relative date slicer) , but give user option to chose a custom date range . 

 

I tried adding 2 date slicers

1. Slicer 1 :  Relative date slicer  set to Last 6 calendar months

2. Slicer 2 :  date range slicer 

 

Removed all interactions on Slicer1 , but set it to filter Slicer 2 .   This part seems to be working , but my visuals are not reflecting data when user selects a date range in slicer 2 .   

 

Thanks  

v-qiuyu-msft
Community Support
Community Support

Hi @shera276,

 

You can create a calculated column to decide whether it's a date in Last Month or not. You can refer to this blog: https://blogs.msdn.microsoft.com/lukaszp/2015/08/08/finding-the-latest-date-in-power-bi-desktop/

 

Then you can add two slicers in the report, one contains actual dates values, another contains the new calculated column. When you save the report, select the value indicates the Last Month in the first slicer. Another slicer without any value selected. When the end user view the report, they can unselect Last Month, then select expected values in another slicer. 

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.