Menu
CoddyTech

Counting Distinct Things

Part of the Power BI Basics section of Coddy's Power BI journey. Lesson 10 of 28.

DISTINCTCOUNT counts each different value of a column once.

Customers = DISTINCTCOUNT(Sales[CustomerID])

A customer with ten orders has ten rows but counts once.

challenge icon

Challenge

Beginner

How many different customers does each shop have? Write Customers, counting each Sales[CustomerID] once. It is checked for each store.

Try it yourself

Customers =
StoreCustomers
Lisbon Riverside
Porto Ribeira
Madrid Centro
Barcelona Gracia
Berlin Mitte
Total
Fields
  • Sales
  • Products
  • Stores
    • StoreID
    • Store
    • City
    • Country
    • OpenDate
  • Customers
  • Dates
  • Targets

All lessons in Power BI Basics