# Pipieline Agrregation

**URL:** <https://discuss.elastic.co/t/pipieline-agrregation/260286>\
**Category:** Kibana\
**Created:** [January 6, 2021, 7:46am UTC](https://discuss.elastic.co/t/pipieline-agrregation/260286 "2021-01-06T07:46:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Reyhaneh\_Sedehi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reyhaneh_sedehi/32/81806_2.png) [@Reyhaneh\_Sedehi](https://discuss.elastic.co/u/Reyhaneh_Sedehi)\
**Post date:** [January 6, 2021, 7:46am UTC](https://discuss.elastic.co/t/pipieline-agrregation/260286/1 "2021-01-06T07:46:12Z")

</div>

I have fiels as product\_score for each products\_Id field,also have a filed name category for each of product\_id . I want to visualize as Meters for get Maximum of the sum of product\_score for each category. How could I use pipeline aggregation for get suitable results?

---

<div class="post-metadata">

**Author:** ![wylie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wylie/32/81794_2.png) [@wylie](https://discuss.elastic.co/u/wylie)\
**Post date:** [January 6, 2021, 3:52pm UTC](https://discuss.elastic.co/t/pipieline-agrregation/260286/2 "2021-01-06T15:52:48Z")

</div>

Hi, welcome to the discuss forum! Your use case makes sense. I think that you can do this using the aggregated Bar Chart in Kibana. On your X axis you choose Terms of product\_category. On the Y axis, choose Sibling Pipeling \> Overall Max.

Split the Overall Max by `Terms of products_id`, calculating the top values based on Count or something else. choose the metric to be `Max of product_score`. The sort order has to be different from the metric due to this bug: [https://github.com/elastic/kibana/issues/87511](https://github.com/elastic/kibana/issues/87511)

---

<div class="post-metadata">

**Author:** ![Reyhaneh\_Sedehi](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/reyhaneh_sedehi/32/81806_2.png) [@Reyhaneh\_Sedehi](https://discuss.elastic.co/u/Reyhaneh_Sedehi)\
**Post date:** [January 18, 2021, 5:52am UTC](https://discuss.elastic.co/t/pipieline-agrregation/260286/3 "2021-01-18T05:52:07Z")

</div>

> [@wylie](#):
>
> [[data.search.aggs] Sibling agg using Terms isn't able to sort the Terms agg by the metric · Issue #87511 · elastic/kibana · GitHub](https://github.com/elastic/kibana/issues/87511)

Thank you for your guidline ,It seems practical for me .

---

<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:** [February 15, 2021, 5:52am UTC](https://discuss.elastic.co/t/pipieline-agrregation/260286/4 "2021-02-15T05:52:24Z")

</div>

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