Doesn’t the query sort order get reflected in the unique values aggregation result? So as long as you have a query that sorts by the same field as your unqiue values aggregation, you should be fine…unless you have many records with the same value in that field, and run up against a query limit where potentially your aggregation could only have the one unique value, despite there being other unique values in the that column in the table…
1 Like