Complete the code to create a parameter that lets users select a year.
CREATE PARAMETER YearSelector AS [1];The parameter type for selecting a year should be INTEGER because years are whole numbers.
Complete the code to set the parameter's allowable values to a list of years from 2018 to 2022.
SET ALLOWABLE VALUES TO [1];Tableau parameters use LIST to specify exact allowable values.
Fix the error in the parameter control expression to filter data by the selected year.
FILTER [Sales] WHERE YEAR([Order Date]) = [1]In Tableau calculations, parameters are referenced with square brackets around their name.
Fill both blanks to create a calculated field that uses the parameter to filter sales above a threshold.
IF [Sales] [1] [2] THEN 'Above Threshold' ELSE 'Below Threshold' END
The comparison operator should be > to check if sales are above the threshold parameter named [SalesThreshold].
Fill all three blanks to create a parameter control that updates a sales target and calculates the difference.
CREATE PARAMETER [1] AS INTEGER; SET DEFAULT [2]; CALCULATED FIELD Difference = [Sales] - [3];
The parameter is named SalesTarget, default set to 100000, and referenced in calculation as [SalesTarget].