DAX code
Customers with No Sales in Period =
VAR CustomersWithSales = VALUES('Sales'[CustomerID])
VAR AllCustomers = VALUES('Customer'[CustomerID])
RETURN
COUNTROWS(EXCEPT(AllCustomers, CustomersWithSales))
Counts customers from a full customer dimension who have zero sales in the current filter context.
Type your table and column names once. Every measure below updates.
Customers with No Sales in Period =
VAR CustomersWithSales = VALUES('Sales'[CustomerID])
VAR AllCustomers = VALUES('Customer'[CustomerID])
RETURN
COUNTROWS(EXCEPT(AllCustomers, CustomersWithSales))
Requires a full Customer dimension table, not just the customer IDs that appear in the Sales table.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Customers with No Sales in Period.