# Choose the second Value in Query Table for Canvas

**URL:** <https://discuss.elastic.co/t/choose-the-second-value-in-query-table-for-canvas/342059>\
**Category:** Kibana\
**Tags:** canvas\
**Created:** [August 31, 2023, 2:11pm UTC](https://discuss.elastic.co/t/choose-the-second-value-in-query-table-for-canvas/342059 "2023-08-31T14:11:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rademu1349](https://avatars.discourse-cdn.com/v4/letter/r/da6949/32.png) [@Rademu1349](https://discuss.elastic.co/u/Rademu1349)\
**Post date:** [August 31, 2023, 2:11pm UTC](https://discuss.elastic.co/t/choose-the-second-value-in-query-table-for-canvas/342059/1 "2023-08-31T14:11:34Z")

</div>

Hello all,

I am trying to display a top 3 ranking in a canvas. For this I need the highest score, the middle score and the lowest score.

The highest score is correctly queried but I am not able to determine the 2nd score.

Can you help me here?

This is the query I use to get the data:

SELECT  
id,  
score  
FROM "logs-game\*"  
WHERE "data.type" = 'end'  
GROUP BY id, score  
ORDER BY score DESC  
LIMIT 3

Many thanks in advance!

---

<div class="post-metadata">

**Author:** ![jsanz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsanz/32/53734_2.png) [@jsanz](https://discuss.elastic.co/u/jsanz)\
**Post date:** [September 4, 2023, 1:23pm UTC](https://discuss.elastic.co/t/choose-the-second-value-in-query-table-for-canvas/342059/2 "2023-09-04T13:23:14Z")

</div>

I don't follow the problem. Can you share some sample data to reproduce your query and what results you expect to get?

---

<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:** [October 2, 2023, 1:24pm UTC](https://discuss.elastic.co/t/choose-the-second-value-in-query-table-for-canvas/342059/3 "2023-10-02T13:24:02Z")

</div>

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