Case 1: sales KPIs on the dashboard

The sales dashboard starts with three questions: how many customers does each rep serve, how big is an order on average, and who leads on sales?

In short: DISTINCTCOUNT(Orders[CustomerID]) counts distinct customers, DIVIDE([Total Sales], COUNTROWS(Orders)) gives the average order value. Show sales per rep as a bar chart with a slicer on the year.

Task 1: distinct customers per rep

Task For 2026 the head of sales wants to know how many different customers each rep served, not how many orders. Create the measure "Customer Count": the number of distinct customers in Orders.

Orders 221 rows, 5 columns
OrderIDDateCustomerIDRepIDAmount
10014 Jan 202510532850
100216 Jan 202510118730
100319 Jan 202510544650
10041 Feb 202510325210
100511 Feb 2025109511440
100611 Feb 202511162000
100711 Feb 202511323850
100812 Feb 202510325670
100913 Feb 202510427380
101013 Feb 202510958250
101116 Feb 202510117650
101221 Feb 202510126750

Showing the first 12 of 221 rows.

Measures: [Total Sales]

Customer 16 rows, 3 columns
CustomerIDCustomerIndustry
101Berg Engineering LtdManufacturing
102Northlight Trading CoRetail
103Harbor Logistics IncServices
104Crane Electric plcManufacturing
105Sunfield Markets LLCRetail
106Alpine Tools LtdManufacturing
107Riverside Consulting LLCServices
108Lakeside Print CoServices
109Rhine Steel IncManufacturing
110West End Fashion LtdRetail
111Valley Wine Merchants LLCRetail
112Midland Services LtdServices

Showing the first 12 of 16 rows.

SalesRep 6 rows, 3 columns
RepIDNameRegion
1Emma ClarkeNorth
2Tom WolfNorth
3Ravi PatelSouth
4Lucy EvansSouth
5Sam KerrWest
6Mia LangWest
Target 144 rows, 3 columns
DateRepIDTargetAmount
1 Jan 202517500
1 Feb 202517500
1 Mar 202517500
1 Apr 202517500
1 May 202519000
1 Jun 202519500
1 Jul 202519500
1 Aug 202517500
1 Sep 202517500
1 Oct 202519000
1 Nov 202519500
1 Dec 202519000

Showing the first 12 of 144 rows.

Measures: [Total Target]

Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

Showing the first 12 of 730 rows.

A customer with ten orders is one customer, so the measure counts distinct values instead of rows, as in the lesson on measures. Look at the total row: it shows 16 customers, while the rows add up to 23. Some customers were served by two reps in 2026, for example when a colleague from the same region stepped in.

Task 2: average order value

Task Create the measure "Avg Order Value": sales divided by the number of orders. Use DIVIDE.

Orders 221 rows, 5 columns
OrderIDDateCustomerIDRepIDAmount
10014 Jan 202510532850
100216 Jan 202510118730
100319 Jan 202510544650
10041 Feb 202510325210
100511 Feb 2025109511440
100611 Feb 202511162000
100711 Feb 202511323850
100812 Feb 202510325670
100913 Feb 202510427380
101013 Feb 202510958250
101116 Feb 202510117650
101221 Feb 202510126750

Showing the first 12 of 221 rows.

Measures: [Total Sales]

Customer 16 rows, 3 columns
CustomerIDCustomerIndustry
101Berg Engineering LtdManufacturing
102Northlight Trading CoRetail
103Harbor Logistics IncServices
104Crane Electric plcManufacturing
105Sunfield Markets LLCRetail
106Alpine Tools LtdManufacturing
107Riverside Consulting LLCServices
108Lakeside Print CoServices
109Rhine Steel IncManufacturing
110West End Fashion LtdRetail
111Valley Wine Merchants LLCRetail
112Midland Services LtdServices

Showing the first 12 of 16 rows.

SalesRep 6 rows, 3 columns
RepIDNameRegion
1Emma ClarkeNorth
2Tom WolfNorth
3Ravi PatelSouth
4Lucy EvansSouth
5Sam KerrWest
6Mia LangWest
Target 144 rows, 3 columns
DateRepIDTargetAmount
1 Jan 202517500
1 Feb 202517500
1 Mar 202517500
1 Apr 202517500
1 May 202519000
1 Jun 202519500
1 Jul 202519500
1 Aug 202517500
1 Sep 202517500
1 Oct 202519000
1 Nov 202519500
1 Dec 202519000

