# Pivot Table does not sort on a a selected column

**URL:** <https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410>\
**Category:** Q&A\
**Tags:** pivot-table, Business-Intelligence-Engineer, quick-sight\
**Created:** [July 10, 2024, 2:43pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410 "2024-07-10T14:43:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![marie](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@marie](https://community.amazonquick.com/u/marie)\
**Post date:** [July 10, 2024, 2:43pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/1 "2024-07-10T14:43:51Z")

</div>

Continuing the discussion from [Quick Sight Pivot table sort doesn't work on all columns](https://community.amazonquick.com/t/quicksight-pivot-table-sort-doesnt-work-on-all-columns/10785/3):  
This doesn’t look resolved to me. I am also having a problem sorting a pivot table by a particular column.

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [July 10, 2024, 3:43pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/2 "2024-07-10T15:43:49Z")

</div>

Hi @marie,  
Could you please share a screenshot of your table so that we can better understand the issue you are running into?

---

<div class="post-metadata">

**Author:** ![marie](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@marie](https://community.amazonquick.com/u/marie)\
**Post date:** [July 10, 2024, 3:47pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/3 "2024-07-10T15:47:19Z")

</div>

sure. I have switched to two tables so that I can sort by the last field.

 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/3/0/30489c28e690b0be27a1dc39f02fb0911d89f123.png)

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [July 10, 2024, 4:33pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/4 "2024-07-10T16:33:38Z")

</div>

Hi @marie,  
Thanks for sharing! If I understand correctly by looking at your tables, you’d like to sort by the overall supplier/facility groups, not the rows within each supplier/facility, correct?  
I’ve recreated this scenario below so the populated information will be different but should work similarly for you:

Here’s the starting table. I selected the top left cell, for me labeled ‘Rows’, for you it would be the ‘Supplier/Facility’.  
 ![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/0/3/03ce5f8b7b8b738a617b22e2c80e623fa277d2df.png)

When the options open, go to the option just below the break line to expand. Change the sort by option by the column you’d like to sort.

![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/3/0/303125b70069816019904c8a7b0c1e612bd45013.png)

The outcome should reflect on your table to sort them by your new selected column.

![image](https://d1wl4jav5dp96l.cloudfront.net/original/3X/a/4/a43b161537976d0ad8244b2af2456f1998795a94.png)

Let me know if this solution works for your case or if you have any additional questions!

---

<div class="post-metadata">

**Author:** ![marie](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@marie](https://community.amazonquick.com/u/marie)\
**Post date:** [July 10, 2024, 6:18pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/5 "2024-07-10T18:18:01Z")

</div>

Thank you. I want to sort, in descending order by the “Total Exception Spend”. This column is a work around (since totaling across the dashboard didn’t work, I created a calculated field). I want the highest dollar amounts first. I will try what you suggested and let you know.

---

<div class="post-metadata">

**Author:** ![marie](https://avatars.discourse-cdn.com/v4/letter/m/bc8723/32.png) [@marie](https://community.amazonquick.com/u/marie)\
**Post date:** [July 10, 2024, 7:42pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/6 "2024-07-10T19:42:46Z")

</div>

Sorry, posted too soon, it did work. It is not intuitive since there is a sort button at the top of the column, but this did it. thanks

---

<div class="post-metadata">

**Author:** ![Brett](https://d2orw1595917va.cloudfront.net/user_avatar/community.amazonquick.com/brett/32/36494_2.png) [@Brett](https://community.amazonquick.com/u/Brett)\
**Post date:** [July 10, 2024, 7:55pm UTC](https://community.amazonquick.com/t/pivot-table-does-not-sort-on-a-a-selected-column/32410/7 "2024-07-10T19:55:46Z")

</div>

Agreed, it is a bit odd how unclear it is with there being a normal sort option in the corner. Glad that it worked for your case though!
