Forum Discussion
Anonymous
5 years agoNot applicable
DISTINCTCOUNT with multiple Filters
Hello, I am trying to get the count of a column where the column value is equal to something. I have the below formula which works with 1 filter: Windows = CALCULATE( DISTINCTCOUNT( 'enterprise-...
- 5 years ago
Anonymous , Try a measure like
CALCULATE(
DISTINCTCOUNT( 'enterprise-attack'[Value.x_mitre_platforms] ),
FILTER(
'enterprise-attack',[Value.x_mitre_platforms] in {"Windows","Linux","macOS"}
)
)
amitchandak
5 years agoSuper User
Anonymous , Try a measure like
CALCULATE(
DISTINCTCOUNT( 'enterprise-attack'[Value.x_mitre_platforms] ),
FILTER(
'enterprise-attack',[Value.x_mitre_platforms] in {"Windows","Linux","macOS"}
)
)
- Anonymous5 years agoNot applicable
Hello, thanks for that it doesnt appear to error anymore :). However, i only get an answer of 1 when ideally it should be 3?
- Anonymous5 years agoNot applicable
ignore. Appears to be now working. Thank you