Complete the code to create a parameter that allows users to select a value.
CREATE PARAMETER [1] AS INTEGER;The parameter name must be a simple identifier like SalesRange. Other options are either expressions or unrelated names.
Complete the code to use a parameter in a calculated field to filter sales above the selected value.
IF SUM(Sales) > [1] THEN 'Above' ELSE 'Below' END
The parameter [SalesRange] is used to compare sales values dynamically based on user input.
Fix the error in the parameter control code to allow user input of a date.
CREATE PARAMETER [1] AS DATE;The parameter name DateSelect clearly indicates it is for date selection, matching the DATE type.
Fill both blanks to create a calculated field that uses a parameter to switch between sales and profit.
IF [1] = 'Sales' THEN SUM(Sales) ELSE [2] END
The parameter [MeasureSelector] controls the choice, and SUM(Profit) is the alternative measure.
Fill all three blanks to create a dynamic filter using a parameter for region selection.
IF [Region] = [1] THEN [2] ELSE [3] END
The parameter [RegionSelector] is compared to the region field. If matched, sales are summed; otherwise, zero is returned to exclude.