# Add filter on dashboard not work

**URL:** <https://discuss.elastic.co/t/add-filter-on-dashboard-not-work/93987>\
**Category:** Kibana\
**Created:** [July 20, 2017, 4:46pm UTC](https://discuss.elastic.co/t/add-filter-on-dashboard-not-work/93987 "2017-07-20T16:46:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![damelys\_y](https://avatars.discourse-cdn.com/v4/letter/d/9fc29f/32.png) [@damelys\_y](https://discuss.elastic.co/u/damelys_y)\
**Post date:** [July 20, 2017, 4:46pm UTC](https://discuss.elastic.co/t/add-filter-on-dashboard-not-work/93987/1 "2017-07-20T16:46:36Z")

</div>

Hi,

I am trying to add a filter on the dasboard with the option "Add filter" but it is not working, it does not list the fields, when inspecting the page it generates the following error:

**TypeError: Cannot read property 'fields' of undefined**  
\*\* at [http://localhost:5601/bundles/kibana.bundle.js?v=15382:53:28801\*\*](http://localhost:5601/bundles/kibana.bundle.js?v=15382:53:28801**)  
\*\* at Array.reduce (native)\*\*  
\*\* at getFieldOptions ([http://localhost:5601/bundles/kibana.bundle.js?v=15382:53:28731](http://localhost:5601/bundles/kibana.bundle.js?v=15382:53:28731))\*\*  
\*\* at Object.fn ([http://localhost:5601/bundles/kibana.bundle.js?v=15382:46:5023](http://localhost:5601/bundles/kibana.bundle.js?v=15382:46:5023))\*\*  
\*\* at Scope.$digest ([http://localhost:5601/bundles/commons.bundle.js?v=15382:39:2875](http://localhost:5601/bundles/commons.bundle.js?v=15382:39:2875))\*\*  
\*\* at Scope.$apply ([http://localhost:5601/bundles/commons.bundle.js?v=15382:39:5037](http://localhost:5601/bundles/commons.bundle.js?v=15382:39:5037))\*\*  
\*\* at HTMLAnchorElement. ([http://localhost:5601/bundles/commons.bundle.js?v=15382:42:11108](http://localhost:5601/bundles/commons.bundle.js?v=15382:42:11108))\*\*  
\*\* at HTMLAnchorElement.dispatch ([http://localhost:5601/bundles/commons.bundle.js?v=15382:28:18725](http://localhost:5601/bundles/commons.bundle.js?v=15382:28:18725))\*\*  
\*\* at HTMLAnchorElement.elemData.handle ([http://localhost:5601/bundles/commons.bundle.js?v=15382:28:15617](http://localhost:5601/bundles/commons.bundle.js?v=15382:28:15617))\*\*

In the visualizations, if I am able to add a filter without problem and the fields are listed, but it is not so on the dasboard.

I am using version 5.5.0 for ekl

---

<div class="post-metadata">

**Author:** ![cjcenizal](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cjcenizal/32/11216_2.png) [@cjcenizal](https://discuss.elastic.co/u/cjcenizal)\
**Post date:** [July 21, 2017, 1:39am UTC](https://discuss.elastic.co/t/add-filter-on-dashboard-not-work/93987/2 "2017-07-21T01:39:49Z")

</div>

Hi Damelys, thanks for letting us know about this. Would you mind creating a [GitHub issue on our repo](https://github.com/elastic/kibana/issues/new)? This is the best place to log and track bugs.

Thanks,  
CJ

---

<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:** [August 18, 2017, 1:40am UTC](https://discuss.elastic.co/t/add-filter-on-dashboard-not-work/93987/3 "2017-08-18T01:40:00Z")

</div>

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