Forum Discussion
Anonymous
5 years agoNot applicable
DISTINCTCOUNT
This Data is about the Monthly Serviced units. One unit can get serviced multiple times in a month or year. However, when I count the total unit serviced I do not want the same unit being accounte...
- 5 years ago
Anonymous
5 years agoNot applicable
Here is the table and Desired Result for DISTINCT Count.
ryan_mayu
Super User
5 years agoAnonymous
maybe you can create a column
count = if(CALCULATE(COUNTROWS('Table'),FILTER('Table','Table'[Month]<=EARLIER('Table'[Month])&&'Table'[Model]=EARLIER('Table'[Model])&&'Table'[serialnumber]=EARLIER('Table'[serialnumber])))>1,0,1)
and put the new column in the value field
- Anonymous5 years agoNot applicable
Thank you Ryan! Your recommended measure works great. However, if a unit(ServiceNumber) has been serviced twice in the same month, then the count shows ‘0’ instead of 1. Can it be fixed for it? Thanks again.