# I am trying to perform aggregation on top aggregations results in kibana visualization tab. Can anyone please help me how to achieve this

**URL:** https://discuss.elastic.co/t/i-am-trying-to-perform-aggregation-on-top-aggregations-results-in-kibana-visualization-tab-can-anyone-please-help-me-how-to-achieve-this/300795
**Category:** Kibana
**Created:** [March 28, 2022, 4:01am UTC](https://discuss.elastic.co/t/i-am-trying-to-perform-aggregation-on-top-aggregations-results-in-kibana-visualization-tab-can-anyone-please-help-me-how-to-achieve-this/300795 "2022-03-28T04:01:25Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Sumithra\_Thammineni](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sumithra_thammineni/32/103568_2.png) [@Sumithra\_Thammineni](https://discuss.elastic.co/u/Sumithra_Thammineni)
#### Post date: [March 28, 2022, 4:01am UTC](https://discuss.elastic.co/t/i-am-trying-to-perform-aggregation-on-top-aggregations-results-in-kibana-visualization-tab-can-anyone-please-help-me-how-to-achieve-this/300795/1 "2022-03-28T04:01:25Z")

</div>

My use case: Group the data by "a" attribute and "b" attribute. The below is the result i am able to figure out with kibana

| a attribute | b attribute | Count |
| --- | --- | --- |
| A1 | x | 1 |
| A1 | y | 1 |
| B1 | z | 2 |

Problem: Again i want to group the above result with "Group by 'a' attribute". Please help me achieveing this.

---

<div class="post-metadata">

### Author: ![flash1293](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/flash1293/32/41227_2.png) [@flash1293](https://discuss.elastic.co/u/flash1293)
#### Post date: [March 29, 2022, 8:51am UTC](https://discuss.elastic.co/t/i-am-trying-to-perform-aggregation-on-top-aggregations-results-in-kibana-visualization-tab-can-anyone-please-help-me-how-to-achieve-this/300795/3 "2022-03-29T08:51:34Z")

</div>

I'm not sure I fully understand your use case - could you show the table you would like to see with your example above?

---

<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 26, 2022, 8:52am UTC](https://discuss.elastic.co/t/i-am-trying-to-perform-aggregation-on-top-aggregations-results-in-kibana-visualization-tab-can-anyone-please-help-me-how-to-achieve-this/300795/4 "2022-04-26T08:52:36Z")

</div>

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