BigData / Tableau Interview Questions
What is a treemap in Tableau?
A treemap shows hierarchical, part-to-whole data as a set of nested rectangles, where each rectangle's area represents a measure's magnitude and rectangles can be colored by a second measure or dimension.
Marks: Square/Treemap type Size: SUM([Sales]) Color: SUM([Profit]) Label: [Sub-Category]
- Larger rectangles represent larger values; smaller rectangles represent smaller ones, all within the same total space.
- Nesting (e.g. Category containing Sub-Category rectangles) shows hierarchy directly through rectangle grouping.
- Coloring rectangles by a second measure (like Profit) turns a treemap into a two-variable view: size shows one metric, color shows another.
Treemaps are especially useful when you have many low-value categories alongside a few high-value ones, since area naturally draws the eye to what matters most, without the long tail of small values cluttering the view the way a bar chart with dozens of thin bars would.
More Related questions...