Collapse categories less than x% in Graph

SPSS, Tricks

Sometimes there can be too many categories. This function will collapse the unwanted categories.