# Kibana Heatmap - order by sum of all buckets

**URL:** <https://discuss.elastic.co/t/kibana-heatmap-order-by-sum-of-all-buckets/236137>\
**Category:** Kibana\
**Created:** [June 8, 2020, 8:15am UTC](https://discuss.elastic.co/t/kibana-heatmap-order-by-sum-of-all-buckets/236137 "2020-06-08T08:15:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bernie](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/bernie/32/45778_2.png) [@Bernie](https://discuss.elastic.co/u/Bernie)\
**Post date:** [June 8, 2020, 8:15am UTC](https://discuss.elastic.co/t/kibana-heatmap-order-by-sum-of-all-buckets/236137/1 "2020-06-08T08:15:05Z")

</div>

Hi there,

I have created a Kibana Heatmap of sum("time spent") (y-axis) over a weekly aggregation (x-axis).  
In the first weeks of the year "time spent" is quite low and is ramping up later, unfortunately the whole heatmap is ordered by the first bucket.

Is there a way to order the y-axis by the **sum of all buckets** for each element on the y-axis?

thanks,  
Bernie

---

<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:** [June 9, 2020, 1:00pm UTC](https://discuss.elastic.co/t/kibana-heatmap-order-by-sum-of-all-buckets/236137/2 "2020-06-09T13:00:30Z")

</div>

It seems like you are running into the known issue [https://github.com/elastic/kibana/issues/11109](https://github.com/elastic/kibana/issues/11109)

In the issue a workaround is described for histograms - I'm not sure whether it's applicable to your case.

---

<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:** [July 7, 2020, 1:00pm UTC](https://discuss.elastic.co/t/kibana-heatmap-order-by-sum-of-all-buckets/236137/3 "2020-07-07T13:00:45Z")

</div>

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