# Ranking (league) table

**URL:** <https://discuss.elastic.co/t/ranking-league-table/68996>\
**Category:** Kibana\
**Created:** [December 14, 2016, 9:54am UTC](https://discuss.elastic.co/t/ranking-league-table/68996 "2016-12-14T09:54:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton-da](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@anton-da](https://discuss.elastic.co/u/anton-da)\
**Post date:** [December 14, 2016, 9:54am UTC](https://discuss.elastic.co/t/ranking-league-table/68996/1 "2016-12-14T09:54:41Z")

</div>

Hello, could somebody suggest how I would approach to visualise a table like this:

[![](https://cuecs.files.wordpress.com/2013/11/green-league-table-20151.png) ](https://cuecs.files.wordpress.com/2013/11/green-league-table-20151.png)

With position change? My data would be daily visits for urls, so that I could see the delta in rankings. I think it is not possible in Kibana itself, would I have to create a new index for daily rankings and run some kind of function (with Logstash?) on data from the previous day to calculate the total and position change?

Thanks.

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [December 14, 2016, 11:16am UTC](https://discuss.elastic.co/t/ranking-league-table/68996/2 "2016-12-14T11:16:23Z")

</div>

Hi @anton-da,

Calculating differences between documents is indeed not supported by Kibana right now. Running a separate tool to accumulate the stats you ask for sounds reasonable. Logstash has an [elasticsearch input](https://www.elastic.co/guide/en/logstash/current/plugins-inputs-elasticsearch.html) as well as an [elasticsearch filter](https://www.elastic.co/guide/en/logstash/current/plugins-filters-elasticsearch.html), which could be used to build such a processing pipeline. It should also be quite easy to write that in a language of your choice using one of the [API clients](https://www.elastic.co/guide/en/elasticsearch/client/index.html). Once you have those aggregated stats as documents in an index, take a look at [Kibana's field formatters](https://www.elastic.co/guide/en/kibana/current/managing-fields.html) that can help to format the values in your table columns.

---

<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:** [January 11, 2017, 11:16am UTC](https://discuss.elastic.co/t/ranking-league-table/68996/3 "2017-01-11T11:16:37Z")

</div>

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