Video | Tableau | Data prep

Tableau Prep Builder: Pivot / Transformations (Part 6 of 7)

The pivot tool is also secretly an aggregation tool, so you've got to know the grain of your data before you pivot.

  • The pivot tool in Tableau Prep works both ways under one icon, turning columns to rows or rows to columns, and the icon changes to show which direction you're pivoting.
  • Pivoting secretly aggregates data, so you must understand the grain (row level) of your data before pivoting to avoid unexpected aggregation.
  • You can extract the year as a string from a date using a calculated field with DATEPART wrapped in STR, giving the same result as an existing year field.
  • The aggregation tool can replace manual field removal: anything you don't bring into the aggregation is automatically excluded, making it a faster route to the same output.
  • Tableau Prep is non-destructive and flexible, letting you delete individual change steps to undo mistakes and branch flows to achieve identical results multiple ways.

Pivoting your data from columns to rows or rows to columns is a pretty heavily used function and capability in Microsoft excel. In this video I show you how to do both and how to make sure you get yours perfectly configured. -----Join my Discord Server. https://discord.gg/shBuxXr it’s a little sparse at the moment but hang in there.