Forum Discussion
LangeJan
Helper I
3 years agoTotal count in a period
Hi I would like to count the total number of customers, so I can show that i 2019 we had 6 customers and in 2020 we had 7 customers and so on. Which function is the right one to choose for that? ...
MFelix
Super User
3 years agoHi LangeJan ,
Create the following two measures:
Cumulative customers = CALCULATE(DISTINCTCOUNT('Table'[CustNumber]), 'Table'[year]<= MAX('Table'[year]))
var cumulative =
[Cumulative customers]
- CALCULATE ( [Cumulative customers], 'Table'[year] = MAX ( 'Table'[year] ) - 1 )