cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
shera276 Regular Visitor
Regular Visitor

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
Moderator v-qiuyu-msft
Moderator

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

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.
vyankarla Frequent Visitor
Frequent Visitor

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

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  

Helpful resources

Announcements
Back to School Contest

Back to School Contest

Engage and empower students with Power BI!

MBAS Gallery

Watch Sessions On Demand!

Continue your learning in our online communities.

Summit Australia 2019

Summit Australia 2019

Travel to Melbourne and network with thousands of peers!

PBI Community Highlights

PBI Community Highlights

Check out what's new in the Power BI Community!

Top Ideas
Users Online
Currently online: 28 members 913 guests
Please welcome our newest community members: