How to set up dynamic date range?

sramaswamy
sramaswamy Member
edited March 2023 in Datasets

I need to set up a rolling 24-month window on the X-axis such that every month, one month gets added at the end of the scale and one month is dropped off in the beginning.

For instance, in Nov 2015, the scale on the X-axis should be from Nov 2013 - Nov 2015.

In Dec 2015, the scale should automatically change and display from Dec 2013 - Dec 2015.

 

Could someone please tell me how to do this?

 

Thanks so much!

Best Answer

  • Godzilla
    Godzilla Contributor
    Answer ✓

    you can use the time grain at the very top of each card to do this. Make sure you use the date field you will be using for your x axis  as your 'Date Range field' and then you should be able to use the time grain to do this.

    TimeGrain.JPG

    Domo Arigato!

    **Say 'Thanks' by clicking the thumbs up in the post that helped you.
    **Please mark the post that solves your problem as 'Accepted Solution'

Answers

  • Godzilla
    Godzilla Contributor
    Answer ✓

    you can use the time grain at the very top of each card to do this. Make sure you use the date field you will be using for your x axis  as your 'Date Range field' and then you should be able to use the time grain to do this.

    TimeGrain.JPG

    Domo Arigato!

    **Say 'Thanks' by clicking the thumbs up in the post that helped you.
    **Please mark the post that solves your problem as 'Accepted Solution'
  • Works like a charm! Thanks!