I'm trying to count rows based on filter in row called flag.
I want to count only rows where flag is 1 or 2 and put that in variable since I'll need it for further calculation.
Sample data:
I have something like this so far but it's not working:
var average = CALCULATE(COUNTA(FILTER(table;[flag] = 1 && [flag] = 2)))
