DAX code
Cumulative Distinct Customers =
CALCULATE(
DISTINCTCOUNT('Sales'[CustomerID]),
FILTER(ALL('Date'[Date]), 'Date'[Date] <= MAX('Date'[Date]))
)
Counts how many distinct customers have ever purchased up to and including the current date filter context.
Type your table and column names once. Every measure below updates.
Cumulative Distinct Customers =
CALCULATE(
DISTINCTCOUNT('Sales'[CustomerID]),
FILTER(ALL('Date'[Date]), 'Date'[Date] <= MAX('Date'[Date]))
)
This counts a customer once even if they've purchased in multiple periods within the cumulative window.
Browse all 175 measures in the Power BI DAX Measures Library, or search the library for something similar to Cumulative Distinct Count.