# Showing top (instead of bottom) N lines in colored line chart

**URL:** <https://community.amazonquick.com/t/showing-top-instead-of-bottom-n-lines-in-colored-line-chart/22600>\
**Category:** Q&A\
**Tags:** charts, Business-Intelligence-Engineer, quick-sight\
**Created:** [December 12, 2023, 10:04am UTC](https://community.amazonquick.com/t/showing-top-instead-of-bottom-n-lines-in-colored-line-chart/22600 "2023-12-12T10:04:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dianak](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dianak](https://community.amazonquick.com/u/dianak)\
**Post date:** [December 12, 2023, 10:04am UTC](https://community.amazonquick.com/t/showing-top-instead-of-bottom-n-lines-in-colored-line-chart/22600/1 "2023-12-12T10:04:42Z")

</div>

Hi, everyone  
I make a line chart which is colored by selected field.There are a lot of lines, and I only want top-20 to be displayed, so the rest goes to ‘other’ group.  
For some reason by default QS displays bottom-N lines and groups the rest to ‘other’ while I need to show top-N and group all smaller values to ‘other’.  
Couldn’t find any parameters to choose what values (top/bottoms) are going to be displayed separately and which are going to be grouped as ‘other’. Is there any known solution for this?

---

<div class="post-metadata">

**Author:** ![ErikG](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/erikg/32/14524_2.png) [@ErikG](https://community.amazonquick.com/u/ErikG)\
**Post date:** [December 12, 2023, 10:14am UTC](https://community.amazonquick.com/t/showing-top-instead-of-bottom-n-lines-in-colored-line-chart/22600/2 "2023-12-12T10:14:00Z")

</div>

Hi @dianak

i did a short test myself and its the sort of the color field (here store\_id) and not the value of the selected measure (here quantity)

 ![grafik](https://d1wl4jav5dp96l.cloudfront.net/original/2X/7/76bf46d6d60b7cbc8fb14f43f31cca52f2857288.png)

Can you confirm that?

BR

---

<div class="post-metadata">

**Author:** ![dianak](https://avatars.discourse-cdn.com/v4/letter/d/ce73a5/32.png) [@dianak](https://community.amazonquick.com/u/dianak)\
**Post date:** [December 12, 2023, 10:24am UTC](https://community.amazonquick.com/t/showing-top-instead-of-bottom-n-lines-in-colored-line-chart/22600/3 "2023-12-12T10:24:22Z")

</div>

Checked it. Yes, you are right. I misunderstood what this top-bottom thing is about.  
So, in my case the top-bottom switch wouldn’t work as I want it to.

Do you know how to show top biggest values? Top-bottom filters?

---

<div class="post-metadata">

**Author:** ![ErikG](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/erikg/32/14524_2.png) [@ErikG](https://community.amazonquick.com/u/ErikG)\
**Post date:** [December 12, 2023, 10:48am UTC](https://community.amazonquick.com/t/showing-top-instead-of-bottom-n-lines-in-colored-line-chart/22600/4 "2023-12-12T10:48:17Z")

</div>

You mean  
 ![grafik](https://d1wl4jav5dp96l.cloudfront.net/original/2X/f/f84c8ebeba3c502e62c831e7b8ba6536ca88fafd.png)