Showing the first 12 of 144 rows.

Measures: [Total Target]

Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

Showing the first 12 of 730 rows.

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

Every row in Orders is exactly one order, so COUNTROWS counts the orders. DIVIDE protects against dividing by zero when a region has no order in a period. AVERAGE(Orders[Amount]) calculates the same here, but the task asks for DIVIDE so you practice the pattern for ratios.

Task 3: sales per rep as a bar chart

Task For the sales dashboard: build a bar chart with SalesRep[Name] on the Y-axis and [Total Sales] on the X-axis, with a slicer on Date[Year] set to 2026.

Orders 221 rows, 5 columns
OrderIDDateCustomerIDRepIDAmount
10014 Jan 202510532850
100216 Jan 202510118730
100319 Jan 202510544650
10041 Feb 202510325210
100511 Feb 2025109511440
100611 Feb 202511162000
100711 Feb 202511323850
100812 Feb 202510325670
100913 Feb 202510427380
101013 Feb 202510958250
101116 Feb 202510117650
101221 Feb 202510126750

Showing the first 12 of 221 rows.

Measures: [Total Sales]

Customer 16 rows, 3 columns
CustomerIDCustomerIndustry
101Berg Engineering LtdManufacturing
102Northlight Trading CoRetail
103Harbor Logistics IncServices
104Crane Electric plcManufacturing
105Sunfield Markets LLCRetail
106Alpine Tools LtdManufacturing
107Riverside Consulting LLCServices
108Lakeside Print CoServices
109Rhine Steel IncManufacturing
110West End Fashion LtdRetail
111Valley Wine Merchants LLCRetail
112Midland Services LtdServices

Showing the first 12 of 16 rows.

SalesRep 6 rows, 3 columns
RepIDNameRegion
1Emma ClarkeNorth
2Tom WolfNorth
3Ravi PatelSouth
4Lucy EvansSouth
5Sam KerrWest
6Mia LangWest
Target 144 rows, 3 columns
DateRepIDTargetAmount
1 Jan 202517500
1 Feb 202517500
1 Mar 202517500
1 Apr 202517500
1 May 202519000
1 Jun 202519500
1 Jul 202519500
1 Aug 202517500
1 Sep 202517500
1 Oct 202519000
1 Nov 202519500
1 Dec 202519000

Showing the first 12 of 144 rows.

Measures: [Total Target]

Date 730 rows, 4 columns
DateYearMonthMonthName
1 Jan 202520251Jan
2 Jan 202520251Jan
3 Jan 202520251Jan
4 Jan 202520251Jan
5 Jan 202520251Jan
6 Jan 202520251Jan
7 Jan 202520251Jan
8 Jan 202520251Jan
9 Jan 202520251Jan
10 Jan 202520251Jan
11 Jan 202520251Jan
12 Jan 202520251Jan

Showing the first 12 of 730 rows.

This exercise is part of Premium.

Premium unlocks every exercise in every lesson, unlimited practice with fresh tasks and the final test with certificate.

See Premium Already Premium? Log in

The first exercise in this lesson is free.

The lesson on creating visuals shows how to build visuals and slicers. On the finished dashboard the KPIs from tasks 1 and 2 usually sit as cards above the chart.

Common mistakes

COUNTROWS instead of DISTINCTCOUNT

COUNTROWS(Orders) counts orders, not customers. For Tom Wolf that gives 24 instead of 5.

COUNT on the customer ID

COUNT(Orders[CustomerID]) counts every non-blank value, so again every order.

In real Power BI

  • Always count customers in the fact table. COUNTROWS(Customer) counts every customer in the master data, including those without an order in the period, as long as the relationship does not pass the filter from Orders to Customer.
  • Measures like these suit the cards at the top of a dashboard: one number that recalculates with every slicer.

Check your result

  • Task 1: Tom Wolf has five distinct customers in 2026, Emma Clarke and Sam Kerr three each.
  • Task 2: An order brings 5,674.09 on average in the North, 3,926.50 in the South and 4,843.77 across all regions.
  • Task 3: Sam Kerr is at the top with 133,720, Mia Lang at the bottom with 50,500.

Next: case 2, target attainment

The targets per rep come in as a table of their own, and the dashboard shows who meets their target.

Go to case 2

Back to the course overview.

Write to us

Choose language

Select your preferred language