Hands-on Practice 2
A second set of applied tasks.
You want each customer's first order date regardless of the view. Use:
- MIN(Order Date)
- {FIXED [Customer ID] : MIN([Order Date])}
- A table calculation
- A context filter
Answer: {FIXED [Customer ID] : MIN([Order Date])} — FIXED pins the calculation to Customer ID whatever is on the shelves.
A running total should restart for each region. Region should be:
- An addressing field
- A partitioning field
- On Filters
- On Pages
Answer: A partitioning field — Partitioning defines where the calculation resets; addressing is the direction it moves.
Which expression adds four months to a date?
- DATEADD('month', 4, [Date])
- DATEDIFF('month', 4, [Date])
- DATEPART('month', [Date])
- DATETRUNC('month', [Date])
Answer: DATEADD('month', 4, [Date]) — DATEADD shifts a date by an interval; DATEDIFF measures between two dates.
Which function tells you whether a value is a date?
- DATEPART()
- ISDATE()
- DATEVALUE()
- TYPEOF()
Answer: ISDATE() — ISDATE() returns true when the string can be interpreted as a date.
REPLACE() in Tableau:
- Replaces a data source
- Searches a string for a substring and substitutes it
- Replaces null with zero
- Renames a field
Answer: Searches a string for a substring and substitutes it — It is a string function. Use ZN() to turn nulls into zero.
Which function returns the number of items in a group?
- SUM()
- COUNT()
- TOTAL()
- INDEX()
Answer: COUNT() — COUNT() counts items; COUNTD() counts distinct items.
To create a column alias you would:
- Edit the extract
- Open the data source metadata and click the column name
- Use a calculated field
- Rename the sheet
Answer: Open the data source metadata and click the column name — In the data source page, click the column name in the metadata grid to rename it.
To check a table's metadata:
- Publish it
- Data → New connection, drag the table into the data pane
- Use Show Me
- Open the log file
Answer: Data → New connection, drag the table into the data pane — The data source page shows the metadata grid for the connected table.
You want a chart showing task progress over a period. Use:
- Pie chart
- Gantt chart
- Histogram
- Packed bubble
Answer: Gantt chart — A Gantt chart shows progress of a task or resource over time and needs a date dimension.
To predict future values of a measure, Tableau uses:
- Linear regression only
- Exponential smoothing
- A neural network
- Clustering
Answer: Exponential smoothing — Tableau's forecasting uses exponential smoothing models.