# Comparison of data at a kibana dashboard

**URL:** <https://discuss.elastic.co/t/comparison-of-data-at-a-kibana-dashboard/342805>\
**Category:** Kibana\
**Created:** [September 12, 2023, 10:32am UTC](https://discuss.elastic.co/t/comparison-of-data-at-a-kibana-dashboard/342805 "2023-09-12T10:32:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Voula\_Mikr](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/voula_mikr/32/58451_2.png) [@Voula\_Mikr](https://discuss.elastic.co/u/Voula_Mikr)\
**Post date:** [September 12, 2023, 10:32am UTC](https://discuss.elastic.co/t/comparison-of-data-at-a-kibana-dashboard/342805/1 "2023-09-12T10:32:49Z")

</div>

Hi ,  
I have the below kind of data

```auto
counter1:
{
   "name":"name1",
   "vnf_type":"ZTS",
   "counter":"cpu",
   "value":"10",
   "event_time_stamp":"2021-02-15T02:44:19Z"
}

```

I would like to compare the value "value" of two type of "counter" at a specific period of "event\_time\_stamp". How can I achieve this?  
Thank you in advance.

---

<div class="post-metadata">

**Author:** ![ppisljar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ppisljar/32/11588_2.png) [@ppisljar](https://discuss.elastic.co/u/ppisljar)\
**Post date:** [September 12, 2023, 12:09pm UTC](https://discuss.elastic.co/t/comparison-of-data-at-a-kibana-dashboard/342805/2 "2023-09-12T12:09:37Z")

</div>

you could compare the values over time:

- go to visualizations, create new visualization, select Lens
- pull value field on the chart
- lens will create the chart, on the right you can see it created vertical axis with "median of value" ... click it, and change it to "last value of"
- click on advanced and under filter by enter `counter: "cpu"`
- now close the vertical axis config, and add a new one
- configure it just as above one, except that for filter you enter a different filter

if you want to show just the last value, create a new chart (Lens), select metric as a chart type  
for the metric select last value of "value" and for breakdown select top values of "counter"

---

<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:** [October 10, 2023, 12:10pm UTC](https://discuss.elastic.co/t/comparison-of-data-at-a-kibana-dashboard/342805/3 "2023-10-10T12:10:01Z")

</div>

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