Forum Discussion
Thyago_Rezende
Resolver I
9 years agoDistinct Count over entire Calendar table
I need to retrieve the DISTINCTCOUNT customers only for the last buy it. But, my measure return the DISTINCT COUNT for every month. The picture below shows the behavior. The measure s...
- 9 years ago
Hi Anonymous, Greg_Deckler
I got it. The prior formula was correct. The filter context applied on Customer Table have changed the results. But, I didn´t understand that behavior it.
Anonymous
9 years agoNot applicable
HI Thyago_Rezende,
You can use 'lastdate','all' functions to achieve your requirement.
Measure = CALCULATE(DISTINCTCOUNT('Table'[Client]),FILTER(ALL('Table'),[Date]=LASTDATE(ALL('Table'[Date]))))
Regards,
Xiaoxin Sheng
Thyago_Rezende
Resolver I
9 years agoHi Anonymous, Greg_Deckler
I got it. The prior formula was correct. The filter context applied on Customer Table have changed the results. But, I didn´t understand that behavior it.