Video | Tableau | Data prep | Data visualisation

Generate rows in Tableau Prep: New in 2021.3

Generating rows in Tableau Prep finally kills off the nasty self-union scaffolding trick for good.

Part ofWhat's New in Tableau 2021.3
  • The new rows feature in Tableau Prep offers three modes: filling from a single numeric field as a sequence, filling between two dates, and filling between a range of two fields
  • You can choose whether new rows are left as nulls or copied from the previous row, with bold rows in the preview indicating the records being generated
  • Date fills let you set increments of days, weeks or months, and you can override the min/max range with custom start and end dates
  • A handy trick for keeping even rows is ROW_NUMBER() % 2, which returns a boolean you can filter on, and works in Tableau Desktop too
  • This feature replaces messy scaffolding workarounds like self-unions for use cases such as counting how many days a support ticket was open

Generate a set of missing rows in a table with Tableau Prep based on dates, date times or integers. This allows you to fill gaps in data saving you from having to scaffold your data or carry out complex SQL queries or table calculations in Tableau to build your visualisations.Data set used in the video: https://j.mp/3jTMwGf 0:00 Intro1:36 Setup 5:46 How generate rows works6:17 Using it with numerical values. 8:56 Use a single date 12:40 Use two dates and fill between them16:11 A future use case I’ll build on this channel.