do u want to show to expressions?
if yes then try this
if you want to implement the AND condition in one expression then try this:
count(if(IsScaning=0 and IsScaning=1, Measure value)
if still your issue is not resolved then post the sample app.