Forum Discussion
adavid999
4 years agoHelper V
dax NOT in
Helllo, rather than writing out all this in example 1 (which gives correct result), how do I specify the NOT in (i want to count everything in table[sport] column except "09" and "99" 1. this g...
ryan_mayu
4 years agoSuper User
maybe you can try this
test3 =
CALCULATE(count(table[sport]),
(table[sport] <> "09"||
table[sport] <> "99" &&
table[year] = "2017/18")adavid999
4 years agoHelper V
hi ryan_mayu no this did not work. Your suggestion...
test3 =
CALCULATE(count(table[sport]),
(table[sport] <> "09"||
table[sport] <> "99" &&
table[year] = "2017/18")gives a different result to this (which gives the result I expect)
my measure =
CALCULATE(count(table[sport]),
table[sport] in {"01","02","03","04","05","06","07","08","10","11","12"},
table[year] = "2017/18")I want to count values that are not "09" or "99" from available values that are:
"01","02","03","04","05","06","07","08","09","10","11","12","99"
grateful for any help with this.