SQLDAXExcelPython
Leaderboard
RelationshipsMedium20 points

Sales by ship date

The active relationship to Calendar uses Sales[OrderDate]. There is also an inactive one on Sales[ShipDate]. Write a measure that returns [Total Sales] using the ship date relationship.

How your answer is tested

Your code becomes a measure named [Answer] and runs in this query:

EVALUATE
SUMMARIZECOLUMNS(
    'Calendar'[Year],
    "Answer", [Answer]
)
Show solutionLifetime

Runs in your browser. The open-source dax-sql compiler turns DAX into SQL, so this isn't Microsoft's engine. The questions here were checked against Power BI Desktop, but free-form queries can occasionally differ.

DAX measure
Loading editor…

Press Ctrl+Enter or Run to see the result here.