# How to divide sarchs to get percentage metric

**URL:** <https://discuss.elastic.co/t/how-to-divide-sarchs-to-get-percentage-metric/356430>\
**Category:** Elasticsearch\
**Created:** [March 28, 2024, 10:40pm UTC](https://discuss.elastic.co/t/how-to-divide-sarchs-to-get-percentage-metric/356430 "2024-03-28T22:40:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MR98](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@MR98](https://discuss.elastic.co/u/MR98)\
**Post date:** [March 28, 2024, 10:40pm UTC](https://discuss.elastic.co/t/how-to-divide-sarchs-to-get-percentage-metric/356430/1 "2024-03-28T22:40:12Z")

</div>

I created two searchs:  
Search 1 - TEXT.X\* and Search 2 - TEXT.Y\*

How should I combine agregations in metric or create new search to get something like math operation (TEXT.X\* / TEXT.Y\*)\*100:

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/b/5be1da49b014261c8edb02eff76d917459cae23c.png)

I saved new search: TEXT.X\* OR TEXT.Y\* and tried to use metric with filter and a lot of different combination of agregation but it does not works.

---

<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:** [April 25, 2024, 10:40pm UTC](https://discuss.elastic.co/t/how-to-divide-sarchs-to-get-percentage-metric/356430/2 "2024-04-25T22:40:30Z")

</div>

Closed on April 25, 2024, 10:40pm UTC

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