# Comparing aggregate data with benchmark data

**URL:** <https://discuss.elastic.co/t/comparing-aggregate-data-with-benchmark-data/152394>\
**Category:** Kibana\
**Created:** [October 14, 2018, 3:38pm UTC](https://discuss.elastic.co/t/comparing-aggregate-data-with-benchmark-data/152394 "2018-10-14T15:38:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![phil\_hcs\_tech](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/phil_hcs_tech/32/36508_2.png) [@phil\_hcs\_tech](https://discuss.elastic.co/u/phil_hcs_tech)\
**Post date:** [October 14, 2018, 3:38pm UTC](https://discuss.elastic.co/t/comparing-aggregate-data-with-benchmark-data/152394/1 "2018-10-14T15:38:15Z")

</div>

Hi,

I manage a dataset in elastic that stores records of grants allocated across the UK for a charity. There is a need to aggregate the data into regions and then compare that allocation ratios to population statistics. The query to aggregate grants by region is quite simple of course. But I cannot think of a way to then compare this to the target percentages by region.

The regional data is a static dataset that is updated monthly, and comprises of a small table of region names and % of population within the region.

Any suggestions on how I can prepare a bar that shows two bars per region, one the sum of grants awarded and the other the population? Do I need to store the population data on each and every grant record to achieve this?

---

<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:** [November 11, 2018, 3:38pm UTC](https://discuss.elastic.co/t/comparing-aggregate-data-with-benchmark-data/152394/2 "2018-11-11T15:38:18Z")

</div>

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