# How to display count of all attributes in Kibana visualization

**URL:** <https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233>\
**Category:** Kibana\
**Created:** [September 3, 2021, 3:16am UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233 "2021-09-03T03:16:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sam\_Chats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_chats/32/94121_2.png) [@Sam\_Chats](https://discuss.elastic.co/u/Sam_Chats)\
**Post date:** [September 3, 2021, 3:16am UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/1 "2021-09-03T03:16:53Z")

</div>

My data has about 50 different attributes. I have created a dashboard in Kibana to display value distributions of some of these attributes based on the date filter at the top. I want to create one more visualization to show the count of data per attribute in a given time range. Currently, I can only select a particular attribute and perform operations on it. How can I select all the attributes from Terms for my visualization?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 3, 2021, 5:56am UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/2 "2021-09-03T05:56:43Z")

</div>

Welcome to our community! 😃

Can you show us an example of your document/event?

---

<div class="post-metadata">

**Author:** ![Sam\_Chats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_chats/32/94121_2.png) [@Sam\_Chats](https://discuss.elastic.co/u/Sam_Chats)\
**Post date:** [September 3, 2021, 2:29pm UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/3 "2021-09-03T14:29:15Z")

</div>

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/1/c13df9255b44e4e98820e35f317b66f035064dcc.png)  
I want to select all of these Terms for my visualization.

---

<div class="post-metadata">

**Author:** ![ghudgins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghudgins/32/138532_2.png) [@ghudgins](https://discuss.elastic.co/u/ghudgins)\
**Post date:** [September 8, 2021, 5:14pm UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/4 "2021-09-08T17:14:43Z")

</div>

if you want to report in a way that combines all of these fields you could try a runtime field that emits them all like...

```auto
emit(doc['domainAttributes.field1'].value + ' - ' + doc['domainAttributes.field2'].value + ' - ' + etc...);

```

not 100% sure what you're looking for though. a few more details about the visualization you're trying to build would help!

---

<div class="post-metadata">

**Author:** ![Sam\_Chats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_chats/32/94121_2.png) [@Sam\_Chats](https://discuss.elastic.co/u/Sam_Chats)\
**Post date:** [September 8, 2021, 11:19pm UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/5 "2021-09-08T23:19:19Z")

</div>

Hi Graham, thanks for replying. I am building a dashboard in Kibana where there is a top level time filter. When we select a time filter, the dashboard is updated and all the visualizations show data based on that time filter. I have more than 50 different attributes in my data. I have built visualizations for some of these attributes using aggregate functions. I want to create a new visualization (maybe like a table or dropdown) which can display the attributes for which data is flowing in the time range we select in the filter. Currently, when I am trying to build a visualization, as shown in the above screenshot, I can only select one value from Terms. I want to be able to have the entire Terms available at output and display all attributes as output of the visualization. Let me know if that helps.

---

<div class="post-metadata">

**Author:** ![ghudgins](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ghudgins/32/138532_2.png) [@ghudgins](https://discuss.elastic.co/u/ghudgins)\
**Post date:** [September 13, 2021, 7:38pm UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/6 "2021-09-13T19:38:15Z")

</div>

So you want to see top values by all fields' terms? Not sure Kibana can do that with the editors we have. you could try to write a custom visualization in [vega](https://www.elastic.co/guide/en/kibana/current/vega.html) (where you control the fetching and mapping of the results into a vega visualization). If i'm understanding what you're trying to do (which I might not 😅 ), i'd build a dashboard with various sections displaying the 50 fields on different panels so a user can tell what field they're looking at. you can fit quite a few panels on at once.

sorry I don't have any other ideas

---

<div class="post-metadata">

**Author:** ![Sam\_Chats](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sam_chats/32/94121_2.png) [@Sam\_Chats](https://discuss.elastic.co/u/Sam_Chats)\
**Post date:** [September 13, 2021, 10:54pm UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/7 "2021-09-13T22:54:18Z")

</div>

Thanks for the answer. Yes I thought so too that it was a Kibana limitation but still wanted to try my luck. 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 11, 2021, 10:55pm UTC](https://discuss.elastic.co/t/how-to-display-count-of-all-attributes-in-kibana-visualization/283233/8 "2021-10-11T22:55:12Z")

</div>

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