# Kibana 5 coordinate map - unique terms

**URL:** <https://discuss.elastic.co/t/kibana-5-coordinate-map-unique-terms/104507>\
**Category:** Kibana\
**Created:** [October 19, 2017, 7:32am UTC](https://discuss.elastic.co/t/kibana-5-coordinate-map-unique-terms/104507 "2017-10-19T07:32:02Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![tallavi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tallavi/32/73613_2.png) [@tallavi](https://discuss.elastic.co/u/tallavi)\
**Post date:** [October 24, 2017, 9:37am UTC](https://discuss.elastic.co/t/kibana-5-coordinate-map-unique-terms/104507/3 "2017-10-24T09:37:08Z")

</div>

Hi @timroes ,

Thanks for the reply!

Is it possible somehow to run an elastic query to aggregate the results (something like a materialized view), and use THAT as a data source for the map visualization? Or any other workaround you can think of?

Thanks!

Tal

UPDATE: I read your answer again and I would like to rephrase the question: I understand that the map visualization shows documents aggregated by the location, so I will see multiple documents that are at the same location as 1 point. That's fine. But I would like to filter the documents I'm showing (unique client ids, maximum timestamp). Is it somehow possible (perhaps by using the advanced json input somehow) to specify a pre-filter for the documents that are shown and not use the raw documents (all of them) as the datasource?

---

_[View the full topic](https://discuss.elastic.co/t/kibana-5-coordinate-map-unique-terms/104507)._
