Reshaping & aggregating — quiz
4 questions covering this module. Pivot steps and aggregate steps.
A new month column appears in the source each month. Use:
- A manual pivot, updated monthly
- A wildcard pivot
- A union
- A join
Answer: A wildcard pivot — It matches columns that do not exist yet.
For data Tableau will analyse, pivot:
- Rows to columns
- Columns to rows
- Neither
- Both
Answer: Columns to rows — Long form gives one dimension and one measure rather than many measures.
To prevent a join multiplying rows, add an aggregate step:
- After the join
- On the many side before the join
- At the output
- On the one side
Answer: On the many side before the join — Grouping by the join key gives one row per key.
The difference between an aggregate step and a FIXED LOD:
- None
- The aggregate step changes the grain; FIXED keeps every row
- FIXED is faster
- Aggregate works on text only
Answer: The aggregate step changes the grain; FIXED keeps every row — The same distinction as GROUP BY versus a window function.