Total Sales by ShipDate = CALCULATE(SUM(Sales[Amount]), USERELATIONSHIP(Sales[ShipDate], Dates[Date]))
The inactive relationship between Sales[ShipDate] and Dates[Date] is not used by default. The USERELATIONSHIP function activates it temporarily inside the CALCULATE function, allowing the measure to filter by ShipDate.
Two cards side by side with clear titles and contrasting colors make it easy to compare sales by active and inactive relationships. Accessibility is improved by large fonts and clear labels.
Active relationships apply filters automatically in visuals and calculations. Inactive relationships exist in the model but do not filter data unless explicitly activated using functions like USERELATIONSHIP in DAX.
If the measure does not include USERELATIONSHIP to activate the inactive ShipDate relationship, the active OrderDate relationship is used by default, causing the measure to filter by OrderDate instead.
Because only one relationship can be active at a time, keep OrderDate active for normal filtering. Use USERELATIONSHIP in a separate measure to activate the inactive ShipDate relationship when needed. Both measures can then be shown side by side.