Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to create a cluster using Tableau's built-in clustering feature.
Tableau
CREATE CLUSTER [1] ON Sales, Profit Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using reserved words like 'group' or 'segment' as cluster names.
Using names with spaces or special characters.
✗ Incorrect
The cluster name must be a valid identifier. 'cluster1' is a clear and valid name.
2fill in blank
mediumComplete the code to specify the number of clusters in Tableau.
Tableau
CREATE CLUSTER cluster1 WITH [1] = 3 ON Sales, Profit
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'k' which is common in other tools but not Tableau.
Using 'count' which is unrelated.
✗ Incorrect
Tableau uses 'num_clusters' to specify the number of clusters in clustering commands.
3fill in blank
hardFix the error in the code to correctly create clusters in Tableau.
Tableau
CREATE CLUSTER cluster1 WITH num_clusters = [1] ON Sales, Profit Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using a string instead of a number.
Using a float instead of an integer.
✗ Incorrect
The number of clusters must be an integer without quotes or decimals.
4fill in blank
hardFill both blanks to create a cluster and specify the fields to cluster on.
Tableau
CREATE CLUSTER [1] WITH num_clusters = 4 ON [2]
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using invalid cluster names.
Choosing unrelated fields for clustering.
✗ Incorrect
The cluster name is 'clusterA' and the fields to cluster on are 'Sales, Profit'.
5fill in blank
hardFill all three blanks to create a cluster, specify number of clusters, and fields.
Tableau
CREATE CLUSTER [1] WITH [2] = [3] ON Sales, Profit
Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'k' instead of 'num_clusters'.
Using a string for the number of clusters.
✗ Incorrect
The cluster is named 'clusterX', the parameter is 'num_clusters', and the value is 5.