Lesson 3.3 · Pro

Pivot: turn rows into columns

Build a report with one column per category using conditional aggregates.

In this lesson

  1. One column per category
  2. Pivot sums, not just counts
  3. MAX(CASE) picks the one value