# Kibana dashboard vs discover (top 5 values)

**URL:** <https://discuss.elastic.co/t/kibana-dashboard-vs-discover-top-5-values/314072>\
**Category:** Kibana\
**Created:** [September 9, 2022, 3:12pm UTC](https://discuss.elastic.co/t/kibana-dashboard-vs-discover-top-5-values/314072 "2022-09-09T15:12:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_s/32/98686_2.png) [@Mark\_S](https://discuss.elastic.co/u/Mark_S)\
**Post date:** [September 9, 2022, 3:12pm UTC](https://discuss.elastic.co/t/kibana-dashboard-vs-discover-top-5-values/314072/1 "2022-09-09T15:12:12Z")

</div>

When using the "discover" mode, I hover over a text field and I can easily see the top 5 values.

However when trying to create a dashboard showing exactly the same thing, I cannot find a way to do so since "a text field is not aggregatable"

Is this a Lens limitation or am I doing something wrong?

Thank you!

---

<div class="post-metadata">

**Author:** ![bhavyarm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bhavyarm/32/22392_2.png) [@bhavyarm](https://discuss.elastic.co/u/bhavyarm)\
**Post date:** [September 9, 2022, 8:12pm UTC](https://discuss.elastic.co/t/kibana-dashboard-vs-discover-top-5-values/314072/2 "2022-09-09T20:12:47Z")

</div>

Hello,

So you cannot aggregate on a text field. You need to have the mapping set to keyword for you to be able to do that.

> **[Text type family | Elasticsearch Guide \[8.4\] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/text.html#text)**

For the existing text field - if you want to make it make it aggregatable -  
you have to do this:

```auto
Switching from a text field to a keyword field

If you previously used a text field to index unstructured machine-generated content, you can reindex to update the mapping to a keyword or wildcard field. We also recommend you update your application or workflow to replace any word-based full text queries on the field to equivalent term-level queries.

```

Here are our docs for keywords - [Keyword type family | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/keyword.html)

Thanks,  
Bhavya

---

<div class="post-metadata">

**Author:** ![Mark\_S](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mark_s/32/98686_2.png) [@Mark\_S](https://discuss.elastic.co/u/Mark_S)\
**Post date:** [September 10, 2022, 4:38pm UTC](https://discuss.elastic.co/t/kibana-dashboard-vs-discover-top-5-values/314072/3 "2022-09-10T16:38:35Z")

</div>

Thanks!

---

<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 8, 2022, 4:39pm UTC](https://discuss.elastic.co/t/kibana-dashboard-vs-discover-top-5-values/314072/4 "2022-10-08T16:39:07Z")

</div>

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