Forum Discussion

paulvans182's avatar
paulvans182
Icon for Helper III rankHelper III
5 years ago
Solved

Slicer: Relative Date - Dynamic Anchor Date

Good afternoon,

 

I wonder if anyone can help me. 


I have a data model where the data is shows data between September 2018 and, currently, May 2020.  

 

I am trying to work with a Relative Data slicer to allow the user to view data and charts for the Last X Days/Weeks/Months/Years. 

 

However, currently, even though there is no data after May 2020, if the user selects the last 30 days for example, no data is returned because it is showing the date range between August 2020 and September 2020.

 

I have seen that there is an Anchor Date option, where I can hard code the latest date I would like to include in my date range.  However, when new data is consumed for May-August (for example), it would then exclude this data until I manually change the Anchor date.  

 

Is there a way I can dynamically set the Anchor date by using a Measure or some other method?

 

Thanks for the help

 

Kind regards,

Paul

3 Replies