Updated to field name with special character to be in single quotes inside eval
@srichansen I know you have a working query, how about this query which does not require field rename? If the output is what you need, you can compare this and your query performance in the Job Inspector.
index="chb" "Aanpassing motorisch beperkten"="*" "Aanpassing visueel beperkten"="*"
| stats count as totaal, count(eval('Aanpassing motorisch beperkten'="Y" AND 'Aanpassing visueel beperkten'="Y")) as toegankelijk by WegbeheerderNaam
| sort -totaal
Also following is run anywhere sample
|makeresults
| eval "Test 1"="Y"
| eval "Test 2"="Y"
| stats count as Total, count(eval('Test 1'="Y" AND 'Test 2'="Y")) as Count by _time
| sort -Total
... View more