Limit unique values for field

Is there a way to limit the number of unique values for a field? For example, return 1000 rows order data, but limit “company” to 150 different unique companies?

1 Like