Implementing a top N filter

Top N filtering allows you to filter only the top N members of a dimension, which is determined by their value in another field you select.