filter stats based on lookup for a topic