filtering table according to dendrogram selection