SQLDAXExcelPython
Leaderboard
Ranking and table queriesMedium20 points

Query: top five products

Write a DAX query that returns the five products with the highest [Total Sales]: Products[ProductName] and the sales value, highest first.

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 query
Loading editor…

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