# Kibana Lens - Cannot cutomize timestamp on several months, weeks or years

**URL:** <https://discuss.elastic.co/t/kibana-lens-cannot-cutomize-timestamp-on-several-months-weeks-or-years/327156>\
**Category:** Kibana\
**Tags:** lens\
**Created:** [March 7, 2023, 8:40am UTC](https://discuss.elastic.co/t/kibana-lens-cannot-cutomize-timestamp-on-several-months-weeks-or-years/327156 "2023-03-07T08:40:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xchess64](https://avatars.discourse-cdn.com/v4/letter/x/7c8e57/32.png) [@xchess64](https://discuss.elastic.co/u/xchess64)\
**Post date:** [March 7, 2023, 8:40am UTC](https://discuss.elastic.co/t/kibana-lens-cannot-cutomize-timestamp-on-several-months-weeks-or-years/327156/1 "2023-03-07T08:40:05Z")

</div>

I am creating a Lens Visualization on Kibana 7.17  
When I try to customize my timestamp to aggregate data on several days, I can do it easily

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/8/a/8aebae51c5ee912b6d11f83953bd5933e81f127f.png)

However, when I try to aggregate my data on several weeks, months or years, it is greyed and reset to 1. I cannot aggregate for instance on 3 months to have a quater.

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/4/2/42e8a7380e3969f478c417a9f8a3aa7624610826.png)

The same problem appears on weeks, and years.

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [March 9, 2023, 1:31pm UTC](https://discuss.elastic.co/t/kibana-lens-cannot-cutomize-timestamp-on-several-months-weeks-or-years/327156/2 "2023-03-09T13:31:15Z")

</div>

Hi Pat. According to the [documentation](https://www.elastic.co/guide/en/elasticsearch/reference/8.6/search-aggregations-bucket-datehistogram-aggregation.html#calendar_intervals) not possible for Elasticsearch to have a `calendar_interval` of multiple quantities. That is why Lens is disabling the field.

Instead of 3 months you may try using `quarter` to get an interval of one quarter.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 6, 2023, 1:31pm UTC](https://discuss.elastic.co/t/kibana-lens-cannot-cutomize-timestamp-on-several-months-weeks-or-years/327156/3 "2023-04-06T13:31:34Z")

</div>

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