# Tile map - show unique data

**URL:** https://discuss.elastic.co/t/tile-map-show-unique-data/93006
**Category:** Kibana
**Created:** [July 13, 2017, 12:20pm UTC](https://discuss.elastic.co/t/tile-map-show-unique-data/93006 "2017-07-13T12:20:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Patrik\_Soderstrom](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrik_soderstrom/32/53928_2.png) [@Patrik\_Soderstrom](https://discuss.elastic.co/u/Patrik_Soderstrom)
#### Post date: [July 13, 2017, 12:20pm UTC](https://discuss.elastic.co/t/tile-map-show-unique-data/93006/1 "2017-07-13T12:20:02Z")

</div>

I have a system sending in unique caseID, longitude and latitude. I can with that information use Tile map to map out where each case was created.

I have also made the metric to only show unique per caseID.  
Aggregation: Unique Count  
Field: caseID

So if one case have several entries with the same long/lat it will only show one. Fine. Now to the problem.  
A case can have changed long/lat but keep its caseID. With the above I will now get two marks on the Map. One for the first entry and one for the second, still only one be caseID. But this time I now have two marks on the Map for the same caseID.

So I would like to know if its possible to only get long/lat value from the latest entry per caseID.  
Thanks

---

<div class="post-metadata">

### Author: ![Bargs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bargs/32/5429_2.png) [@Bargs](https://discuss.elastic.co/u/Bargs)
#### Post date: [July 13, 2017, 5:56pm UTC](https://discuss.elastic.co/t/tile-map-show-unique-data/93006/2 "2017-07-13T17:56:48Z")

</div>

I can't think of a way to do this with aggregations, let alone the aggregations Kibana supports. When you want distinct values you generally turn to the terms agg, but in this case you're generally going to have a single document per term so even if we did support geohash as a sub-agg of terms, it wouldn't be very helpful.

---

<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 10, 2017, 5:56pm UTC](https://discuss.elastic.co/t/tile-map-show-unique-data/93006/3 "2017-08-10T17:56:56Z")

</div>

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