0
0
Tableaubi_tool~10 mins

Line charts in Tableau - Interactive Code Practice

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

Complete the code to create a line chart by dragging the correct shelf to the Columns shelf.

Tableau
Drag the [1] field to the Columns shelf to create the x-axis.
Drag options to blanks, or click blank then click option'
ASales
BProduct Category
COrder Date
DCustomer Name
Attempts:
3 left
💡 Hint
Common Mistakes
Dragging a measure like Sales to the Columns shelf instead of a date field.
Using a categorical field like Customer Name for the x-axis.
2fill in blank
medium

Complete the code to add the measure to the Rows shelf for the y-axis.

Tableau
Drag the [1] field to the Rows shelf to plot the values.
Drag options to blanks, or click blank then click option'
ASales
BOrder Date
CRegion
DCustomer ID
Attempts:
3 left
💡 Hint
Common Mistakes
Dragging a dimension like Region instead of a measure.
Using a date field on the Rows shelf instead of Columns.
3fill in blank
hard

Fix the error in the line chart by choosing the correct mark type.

Tableau
Change the mark type to [1] to display a line chart.
Drag options to blanks, or click blank then click option'
ACircle
BSquare
CBar
DLine
Attempts:
3 left
💡 Hint
Common Mistakes
Leaving the mark type as Bar or Circle, which do not create line charts.
Not changing the mark type after adding data.
4fill in blank
hard

Fill both blanks to add a filter and color dimension to the line chart.

Tableau
Drag the [1] field to the Filters shelf and the [2] field to the Color shelf.
Drag options to blanks, or click blank then click option'
ARegion
BOrder Date
CProduct Category
DSales
Attempts:
3 left
💡 Hint
Common Mistakes
Using measures like Sales for filters or colors instead of dimensions.
Not adding any filter or color dimension.
5fill in blank
hard

Fill all three blanks to create a calculated field for cumulative sales over time.

Tableau
CREATE CALCULATED FIELD 'Cumulative Sales' AS RUNNING_[1](SUM([[2]])) OVER (ORDER BY [[3]])
Drag options to blanks, or click blank then click option'
ASUM
BSales
COrder Date
DCOUNT
Attempts:
3 left
💡 Hint
Common Mistakes
Using COUNT instead of SUM for sales aggregation.
Ordering by a non-date field.
Using RUNNING_TOTAL instead of RUNNING_SUM in Tableau syntax.