# Can I use the TSVB gauge vizualisation to show the value of a field of the most recent document in a timeframe?

**URL:** https://discuss.elastic.co/t/can-i-use-the-tsvb-gauge-vizualisation-to-show-the-value-of-a-field-of-the-most-recent-document-in-a-timeframe/336051
**Category:** Kibana
**Created:** [June 15, 2023, 7:59am UTC](https://discuss.elastic.co/t/can-i-use-the-tsvb-gauge-vizualisation-to-show-the-value-of-a-field-of-the-most-recent-document-in-a-timeframe/336051 "2023-06-15T07:59:30Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Harold\_Van\_der\_Veken](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/harold_van_der_veken/32/113858_2.png) [@Harold\_Van\_der\_Veken](https://discuss.elastic.co/u/Harold_Van_der_Veken)
#### Post date: [June 15, 2023, 7:59am UTC](https://discuss.elastic.co/t/can-i-use-the-tsvb-gauge-vizualisation-to-show-the-value-of-a-field-of-the-most-recent-document-in-a-timeframe/336051/1 "2023-06-15T07:59:30Z")

</div>

Suppose my timeframe is last week. The most recent document has a field 'online\_systems' with a value = 4. Can I show this value in gauge?

Or are there other options to show such a value?

---

<div class="post-metadata">

### Author: ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)
#### Post date: [June 15, 2023, 10:35pm UTC](https://discuss.elastic.co/t/can-i-use-the-tsvb-gauge-vizualisation-to-show-the-value-of-a-field-of-the-most-recent-document-in-a-timeframe/336051/2 "2023-06-15T22:35:59Z")

</div>

I would recommend using lens gauge. Then you can set value to `Last value`.

 ![Screen Shot 2023-06-15 at 4.37.12 PM](https://us1.discourse-cdn.com/elastic/original/3X/e/3/e3cd39a4a3e7c510b0b156933058d9c5015eabde.png)

In TSVB, you can get a similar effect by selecting `Top hit` aggregation.

---

<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: [July 13, 2023, 10:36pm UTC](https://discuss.elastic.co/t/can-i-use-the-tsvb-gauge-vizualisation-to-show-the-value-of-a-field-of-the-most-recent-document-in-a-timeframe/336051/3 "2023-07-13T22:36:25Z")

</div>

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