Hi. Thanks you for your question!
Many of our community Experts and folks from our team are on holiday right now. I asked âMy Assistantâ (universal chat) in Quick Suite, and got this back.
@Brett Could you review and validate the answer below on Monday after you return from holiday?
âSorting Vertical Bar Charts by Group/Color
âŚhereâs the current situation:
Current Limitation:
In Quick Sight, you cannot directly sort bar charts by the Group/Color field. The sorting functionality is limited to:
You cannot apply aggregation to fields in the Group/Color field well, which means standard sorting options donât apply to these fields.
Workarounds:
1. Use Color Coding for Better Readability
Instead of sorting by color groups, use color coding strategically to make the chart more readable. You can combine this with action filtering to focus on specific categories.
2. Create a Calculated Field with Custom Sort Order
Create a calculated field that assigns numeric values to your categories, then use this field in the Group/Color field well:
ifelse(
{category} = 'Category1', 1,
{category} = 'Category2', 2,
{category} = 'Category3', 3,
99
)
Then sort by this calculated field to control the order.
3. Use Field-Based Coloring
The Quick Sight capability in Quick Suite offers field-based coloring that ensures consistency across visuals. While this doesnât directly sort by color, it maintains consistent color assignments across your visualizations.â
4. Restructure Your Data
Consider restructuring your data so that the grouping dimension becomes part of the axis dimension, allowing you to sort by it directly.â