Forum Discussion
mccollough
Helper I
4 years agoCalculate new clients over time
Let's say you want to trend the number of distinct client ID's over time from a table of invoices. I have an invoice table that looks like this Date Client ID Sale Amount 1/1/2021 100...
- 4 years ago
This looks like a standard cumulative total pattern.
Client Count = VAR CurrDate = MAX ( dimDate[Date] ) RETURN CALCULATE ( DISTINCTCOUNT ( Table1[Client ID] ), dimDate[Date] <= CurrDate )
AlexisOlson
Super User
4 years agoThis looks like a standard cumulative total pattern.
Client Count =
VAR CurrDate = MAX ( dimDate[Date] )
RETURN
CALCULATE ( DISTINCTCOUNT ( Table1[Client ID] ), dimDate[Date] <= CurrDate )mccollough
Helper I
4 years agoYou're a wizard Harry
Thank you so much for the help!!!