Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

DistinctCount with Filter of Measure

Hi,   I wanted to count the distinct serial number with 1) downtime lesser than 24 hours  2) downtime lesser than 24 hours and lesser than 2 visits   I have 3 slicers for users to select.   T...
  • amitchandak's avatar
    amitchandak
    6 years ago

    Anonymous , refer if this file can help

    Formula I tried

    <24 hours = CALCULATE(DISTINCTCOUNT('Table'[Serial Number]), FILTER('Table','Table'[Downtime (in hours)]<=24))
    <24 hours & <2 visits = COUNTX(FILTER(SUMMARIZE('Table', 'Table'[Serial Number], "_1",COUNT('Table'[Visit])),[_1]<=2),[Serial Number])