Complete the DAX formula to calculate total sales using the active relationship.
Total Sales = CALCULATE(SUM(Sales[Amount]), [1])The active relationship is used by default in CALCULATE, so no need to specify USERELATIONSHIP. Using FILTER keeps the active relationship context.
Complete the DAX formula to activate an inactive relationship between Sales and Date tables.
Total Sales by Ship Date = CALCULATE(SUM(Sales[Amount]), [1])USERELATIONSHIP activates an inactive relationship inside CALCULATE.
Fix the error in the DAX formula that tries to use an inactive relationship without USERELATIONSHIP.
Total Sales by Ship Date = CALCULATE(SUM(Sales[Amount]), [1])To use an inactive relationship in CALCULATE, you must specify USERELATIONSHIP.
Fill both blanks to calculate sales using the inactive relationship and filter only orders after 2020.
Total Sales After 2020 = CALCULATE(SUM(Sales[Amount]), [1], [2])
USERELATIONSHIP activates the inactive relationship on ShipDate, and FILTER limits sales to ShipDate after 2020.
Fill all three blanks to create a measure that sums sales amount using the inactive relationship, filters by ShipDate after 2020, and ignores other filters on Date.
Total Sales Custom = CALCULATE(SUM(Sales[Amount]), [1], [2], [3])
USERELATIONSHIP activates the inactive relationship, FILTER limits sales by ShipDate after 2020, and ALL(Date) removes other filters on Date to avoid conflicts.