When you open Tableau for the first time, you should see a screen similar to the one shown in the following screenshot. This image shows the various data sources available for analysis. Tableau provides you with two sample data sources, Sample - Coffee Chain (Access) and Sample - Superstore Sales (Excel), as shown in the following screenshot:
To prepare for the recipe, download and save titanic.txt
from http://biostat.mc.vanderbilt.edu/wiki/pub/Main/DataSets/titanic.txt on your local hard drive. Remember this location, as we will use this file for this recipe. This file lists all the passengers (and their details) that boarded Titanic on its disastrous voyage.
Downloading the example code
You can download the example code files for all the Packt books you have purchased from your account at http://www.packtpub.com. If you have purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you.
Once you have downloaded the text file, perform the following steps to get the data in Tableau:
titanic.txt
in the given Open dialog box.titanic.txt
file.We used a text file as a data source and connected to it using Tableau's data source connection options. Although most of the time Tableau can determine data types accurately, sometimes you need to pay attention to changing the data types to reflect the actual data type. In this case, we converted a binary field (containing zero and one) from the Measures field to the Dimensions field.
In its online Knowledge Base, Tableau discusses how to handle situations where data types are misinterpreted because of Microsoft's Jet Database Engine's limitations. You can find that article at http://kb.tableausoftware.com/articles/knowledgebase/jet-incorrect-data-type-issues.