Sort a Stacked Bar Chart in Tableau from User Selection
ฝัง
- เผยแพร่เมื่อ 26 ส.ค. 2024
- 🔔 Book a FREE 15-min Tableau call here: forms.gle/DfW6...
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/...
•Book an Office Hour with Eric: www.eventbrite...
•Subscribe to the OneNumber Newsletter: onenumber.biz/...
•Follow Eric on LinkedIn: / eric-parker-37513249
Resources:
•Example Tableau Workbook: public.tableau...
•Tableau Set Actions Explained: onenumber.biz/...
•Andy Kriebel Sort with Set Action Video: • How to Reorder a Stack...
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
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?
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?
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?
@@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