the reason is the comma in the set analysis. It is an "inclusive or", which means that the date is either bigger than VarDataFrom or smaller than VarDataTo.
Therefore the right formula is
See the textbox in the attached qvw for more information.
testVar.qvw 131.8 K