Advance settings - Time filter quick ranges - Date math

Hello,

I'm try to create some custom time range filters. I would like to create two new ones named as follows:

This Year - Time range is from the beginning of the current year to now.
Last Year - Time range is from the beginning of the last year to the end of last year.

Is it possible to create these two custom time range filters using data math? Maybe the Advance settings for the time filter quick ranges can use other ways in creating what I want?

Mike

Hi @Amphagory

Kiabana -> Stack Management -> Advanced Settings

And just set them in the time picker

Time filter quick ranges

I think these are right

 {
    "from": "now/y",
    "to": "now",
    "display": "This Year"
  },
  {
    "from": "now-1y/y",
    "to": "now-1y/y",
    "display": "Last Year"
  },

Hello,

I think there is a copy and paste issue with the Last Year, I think it should look like:

  {
    "from": "now/y-1y",
    "to": "now-1y/y",
    "display": "Last Year"
  },

Thanks for your answer!

Mike

1 Like

Yeah ... probably Right I did it quick ... Good QA :slight_smile:

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.