For this you need single-quotes around your variable: Count({<Date={'$(vMinDate)'} >} Name) and the format from the variable needs to be exactly the same like this from field Date. This meant '30.11.2016' won't match with 42704 or '2016/11/30' or others.