Search icon CANCEL
Subscription
0
Cart icon
Cart
Close icon
You have no products in your basket yet
Save more on your purchases!
Savings automatically calculated. No voucher code required
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Tableau 2019.x Cookbook

You're reading from  Tableau 2019.x Cookbook

Product type Book
Published in Jan 2019
Publisher Packt
ISBN-13 9781789533385
Pages 670 pages
Edition 1st Edition
Languages
Authors (5):
Dmitry Anoshin Dmitry Anoshin
Profile icon Dmitry Anoshin
Teodora Matic Teodora Matic
Profile icon Teodora Matic
Slaven Bogdanovic Slaven Bogdanovic
Profile icon Slaven Bogdanovic
Tania Lincoln Tania Lincoln
Profile icon Tania Lincoln
Dmitrii Shirokov Dmitrii Shirokov
Profile icon Dmitrii Shirokov
View More author details
Toc

Table of Contents (18) Chapters close

Preface 1. Getting Started with Tableau Software 2. Data Manipulation 3. Tableau Extracts 4. Tableau Desktop Advanced Calculations 5. Tableau Desktop Advanced Filtering 6. Building Dashboards 7. Telling a Story with Tableau 8. Tableau Visualization 9. Tableau Advanced Visualization 10. Tableau for Big Data 11. Forecasting with Tableau 12. Advanced Analytics with Tableau 13. Deploy Tableau Server 14. Tableau Troubleshooting 15. Preparing Data for Analysis with Tableau Prep 16. ETL Best Practices for Tableau 17. Other Books You May Enjoy

Connecting to the data

In this recipe, we will go through the basics of connecting to a data source. The first step you must take when you open Tableau, before you create any visualizations, is to connect to a data source. You will then use that data source to create your views and dashboards.

Getting ready

In this recipe, we will be using the Baby_names.csv dataset. Make sure that you have a local copy of the dataset saved to your device.

How to do it...

  1. Open Tableau.
  2. From the Connect pane on the left-hand side, choose the Text file option:
  1. A new window will open. Navigate to your local copy of the Baby_names.csv dataset, select it, and click Open.
  2. Tableau has now opened the Data Source page for you, where the file you loaded has been selected as the data source, and where you can also preview it.
  3. To begin making your first visualization, just click on the Sheet 1 tab in the bottom of the workbook.

You are all set!

How it works...

Tableau reads the file you connected to and recognizes fields and their respective data types. There are the following data types in Tableau:

  • Number (decimal)
  • Number (whole)
  • Date and time
  • Date
  • String
  • Boolean

After you have connected to the data source and you click on Sheet 1, you will see the Data pane on the left-hand side of the workspace, with all the fields from the data source listed, and their respective types marked by small symbols to the left of their names, as shown in the following screenshot:

The globe symbols in front of State, Longitude, and Latitude denotes the geographical roles of these fields, which are important when building maps. On the other hand, the Abc symbol signifies strings, while the # symbol denotes numerical values.

There's more...

Tableau allows users to connect to a wide range of data. You can connect to different types of files that are stored locally on your device, or data stored on the cloud or in relational or multidimensional databases. You can connect to the list of data that is available on the Start page, which opens when you launch Tableau Desktop, under Connect.

See also

  • For more on connecting to data, see the Tableau help resource on the topic at https://onlinehelp.tableau.com/current/pro/desktop/en-us/basicconnectoverview.html
You have been reading a chapter from
Tableau 2019.x Cookbook
Published in: Jan 2019 Publisher: Packt ISBN-13: 9781789533385
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime