Forum Discussion
NVieira
8 years agoRegular Visitor
Count on distinct cell
Hi, I'm working with a dataset like the one below. I would like to count the number of "found"/"not found" for distinct IDs and with Status Closed So, for the example below the expected result w...
- 8 years ago
How about these 2 Measures... :smileyhappy:
Found Measure = CALCULATE ( DISTINCTCOUNT ( 'Table'[ID] ), FILTER ( 'Table', 'Table'[Reason] = "Found" && 'Table'[Status] = "Closed" ) ) Not Found Measure = CALCULATE ( DISTINCTCOUNT ( 'Table'[ID] ), FILTER ( 'Table', 'Table'[Reason] = "Not Found" && 'Table'[Status] = "Closed" ) )
Sean
8 years agoCommunity Champion
How about these 2 Measures... :smileyhappy:
Found Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
FILTER ( 'Table', 'Table'[Reason] = "Found" && 'Table'[Status] = "Closed" )
)
Not Found Measure =
CALCULATE (
DISTINCTCOUNT ( 'Table'[ID] ),
FILTER ( 'Table', 'Table'[Reason] = "Not Found" && 'Table'[Status] = "Closed" )
)