# How to define multiple keys in index (Y Axis) to sort by clicks against date (X Axis)

**URL:** <https://discuss.elastic.co/t/how-to-define-multiple-keys-in-index-y-axis-to-sort-by-clicks-against-date-x-axis/325323>\
**Category:** Kibana\
**Tags:** lens\
**Created:** [February 11, 2023, 7:04pm UTC](https://discuss.elastic.co/t/how-to-define-multiple-keys-in-index-y-axis-to-sort-by-clicks-against-date-x-axis/325323 "2023-02-11T19:04:44Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sahil\_Sharma1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/sahil_sharma1/32/117142_2.png) [@Sahil\_Sharma1](https://discuss.elastic.co/u/Sahil_Sharma1)\
**Post date:** [February 11, 2023, 7:04pm UTC](https://discuss.elastic.co/t/how-to-define-multiple-keys-in-index-y-axis-to-sort-by-clicks-against-date-x-axis/325323/1 "2023-02-11T19:04:44Z")

</div>

![Screenshot 2023-02-12 at 12.19.46 AM](https://us1.discourse-cdn.com/elastic/original/3X/8/7/87d084068a37891788ea2d92b91d2c7ca91fc301.jpeg)  
Hi, I have an issue with kibana dashboards. I want multiple fields in index (Entity1.keyword, Entity2.keyword and Entity3.keyword) to be sorted by max clicks against date. Entities will be in Y axis and Date will in X Axis. But the moment i add multiple keys in Y axis (keeping X axis as dates), data in multiple fields are showing like a row (field1\>field2\>field3) - screengrab attached. I want distinct key values and not in row form. Can u help in this please. Dashboard is heatmap type.

---

<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:** [March 11, 2023, 7:04pm UTC](https://discuss.elastic.co/t/how-to-define-multiple-keys-in-index-y-axis-to-sort-by-clicks-against-date-x-axis/325323/2 "2023-03-11T19:04:54Z")

</div>

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