# Kibana Visualizing Array fields in Dashboards

**URL:** https://discuss.elastic.co/t/kibana-visualizing-array-fields-in-dashboards/297141
**Category:** Kibana
**Created:** [February 14, 2022, 12:47pm UTC](https://discuss.elastic.co/t/kibana-visualizing-array-fields-in-dashboards/297141 "2022-02-14T12:47:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![chandima\_jayamina](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/chandima_jayamina/32/99168_2.png) [@chandima\_jayamina](https://discuss.elastic.co/u/chandima_jayamina)
#### Post date: [February 14, 2022, 12:47pm UTC](https://discuss.elastic.co/t/kibana-visualizing-array-fields-in-dashboards/297141/1 "2022-02-14T12:47:29Z")

</div>

Hi I have created an array for family details.

filter {  
mutate {  
add\_field =\> {"employee.family"=\>"%{familyMember}"}  
}  
}

So in here employee.family =["mom", "son", "daughter"]

I created Visualisation on how many employees have sons, daughters etc.

But when i filter the dashboard employee.family:"son" it shows mom,father also.

This is because employees have both son and mother in array. But I need to show son value in dashboard.

Need a solution on this.

---

<div class="post-metadata">

### Author: ![Tomo\_M](https://avatars.discourse-cdn.com/v4/letter/t/848f3c/32.png) [@Tomo\_M](https://discuss.elastic.co/u/Tomo_M)
#### Post date: [February 15, 2022, 3:56pm UTC](https://discuss.elastic.co/t/kibana-visualizing-array-fields-in-dashboards/297141/2 "2022-02-15T15:56:21Z")

</div>

Which kind of visualization you want? Sharing the current visualization and the picture of what you want.  
Most visualization can visualize terms count, which is the number of employees who have sons.

If you want to aggregate the number of "son" (one employee have multiple "son"s in the array), it is a bit complicated and you need script.

---

<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: [March 15, 2022, 3:56pm UTC](https://discuss.elastic.co/t/kibana-visualizing-array-fields-in-dashboards/297141/3 "2022-03-15T15:56:43Z")

</div>

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