SQLDAXExcelPython
LeaderboardRunLifetime
RelationshipsHard30 points

Products sold per region

Write a measure that counts rows in Products that were sold in the current region. A filter on Customers reaches Sales, but it does not flow on to Products, so make the Sales to Products relationship filter in both directions for this one measure.

Hard questions are part of Lifetime and Pro. Read it here, and unlock running and checking your answer from the plans.

How your answer is tested

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

EVALUATE
SUMMARIZECOLUMNS(
    Customers[Region],
    "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.