Bird
Raised Fist0
Tableaubi_tool~10 mins

Text tables in Tableau - Interactive Code Practice

Choose your learning style10 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a text table showing sales by region.

Tableau
SUM([1])
Drag options to blanks, or click blank then click option'
AQuantity
BProfit
CDiscount
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Using Profit instead of Sales will show profit values, not sales.
Using Quantity or Discount will not show sales amounts.
2fill in blank
medium

Complete the code to display the average profit per category in the text table.

Tableau
AVG([1])
Drag options to blanks, or click blank then click option'
ASales
BProfit
CQuantity
DDiscount
Attempts:
3 left
💡 Hint
Common Mistakes
Using Sales will show average sales, not profit.
Quantity and Discount are unrelated to profit averages.
3fill in blank
hard

Fix the error in the calculation to show total quantity sold.

Tableau
SUM([1])
Drag options to blanks, or click blank then click option'
AQuantity
BProfit
CSales
DDiscount
Attempts:
3 left
💡 Hint
Common Mistakes
Using Sales or Profit will sum money amounts, not item counts.
Discount is unrelated to quantity sold.
4fill in blank
hard

Fill both blanks to create a calculated field that shows profit ratio as a percentage.

Tableau
SUM([1]) / SUM([2]) * 100
Drag options to blanks, or click blank then click option'
AProfit
BSales
CQuantity
DDiscount
Attempts:
3 left
💡 Hint
Common Mistakes
Using Quantity or Discount in the denominator will give incorrect ratios.
Reversing numerator and denominator will invert the ratio.
5fill in blank
hard

Fill all three blanks to create a calculated field that shows average discount per quantity sold.

Tableau
SUM([1]) / SUM([2]) * [3]
Drag options to blanks, or click blank then click option'
ADiscount
BQuantity
C100
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Using Sales instead of Quantity will give incorrect per-unit calculation.
Not multiplying by 100 will leave the result as a decimal, not a percentage.

Practice

(1/5)
1. What is the primary purpose of a Text table in Tableau?
easy
A. To visualize data distribution with bars
B. To create interactive maps with geographic data
C. To display exact values in rows and columns for detailed comparison
D. To show trends over time using lines

Solution

  1. Step 1: Understand the function of text tables

    Text tables show data in rows and columns with exact values, making detailed comparisons easy.
  2. Step 2: Compare with other chart types

    Maps, line charts, and bar charts serve different visualization purposes, not exact value display.
  3. Final Answer:

    To display exact values in rows and columns for detailed comparison -> Option C
  4. Quick Check:

    Text tables = exact value display [OK]
Hint: Text tables show exact numbers in rows and columns [OK]
Common Mistakes:
  • Confusing text tables with charts like bar or line graphs
  • Thinking text tables are for geographic data
  • Assuming text tables show trends or distributions
2. Which of the following is the correct way to create a text table in Tableau?
easy
A. Drag a measure to Rows and a dimension to Columns
B. Drag dimensions to Rows and Columns, and measures to Text on Marks card
C. Drag measures to Filters and dimensions to Pages
D. Drag dimensions to Filters and measures to Tooltip

Solution

  1. Step 1: Identify how to build text tables

    Text tables require dimensions on Rows and Columns, and measures placed on Text in the Marks card to show values.
  2. Step 2: Eliminate incorrect options

    Dragging measures to Filters or Tooltip does not create text tables; Filters limit data, Tooltip shows hover info.
  3. Final Answer:

    Drag dimensions to Rows and Columns, and measures to Text on Marks card -> Option B
  4. Quick Check:

    Dimensions on Rows/Columns + Measures on Text = Text table [OK]
Hint: Put dimensions on Rows/Columns, measures on Text [OK]
Common Mistakes:
  • Placing measures on Rows or Columns instead of Text
  • Using Filters or Tooltip instead of Text for measures
  • Confusing Pages shelf with Rows or Columns
3. Given a Tableau worksheet with 'Category' on Rows, 'Region' on Columns, and 'Sales' on Text, what will the text table display?
medium
A. Sum of Sales for each Category and Region combination
B. Average Sales for each Region only
C. Total Sales for all Categories combined
D. Count of Categories per Region

Solution

  1. Step 1: Understand the layout of the text table

    Dimensions 'Category' and 'Region' create rows and columns, so each cell corresponds to a Category-Region pair.
  2. Step 2: Interpret the measure on Text

    'Sales' on Text shows the aggregated value (default sum) for each cell's Category and Region combination.
  3. Final Answer:

    Sum of Sales for each Category and Region combination -> Option A
  4. Quick Check:

    Dimensions define cells, measure shows sum per cell [OK]
Hint: Text shows measure aggregated by row and column dimensions [OK]
Common Mistakes:
  • Thinking it shows average instead of sum
  • Assuming total sales without breakdown
  • Confusing count of categories with sales sum
4. You created a text table but see blank cells where you expected sales values. What is the most likely cause?
medium
A. You dragged the measure to Filters instead of Text
B. You used a continuous field on Rows instead of discrete
C. You placed dimensions on the Tooltip shelf
D. There is no data for those Category and Region combinations

Solution

  1. Step 1: Analyze blank cells in text tables

    Blank cells usually mean no data exists for that combination of dimension values.
  2. Step 2: Check other options for errors

    Dragging measure to Filters would filter data, not cause blanks in expected cells; Tooltip does not affect layout; continuous fields change axis but don't cause blanks.
  3. Final Answer:

    There is no data for those Category and Region combinations -> Option D
  4. Quick Check:

    Blank cells = missing data for dimension pairs [OK]
Hint: Blank cells mean no data for those dimension pairs [OK]
Common Mistakes:
  • Assuming syntax error causes blanks
  • Thinking Tooltip shelf affects cell values
  • Confusing continuous vs discrete fields as cause
5. You want to create a text table showing total sales by Category and Region, but also want to highlight sales above $50,000 in red text. How can you achieve this in Tableau?
hard
A. Use a calculated field with IF SUM(Sales) > 50000 THEN 'Red' ELSE 'Black', then place it on Color in Marks card
B. Drag Sales to Filters and set condition sales > 50000
C. Place Category on Tooltip and Region on Detail
D. Use Pages shelf to filter sales above 50000

Solution

  1. Step 1: Create a calculated field for color coding

    Write a calculation like IF SUM(Sales) > 50000 THEN 'Red' ELSE 'Black' to assign colors based on sales.
  2. Step 2: Apply color to text in the text table

    Place this calculated field on Color in the Marks card to change text color conditionally.
  3. Step 3: Verify other options are incorrect

    Filters limit data but don't color text; Tooltip and Pages do not control text color.
  4. Final Answer:

    Use a calculated field with IF SUM(Sales) > 50000 THEN 'Red' ELSE 'Black', then place it on Color in Marks card -> Option A
  5. Quick Check:

    Conditional color via calculated field + Color shelf [OK]
Hint: Use IF condition in calculated field and put on Color shelf [OK]
Common Mistakes:
  • Using Filters instead of color for highlighting
  • Placing dimensions on Tooltip instead of Color
  • Trying to filter with Pages shelf for color
Recommended

Ready to prove it?

Pass the test and this pattern moves unknown strong while earning +1 Grip toward your certificate.

10 questions~5 mineasy hard