Sort a Stacked Bar Chart in Tableau from User Selection

Stacked bar charts are a brilliant visual for displaying how individual segments contribute to the overall value of a category, and how a category ranks in relation to other categories. Like all data visualizations however, it has some weaknesses.
One of the biggest weaknesses of a stacked bar chart is that it's hard to compare bar segments when they don't have a shared baseline. Comparing the first bar segment is straightforward, but comparing the 3rd or 5th segment is cumbersome.
One cool way you can allow your users to more easily compare bar segments is with dynamic sorting! For example, you can utilize a calculation, set action and custom sort so that the bar sections re-order based on the end-user selection.
Check out this video to learn how! Special shoutout to Andy Kriebel for inspiring this video.
Connect with us:
•Upcoming Tableau Classes: onenumber.biz/onenumber-table...
•Book an Office Hour with Eric: www.eventbrite.com/e/tableau-...
•Subscribe to the OneNumber Newsletter: onenumber.biz/newsletter
•Follow Eric on LinkedIn: / eric-parker-37513249
Resources:
•Example Tableau Workbook: public.tableau.com/app/profil...
•Tableau Set Actions Explained: onenumber.biz/blog-1/2023/8/2...
•Andy Kriebel Sort with Set Action Video: • How to Reorder a Stack...

Пікірлер: 5

  • @onenumbertableau
    @onenumbertableau2 ай бұрын

    Need help with Tableau? Schedule an hour with Eric here: onenumber.biz/office-hours Ready to master Tableau? Check out our lineup of upcoming classes! onenumber.biz/onenumber-tableau-classes

  • @oksanavorobiova8929
    @oksanavorobiova8929Ай бұрын

    It would be great if you show how to outline by value size after this sorting, I have a working case, I found the video composed 8 years ago, is any new ideas exists, how to do that?

  • @onenumbertableau

    @onenumbertableau

    Ай бұрын

    Hi, I'm not sure what you mean by "outline by value size". Can you share more or a link to the resource you're talking about?

  • @oksanavorobiova8929

    @oksanavorobiova8929

    Ай бұрын

    I meant sort the bottom segment by value from highest to lowest, the link I posted above as an example, but it is 8 years old, is any up-to-date approach?

  • @onenumbertableau

    @onenumbertableau

    Ай бұрын

    @@oksanavorobiova8929 I don't see a link but I don't know of a way to retain the visual of a stacked bar while doing the nested sort individually per row (e.g. the color sequence is different in each row). Here's the closest thing I could build that resembles what you're asking (I think): public.tableau.com/app/profile/eric.parker/viz/CustomNestedSortPerRow/Title