By Christopher Mielack - lo-ds and polygons, enjoy! Get in touch at m2dot.com in case of any queries you may have! Or see you at the next Berlin Tableau User Group (BTUG)! Thanks for reading, thanks for sharing!
Tableau Level of Detail Expressions and Polygon Charts
1. Level of Detail Expressions & More
Berlin Tableau User Group @ SoundCloud
May 31, 2017
2. Seite 2
Christopher Mielack
Business Intelligence Consultant
§ @ M2. since April 2016
§ Background in Physics
§ Product Owner of M2. Tableau Toolbox
§ Specializations
§ Programming
§ Math / Data Analysis
§ Tableau Consulting
3. Seite 3
Tableau
§ User base is exploding
§ Realtime data exploration
§ Easy to learn, hard to master
4. Seite 4
Calculated Fields – Main Challenges for New Users
§ Result of an expression can be different in each view
§ Can be aggregates, can be non-aggregates
§ Table Calculations, Level of Detail Expressions are powerful, but can become complex
5. Seite 5
Level Of Detail (LoD) Expressions – Overview
§ Let you deviate from grouping in the View
§ Three very different types
§ INCLUDE (pre-aggregate)
§ EXCLUDE (ignore dimensions)
§ FIXED (independent of View)
§ Recommendation: Name your calculated fields carefully!
6. Seite 6
FIXED Level of Detail
§ Format: {FIXED [Dimension 1], [Dimension 2], … : SUM([Measure]) }
§ Independent of the View! *
§ Independent of Filtering! *
§ * mostly…
§ Example: Totals vs. Filtered Totals
8. Seite 8
FIXED Level of Detail
§ Internally creates temporary table
§ Can be inefficient with large data
§ Inflexible to use within Tableau
§ Context Filters do affect FIXED LoDs
9. Seite 9
INCLUDE Level of Detail
§ Format: {INCLUDE [Dimension 1], [Dimension 2], … : SUM([Measure]) }
§ Pre-aggregates data
§ Increases granularity
§ Akin to a sub-query in SQL
§ Example: Average Annual Sales
11. Seite 11
INCLUDE Level of Detail
§ Allows for aggregates of aggregates
§ Very flexible & in line with Tableau’s UI philosophy
§ Responds to filtering
12. Seite 12
EXCLUDE Level of Detail
§ Format: {EXCLUDE [Dimension 1], [Dimension 2], … : SUM([Measure]) }
§ Ignores [Dimension1], [Dimension 2], … before aggregating!
§ Reduces granularity
§ Example: Color by Totals
14. Seite 14
Level of Detail Expressions – Summary
§ INCLUDE / EXCLUDE
§ Very flexible
§ Responds to filters
§ FIXED
§ Ignores (non-context-) filters
§ Identical values in every View
§ Can have strong performance impact
16. Seite 16
Polygon Charts
§ Whenever you think ”I can’t do that in Tableau”, try Polygon Charts!
§ Create diagrams with custom shapes
§ Algorithmic Geometry
18. Seite 18
Polygon Examples
...From the Web
https://public.tableau.com/profile/teampolygon#!/vizhome/ChooseLucaandRafiforVizWiz/Dashboard1
19. Seite 19
Polygon Charts – Basic Principles
§ Each “row” in your view = one point in a shape
§ Columns = X, Rows = Y
§ Define point order on the Path Shelf
§ Draw lines between the points, then fill in the shape