Complete the code to enable cross-filtering between two visuals in Power BI.
VisualInteractions.SetVisualInteraction([1])CrossFilter enables cross-filtering behavior between visuals in Power BI.
Complete the DAX measure to calculate total sales filtered by selected product category.
Total Sales Selected = CALCULATE(SUM(Sales[Amount]), [1](Products[Category]))ALLSELECTED returns the selected values in the current filter context, enabling cross-filtering.
Fix the error in the DAX formula to correctly apply cross-filtering on the 'Region' column.
Sales by Region = CALCULATE(SUM(Sales[Amount]), [1](Region[Name]))VALUES returns the distinct values of Region[Name] in the current filter context, enabling cross-filtering.
Fill both blanks to create a measure that shows sales only for selected regions and products.
Filtered Sales = CALCULATE(SUM(Sales[Amount]), [1](Region[Name]), [2](Products[Name]))
VALUES returns selected regions and products for cross-filtering.
Fill all three blanks to create a measure that calculates sales filtered by selected year, region, and product category.
Sales Filtered = CALCULATE(SUM(Sales[Amount]), [1](Calendar[Year]), [2](Region[Name]), [3](Products[Category]))
ALLSELECTED respects year selection, VALUES returns selected regions and product categories for cross-filtering.