# Exclude specific bucket from metric

**URL:** <https://discuss.elastic.co/t/exclude-specific-bucket-from-metric/234030>\
**Category:** Kibana\
**Created:** [May 24, 2020, 6:54am UTC](https://discuss.elastic.co/t/exclude-specific-bucket-from-metric/234030 "2020-05-24T06:54:11Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GilKor](https://avatars.discourse-cdn.com/v4/letter/g/97f17d/32.png) [@GilKor](https://discuss.elastic.co/u/GilKor)\
**Post date:** [May 24, 2020, 6:54am UTC](https://discuss.elastic.co/t/exclude-specific-bucket-from-metric/234030/1 "2020-05-24T06:54:11Z")

</div>

Hi,  
I made a data table that takes the top hit from lineCoverage by the project, repository and image tag as shown:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/6/2/62db6dc197544d063eba417a7d90844cac3b95dc.png)

My problem is - I only want the latest image tag. How can I exclude the Image tag from the calculation so I only get the latest one?

---

<div class="post-metadata">

**Author:** ![GilKor](https://avatars.discourse-cdn.com/v4/letter/g/97f17d/32.png) [@GilKor](https://discuss.elastic.co/u/GilKor)\
**Post date:** [May 24, 2020, 7:37am UTC](https://discuss.elastic.co/t/exclude-specific-bucket-from-metric/234030/2 "2020-05-24T07:37:17Z")

</div>

SOLVED

I had to put the image tag also in the metric box under "top hit"

---

<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:** [June 21, 2020, 7:37am UTC](https://discuss.elastic.co/t/exclude-specific-bucket-from-metric/234030/3 "2020-06-21T07:37:17Z")

</div>

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