# Kibana 7.12.0 Index fields are summed by day

**URL:** <https://discuss.elastic.co/t/kibana-7-12-0-index-fields-are-summed-by-day/280860>\
**Category:** Kibana\
**Created:** [August 10, 2021, 2:15am UTC](https://discuss.elastic.co/t/kibana-7-12-0-index-fields-are-summed-by-day/280860 "2021-08-10T02:15:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhyp](https://avatars.discourse-cdn.com/v4/letter/z/91b2a8/32.png) [@zhyp](https://discuss.elastic.co/u/zhyp)\
**Post date:** [August 10, 2021, 2:15am UTC](https://discuss.elastic.co/t/kibana-7-12-0-index-fields-are-summed-by-day/280860/1 "2021-08-10T02:15:49Z")

</div>

Hi  
I have an index. Its structure is as follows:

1. Date

2. Hour time

3. Number of hours

4. Number of dates

I want the number of dates to automatically add up by day.

Calculation formula: Number of dates = Number of dates + Number of hours (must be of the current day).

Can it be achieved? Or any suggestions? 🙂

---

<div class="post-metadata">

**Author:** ![Aaron\_Caldwell](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/aaron_caldwell/32/45755_2.png) [@Aaron\_Caldwell](https://discuss.elastic.co/u/Aaron_Caldwell)\
**Post date:** [August 13, 2021, 10:55pm UTC](https://discuss.elastic.co/t/kibana-7-12-0-index-fields-are-summed-by-day/280860/2 "2021-08-13T22:55:06Z")

</div>

Hello,

You might want to consider [runtime fields](https://www.elastic.co/guide/en/kibana/7.14/managing-index-patterns.html) to hold the new value and [date math](https://www.elastic.co/guide/en/elasticsearch/reference/7.x/common-options.html#date-math) to perform the calculation of adding the fields together.

Regards,  
Aaron

---

<div class="post-metadata">

**Author:** ![sandeep76574](https://avatars.discourse-cdn.com/v4/letter/s/e95f7d/32.png) [@sandeep76574](https://discuss.elastic.co/u/sandeep76574)\
**Post date:** [August 14, 2021, 7:06am UTC](https://discuss.elastic.co/t/kibana-7-12-0-index-fields-are-summed-by-day/280860/3 "2021-08-14T07:06:16Z")

</div>

[details="Summary"]

[/details]

Sorry! We have moved! The new URL is: [https://www.google.com](https://www.google.com/)

You will be redirected to the new address in five seconds.

If you see this message for more than 5 seconds, please click on the link above!

---

<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:** [September 11, 2021, 7:06am UTC](https://discuss.elastic.co/t/kibana-7-12-0-index-fields-are-summed-by-day/280860/4 "2021-09-11T07:06:35Z")

</div>

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