Dynamic number card based on workflow state for the user

I am trying to set dynamic number card for the user role based on workflow state for purchase invoice count. But in dynamic filter its shows like this .


Or give a proper way to set dynamic number count