Complete the code to create a parameter that allows users to select a value.
CREATE PARAMETER 'Sales Threshold' AS [1];
The parameter type must be integer to allow numeric sales threshold selection.
Complete the code to set the parameter's allowable values to a range from 1000 to 10000.
SET 'Sales Threshold' VALUES TO RANGE([1], 10000, 1000);
The range starts at 1000, so the first value must be 1000.
Fix the error in the parameter action code to update the parameter on selection.
ON SELECT SET PARAMETER 'Sales Threshold' TO [1];
The SELECTED_VALUE() function correctly captures the selected value for the parameter update.
Fill both blanks to create a calculated field that uses the parameter to filter sales.
IF [Sales] [1] [2] THEN 'Above Threshold' ELSE 'Below Threshold' END
The condition checks if sales are greater than the parameter value.
Fill all three blanks to create a parameter action that updates the parameter when a user clicks a sales bar.
CREATE PARAMETER ACTION ON [1] TO SET 'Sales Threshold' TO [2] USING [3];
The action triggers on click, sets the parameter to the selected sales value, using the Sales field.