# Having two custom metrics for visualizations to sort by

**URL:** <https://discuss.elastic.co/t/having-two-custom-metrics-for-visualizations-to-sort-by/204928>\
**Category:** Kibana\
**Created:** [October 23, 2019, 5:37pm UTC](https://discuss.elastic.co/t/having-two-custom-metrics-for-visualizations-to-sort-by/204928 "2019-10-23T17:37:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![planetracer](https://avatars.discourse-cdn.com/v4/letter/p/fbc32d/32.png) [@planetracer](https://discuss.elastic.co/u/planetracer)\
**Post date:** [October 23, 2019, 5:37pm UTC](https://discuss.elastic.co/t/having-two-custom-metrics-for-visualizations-to-sort-by/204928/1 "2019-10-23T17:37:52Z")

</div>

Is it possible to sort visualizations based on two different metrics? For example, if I have a duration field and a buildnumber field, and I wanted to sort the data from highest to lowest duration from lowest to highest build number?

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [October 24, 2019, 2:59pm UTC](https://discuss.elastic.co/t/having-two-custom-metrics-for-visualizations-to-sort-by/204928/2 "2019-10-24T14:59:37Z")

</div>

Hey @planetracer, what type of Visualization are you using? Would you mind sharing a screenshot of the visualization and its configuration?

---

<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:** [November 21, 2019, 3:06pm UTC](https://discuss.elastic.co/t/having-two-custom-metrics-for-visualizations-to-sort-by/204928/3 "2019-11-21T15:06:23Z")

</div>

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