0
0
Tableaubi_tool~10 mins

Highlight actions 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 highlight action that targets the 'Category' field.

Tableau
worksheet.dashboard().actions().addHighlightAction().setSourceField('[1]')
Drag options to blanks, or click blank then click option'
ASales
BCategory
CDate
DRegion
Attempts:
3 left
💡 Hint
Common Mistakes
Choosing a measure like 'Sales' instead of a dimension.
Using a field name that does not exist in the data.
2fill in blank
medium

Complete the code to set the highlight action to run on hover.

Tableau
highlightAction.setRunOn('[1]')
Drag options to blanks, or click blank then click option'
Aselect
Bclick
Chover
DdoubleClick
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'click' instead of 'hover' changes the interaction behavior.
Using an invalid trigger like 'doubleClick' which is not supported.
3fill in blank
hard

Fix the error in the code to correctly add a highlight action to the dashboard.

Tableau
dashboard.actions().[1](highlightAction)
Drag options to blanks, or click blank then click option'
AcreateHighlightAction
BaddFilterAction
CremoveHighlightAction
DaddHighlightAction
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'addFilterAction' which adds a filter action, not highlight.
Using 'createHighlightAction' which is not a valid method.
4fill in blank
hard

Fill both blanks to set the source and target fields for a highlight action.

Tableau
highlightAction.setSourceField('[1]').setTargetField('[2]')
Drag options to blanks, or click blank then click option'
ACategory
BRegion
CSales
DDate
Attempts:
3 left
💡 Hint
Common Mistakes
Using measure fields like 'Sales' which are not suitable for highlight actions.
Mixing up source and target fields.
5fill in blank
hard

Fill all three blanks to create a highlight action with source field, target field, and run on click.

Tableau
highlightAction.setSourceField('[1]').setTargetField('[2]').setRunOn('[3]')
Drag options to blanks, or click blank then click option'
ARegion
BCategory
Cclick
Dhover
Attempts:
3 left
💡 Hint
Common Mistakes
Swapping source and target fields.
Using 'hover' instead of 'click' when the task asks for click.