Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Previous date range based on slicer

Hi All, 

 

I have a set of data with corresponding dates, and a slicer to filter the data based on the selected date range.

 

I am trying to create a second table that looks at the input of the slicer, but presents the data in the previous equivalent period.

 

For example, the slicer would present the data range 01/07/2019 - 31/12/2019 (6 month period). I want one table to present the data from this range and another table that would look at the range 01/01/2019 - 01/07/2019. (i.e. previous 6 month period.)

 

How can I do this? I have looked at time intelligence functions but can only set intervals of fixed periods (months, days, years etc..)

 

Thank you

 

 

  • Anonymous's avatar
    Anonymous
    6 years ago

    HI Anonymous,

    I'd like to  suggest you take a look at below blog to know how to use DATE function to manually define filter range and do rolling calculations:

    Time Intelligence "The Hard Way" (TITHW)  

    Regards,

    Xiaoxin Sheng

3 Replies