considering type and producer filters for histogram