Search icon
Subscription
0
Cart icon
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
Tableau 10 Business Intelligence Cookbook

You're reading from  Tableau 10 Business Intelligence Cookbook

Product type Book
Published in Nov 2016
Publisher Packt
ISBN-13 9781786465634
Pages 476 pages
Edition 1st Edition
Languages
Authors (2):
Donabel Santos Donabel Santos
Profile icon Donabel Santos
Paul Banoub Paul Banoub
Profile icon Paul Banoub
View More author details

Table of Contents (17) Chapters

Tableau 10 Business Intelligence Cookbook
Credits
About the Author
Acknowledgements
About the Reviewer
www.PacktPub.com
Preface
1. Basic Charts 2. Advanced Charts 3. Interactivity 4. Dashboards and Story Points 5. Maps and Geospatial Visualization 6. Analytics 7. Data Preparation Calculated Fields Primer Resources Index

Pivoting columns


In this recipe, we will prepare the data set that we used in the Creating a population pyramid recipe of Chapter 2, Advanced Charts. The original file, which is a comma separated value (CSV) file, looks like the following:

Getting ready

To follow this recipe, download the file from BCStats using the following URL:

http://www.bcstats.gov.bc.ca/StatisticsBySubject/Demography/PopulationProjections.aspx.

When you download, make the following selections and click on Generate Output:

  • Select British Columbia for Region

  • Select all the years

  • Select totals

  • Select 5-Year Age Groups

Beside the result pane, click on the CSV icon at the top-right corner of the result pane to download the .csv file. Save the file as Population_Projections.csv.

How to do it...

Here are the steps to prepare the .csv file:

  1. Click on New Data Source icon and connect to the text file in this recipe:

  2. Select all the age groups that are presented as individual columns.

  3. While all the age group columns are selected, right-click...

lock icon The rest of the chapter is locked
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 $15.99/month. Cancel anytime}