Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Tableau 10 Business Intelligence Cookbook

You're reading from   Tableau 10 Business Intelligence Cookbook Create powerful, effective visualizations with Tableau 10

Arrow left icon
Product type Paperback
Published in Nov 2016
Publisher Packt
ISBN-13 9781786465634
Length 476 pages
Edition 1st Edition
Tools
Arrow right icon
Authors (2):
Arrow left icon
Donabel Santos Donabel Santos
Author Profile Icon Donabel Santos
Donabel Santos
Paul Banoub Paul Banoub
Author Profile Icon Paul Banoub
Paul Banoub
Arrow right icon
View More author details
Toc

Table of Contents (11) Chapters Close

Preface 1. Basic Charts FREE CHAPTER 2. Advanced Charts 3. Interactivity 4. Dashboards and Story Points 5. Maps and Geospatial Visualization 6. Analytics 7. Data Preparation A. Calculated Fields Primer B. Resources Index

Creating a text table (crosstab)

A text table is also often referred to as a crosstab, a shortened term for cross tabulation. Another common term that can be used to describe text tables is a spreadsheet. A text table is a series of rows and columns that have headers and numeric values. Text tables are great when the audience requires to see the individual values. A limitation of text tables is that it requires attentive processing—whoever is using the text table needs to focus on reading and comparing the numbers because any patterns or insights are not very easy to spot.

In this recipe, we will create a text table that shows the top 20 movies from 2007-2011, based on the worldwide gross amount.

Creating a text table (crosstab)

Getting ready

To follow this recipe, open B05527_01 – STARTER.twbx. Use the worksheet called Text Table, and connect to the HollywoodMostProfitableStories data source.

Getting ready

How to do it...

The following are the steps to create the crosstab:

  1. Change the default number format of Audience score %. You can do this by right-clicking the field Audience score % in the Measures section of the side bar, selecting Default properties and then Number Format…. In the window that shows up, set the following:
    • Number (Custom)
    • Decimal places: 0
    • Suffix %
  2. From Dimensions, drag Film to Rows.
  3. From Dimensions, drag Year to Rows.
  4. From Dimensions, drag Film to Filters. This will open a window with several options for filtering the Film field.
  5. Select the Top tab. Choose By field: and specify Top 20 by Average Rotten Tomatoes %, as shown here:
    How to do it...
  6. From Measures, drag Worldwide Gross Amount to Text in the Marks card.
  7. Right-click on the Worldwide Gross Amount pill in the Marks card, and choose Format.
  8. Format the Pane tab to use:
    • Currency (Custom)
    • Decimal places: 0
    • Prefix: $
    How to do it...
  9. Double-click on Audience score % in the Measures pane. This adds this measure to the text table. This also introduces a new Measure Values shelf in your canvas.
  10. From Measures, double-click on Rotten Tomatoes % to add this to the text table.
  11. Change the Rotten Tomatoes % aggregation to Average. You can do this by right-clicking on this pill in the Measure Values shelf, going to Measure (Sum), and changing this to Average.
  12. From Measures, double-click on Audience Score % to add this to the text table.
  13. Change the aggregation of Audience Score % to Average.
  14. From Measures, double-click on Profitability to add this to the text table.
  15. Rearrange the pills in the Measure Values shelf by dragging them manually to have the following order:
    How to do it...
  16. Right-click the Film pill in Rows, and click on Sort….
  17. In the Sort window, select:
    • Sort order Descending
    • Sort by field Worldwide Gross Amount using Aggregation of Sum

How it works...

A text table is simply a series of text values and numbers in a grid. This is a pretty common request for organizations that are very numbers-oriented, and have just started transitioning to a more visual culture.

To create a text table in Tableau, usually you identify the dimensions you want to place in your Rows and/or Columns. There are a couple ways to create the text table:

  • Drag the measures onto the middle canvas until you see the Show Me icon, and then let go of the mouse
  • Drag the first measure onto Text in the Marks card, and double-click on the rest of the measures you want to add

Both of these actions introduce the Measure Names and Measure Values pills in your visualization.

Note

Measure Names and Measure Values are discussed in more detail in Appendix C, Working with Tableau 10.

Measure Names, which is discrete, gets placed in your Rows or Columns as a header, and Measure Values gets placed onto the Text property in your Marks card:

How it works...

There's more...

Tableau places limitations on creating text tables. By default, for example, only six columns will display properly. If you have more than six columns, the leftmost columns get concatenated.

There's more...

To adjust this, you need to go to the Analysis menu, then Table Layout, then Advanced. There you can adjust the number of rows and column labels.

There's more...

Tableau still, however, restricts this number. The maximum you can use is sixteen (16). Ultimately, if you need more columns and want to display all the numbers in the table, but not necessarily support visual analysis, then perhaps Tableau isn't the tool that is meant to do that job. Tableau is a great tool for visual analysis and exploration, so it is best to use it as such.

See also

  • Please refer to the Creating a highlight table recipe in this chapter
You have been reading a chapter from
Tableau 10 Business Intelligence Cookbook
Published in: Nov 2016
Publisher: Packt
ISBN-13: 9781786465634
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 $19.99/month. Cancel anytime