# Date range as metric

**URL:** https://discuss.elastic.co/t/date-range-as-metric/265675
**Category:** Kibana
**Created:** [February 26, 2021, 11:57pm UTC](https://discuss.elastic.co/t/date-range-as-metric/265675 "2021-02-26T23:57:47Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sramya](https://avatars.discourse-cdn.com/v4/letter/s/c89c15/32.png) [@sramya](https://discuss.elastic.co/u/sramya)
#### Post date: [February 26, 2021, 11:57pm UTC](https://discuss.elastic.co/t/date-range-as-metric/265675/1 "2021-02-26T23:57:47Z")

</div>

I am new to Kibana and want to know if this is possible.  
My app makes service calls and many times it gets zero transactions and a few times it receives transactions.  
I want to create a table that may look like this

**Service calls**** NoofTxnsFeteched ****Date time range**  
GET\_1 1000 2021-02-26 21:26:33.206Z--- 2021-02-26 23:26:33.206Z

Is it possible?

---

<div class="post-metadata">

### Author: ![Marco\_Liberati](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/marco_liberati/32/82953_2.png) [@Marco\_Liberati](https://discuss.elastic.co/u/Marco_Liberati)
#### Post date: [March 1, 2021, 9:30am UTC](https://discuss.elastic.co/t/date-range-as-metric/265675/2 "2021-03-01T09:30:52Z")

</div>

Hi @sramya , and welcome to our community!

Maybe this is not exactly what you are looking for, but I thought it is pretty close: in Lens there's the feature of customize time intervals for date histograms. While it won't print the dates exactly like your example, the combination of cell date + header interval may be enough.

In order to use reproduce a scenario similar to yours I've used the logs sample data, and goings through the following steps:

- Open Lens and pick the Datatable visualization
- Drag the "Records" field to the "Metrics" panel in order to have a count of entries
- Drag the date field (in my case of sample data is "@timestamp") to the "Break down by" panel
- Click on the "@timestamp" just configured in the "Break down by" panel to open a configuration panel, click on the "Customize time interval" and customize as will
- you see now the table will show a header with "@timestamp per day" (or minute/hours... depending on your configuration)
- In your table I can see you have the "Service calls" which probably is another "Break down by" criteria. In the sample data I've used the "tags.keyword" to replicate a similar scenario, dragging it to the "Break down by" panel as well.

In case I've misunderstood your issue, may I ask to give some more details on your use case?

---

<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: [March 29, 2021, 9:31am UTC](https://discuss.elastic.co/t/date-range-as-metric/265675/3 "2021-03-29T09:31:20Z")

</div>

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