
Tableau Prep Cookbook
By :

In this recipe, we'll create an output to a file. There are two file outputs supported by Tableau Prep, Comma-Separated Values (.csv) files and Tableau extracts (.hyper). When you're planning to perform downstream analysis with Tableau Desktop, I recommend using Tableau extracts as they have great performance benefits. If, however, you're utilizing it for any other purposes, CSV is a great open format to utilize.
Follow along with the steps in this recipe by downloading the Sample Files 2.8 folder from the book's GitHub repository.
To follow along with the recipe, open up a new flow in Tableau Prep Builder and configure a data input connection, using the Superstore Sales.hyper sample file.
Then, follow along with these steps:
Figure 2.29 – Adding an Output step to your flow
Figure 2.30 – File output settings
Important note
Saving to Tableau Server: If you'd like to save a hyper extract output to Tableau Server, you can change the owutput from File to Published Data Source. This will then write the hyper file to Tableau Server. This is only possible for hyper files and not for CSV files.
Figure 2.31 – Append to table is only available for Tableau hyper extracts
Figure 2.32 – The output generated by Tableau Prep
Figure 2.33 – Using Tableau Prep hyper output as a data source in Tableau Desktop
Using the steps in this recipe, you have learned how to write data from Tableau Prep to CSV and hyper files.
Using the Output tool, you can easily write data to CSV and hyper files for use in other analytics applications. If you save your output to Tableau Server, this is a great way to maintain those outputs.