# Visual Builder last value

**URL:** <https://discuss.elastic.co/t/visual-builder-last-value/142786>\
**Category:** Kibana\
**Created:** [August 2, 2018, 4:08pm UTC](https://discuss.elastic.co/t/visual-builder-last-value/142786 "2018-08-02T16:08:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adithep](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adithep](https://discuss.elastic.co/u/adithep)\
**Post date:** [August 2, 2018, 4:08pm UTC](https://discuss.elastic.co/t/visual-builder-last-value/142786/1 "2018-08-02T16:08:07Z")

</div>

I have this visual builder

 ![FireShot%20Capture%206%20-%20Metric%20CPRP%2030%20-%20Kibana_%20-%20https___1c0f1b97b2b14a8797d65dff99e](https://us1.discourse-cdn.com/elastic/original/3X/2/b/2b92cba5485f737612db663f62350f661c7c0723.png)

As you can see the last value is 47291.34

When I change time series to Top N I get

 ![FireShot%20Capture%207%20-%20Metric%20CPRP%2030%20-%20Kibana_%20-%20https___1c0f1b97b2b14a8797d65dff99e](https://us1.discourse-cdn.com/elastic/original/3X/2/4/24b0c42281e1057d5bfeb78ad3887860008e702a.png)

It shows 0. Is there a way for it to show 47291.34 ( The last value) instead of 0?

---

<div class="post-metadata">

**Author:** ![Stacey\_Gammon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stacey_gammon/32/14025_2.png) [@Stacey\_Gammon](https://discuss.elastic.co/u/Stacey_Gammon)\
**Post date:** [August 2, 2018, 6:10pm UTC](https://discuss.elastic.co/t/visual-builder-last-value/142786/2 "2018-08-02T18:10:06Z")

</div>

Looks like you have no data at 05-01 so I think that's why top N is 0. If you set your time range to end at 4-28, does it work then?

---

<div class="post-metadata">

**Author:** ![adithep](https://avatars.discourse-cdn.com/v4/letter/a/ccd318/32.png) [@adithep](https://discuss.elastic.co/u/adithep)\
**Post date:** [August 3, 2018, 5:02am UTC](https://discuss.elastic.co/t/visual-builder-last-value/142786/3 "2018-08-03T05:02:58Z")

</div>

So there is no way to do it without setting time range?

Is there a plan to include math feature into normal visualization?

My use case is I need to perform math over sum of 2 field and show its last existing value.

Normal visualization always shows last value no matter what time range is but it cannot perform math over it. Is there a work around of any kind for this use case?

Or in the TSVB I can say Over all Min or Over all Max, and the Top N will now display value. Isn't there something like "Always first", or "Always last"?

---

<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:** [August 31, 2018, 5:02am UTC](https://discuss.elastic.co/t/visual-builder-last-value/142786/4 "2018-08-31T05:02:59Z")

</div>

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