Complete the code to create a parameter that allows users to select a year.
YearParameter = SELECTEDVALUE([1])The parameter should reference the Year column to allow selection of a year.
Complete the DAX expression to filter sales data based on the selected parameter.
FilteredSales = CALCULATE(SUM(Sales[Amount]), Sales[Year] = [1])The filter should use the YearParameter to filter sales by the selected year.
Fix the error in the parameter usage to correctly filter the data.
FilteredData = FILTER(Sales, Sales[Year] = [1])The filter condition must compare the Sales[Year] column to the YearParameter value.
Fill both blanks to create a parameter and use it in a measure to calculate total sales.
SelectedYear = [1] TotalSales = CALCULATE(SUM(Sales[Amount]), Sales[Year] = [2])
First, create the SelectedYear parameter using SELECTEDVALUE on the Year column. Then use SelectedYear in the filter condition.
Fill all three blanks to define a parameter, create a measure using it, and filter a table visual.
YearParam = [1] SalesByYear = CALCULATE(SUM(Sales[Amount]), Sales[Year] = [2]) FilteredTable = FILTER(Sales, Sales[Year] = [3])
Define YearParam using SELECTEDVALUE on Year[Year]. Use YearParam in both the measure and the filter to apply the parameter selection.