PL-300 practice 5: top products
Each country manager wants to know how much their two best-selling products bring in, per year.
The best two are chosen per cell, by Sales Amount.
Your task
Create Top 2 Sales: the Sales Amount of the two best-selling products in each cell.
About this exercise
You practise exam-style task: topn with TOPN and SUMX. The exercise runs on a small bike-shop model with a Sales fact table and Product, Customer and Date dimensions, the same star schema in every lesson.
Your measure, Top 2 Sales, fills a Power BI-style matrix grouped by Customer[Country] and Date[Year]. As in a real report, each cell evaluates the measure in its own filter context, and the subtotals and the grand total are evaluated again in theirs rather than added up. When you check your answer, every cell is compared with the expected value, wrong cells are marked, and the hint is about the mistake you made.
Measures that already exist in the model: Sales Amount. Reference them in square brackets, for example [Sales Amount].
Where you start
Top 2 Sales =The result to build
| Year | |||
|---|---|---|---|
| Country | 2024 | 2025 | Total |
| France | 20,542.50 | 17,523.00 | 33,562.50 |
| Germany | 26,432.50 | 32,074.50 | 56,047.00 |
| Netherlands | 17,375.00 | 20,628.00 | 38,003.00 |
| United Kingdom | 24,982.50 | 15,716.00 | 39,637.50 |
| Total | 74,280.00 | 72,921.50 | 146,880.00 |
Last updated 10 November 2026
Opening the exercise…