Forum Discussion
Anonymous
9 years agoNot applicable
How to use filter with multiple values in DAX?
Hello guys, I am trying to create a measure TotalExaminationBacklog which counts all the examinationsIDs with the status WAI, VER, APP, HEL and SCH. But it seems that my measure (see image ...
- 9 years agoMy fault you have to use curly braces {...} instead of (...)
Regards
TomMartens
Super User
6 years agoHey Anonymous ,
maybe this measure will provide what you are looking for:
TotalFires =
SUMX(Query1,
IF(Query1[INCIDENT_CATEGORY] IN
{"Accidental Dwelling Fire",
"Accidental Non Domestic Fire",
"Accidental Other Primary Fire",
"Accidental Vehicle Fire",
"Accidental Small Fire",
"Chimney Fire",
"Deliberate Dwelling Fire",
"Deliberate Non Domestic Fire",
"Deliberate Small Fire",
"Deliberate Other Primary Fire",
"Deliberate Vehicle Fire"}
, 1 , BLANK())
)
If this does not solve your problem, please start a new question.
The error is due to the fact that COUNTX is not able to count BOOLEANs, a boolean is returned by column IN {...}
Regards,
Tom
Anonymous
6 years agoNot applicable