# How to transform records count from Elasticsearch datasource

**URL:** <https://community.grafana.com/t/how-to-transform-records-count-from-elasticsearch-datasource/56892>\
**Category:** Elasticsearch\
**Tags:** elasticsearch\
**Created:** [November 29, 2021, 2:31pm UTC](https://community.grafana.com/t/how-to-transform-records-count-from-elasticsearch-datasource/56892 "2021-11-29T14:31:37Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vitalyp](https://avatars.discourse-cdn.com/v4/letter/v/e9c0ed/32.png) [@vitalyp](https://community.grafana.com/u/vitalyp)\
**Post date:** [November 29, 2021, 2:31pm UTC](https://community.grafana.com/t/how-to-transform-records-count-from-elasticsearch-datasource/56892/1 "2021-11-29T14:31:37Z")

</div>

Hello. I have grafana v7.5.5. I need to create a panel which should use queries from 2 different Elasticsearch datasources. Each query returns only total amount of records. What I need is to divide first amount on second. How can I do this operation? I’m trying to use Transform tab of my panel - Add field from calculation - Binary operation and here do division, but it doesn’t work. Nothing happens with numbers.
