# Map not filtering based on time

**URL:** <https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503>\
**Category:** Kibana\
**Tags:** maps\
**Created:** [November 16, 2020, 11:04am UTC](https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503 "2020-11-16T11:04:02Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Saurabh\_Anand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_anand/32/47498_2.png) [@Saurabh\_Anand](https://discuss.elastic.co/u/Saurabh_Anand)\
**Post date:** [November 16, 2020, 11:04am UTC](https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503/1 "2020-11-16T11:04:03Z")

</div>

I created a dashboard in which I inserted a Map in it. To restrict user from seeing data I saved Map with a filter such that Time is between now to 3 months before. But when I add this Map in my dashboard the filter is not working on Map. What can be reason for this?

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [November 16, 2020, 2:29pm UTC](https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503/2 "2020-11-16T14:29:35Z")

</div>

The Kibana time filter you set up in a Map is overridden by the Dashboard. If you need to set up a different filter for a layer you can do that in the layer settings.

Example using the Kibana Flights demo dataset

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/b/d/bdb81bd7eb7012ad116c7a93547a7ca406523c7a.png)

The map has a `1 year` filter but the layer is getting the last `15 hours`. That second filter will be in the map settings and a dashboard cannot override it, if I'm correct.

@Nathan_Reese will correct me if I'm wrong 😄

---

<div class="post-metadata">

**Author:** ![Nathan\_Reese](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nathan_reese/32/84829_2.png) [@Nathan\_Reese](https://discuss.elastic.co/u/Nathan_Reese)\
**Post date:** [November 16, 2020, 3:15pm UTC](https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503/3 "2020-11-16T15:15:52Z")

</div>

When maps are added to dashboards, the map uses the dashboard query and time context instead of the query and time context saved with the map.

If you would like a custom time range for your map panel that is different then the time range for the entire dashboard, then you can add a [customized time range](https://www.elastic.co/guide/en/kibana/7.10/edit-dashboards.html#dashboard-customize-filter) per dashboard panel.

---

<div class="post-metadata">

**Author:** ![Saurabh\_Anand](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/saurabh_anand/32/47498_2.png) [@Saurabh\_Anand](https://discuss.elastic.co/u/Saurabh_Anand)\
**Post date:** [November 17, 2020, 5:25am UTC](https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503/4 "2020-11-17T05:25:13Z")

</div>

Thank you @jsanz @Nathan_Reese for clearing this out. Appreciate your efforts.

---

<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:** [December 15, 2020, 5:25am UTC](https://discuss.elastic.co/t/map-not-filtering-based-on-time/255503/5 "2020-12-15T05:25:17Z")

</div>

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