1. A computer-implemented method comprising: receiving, at a computer, a plurality of clusters associated with at least one dataset of records possessing dataset attributes, and a plurality of user-specified attributes wherein the user-specified attributes denote values corresponding to the dataset attributes; determining, using a computer, a target ratio for each of the clusters, wherein the target ratio comprises a number of records that possess the user specified attributes within each cluster divided by a total number of records within each cluster; determining, using a computer, a target count for each of the clusters, wherein the target count comprises the number of records that possess the user specified attributes within each cluster; receiving, at a computer, a user defined weight; and determining, in a computer, an optimal grouping of clusters using at least one of: an average function, wherein the average function incorporates the target ratio, the target count, and the user-defined weight, and a maximization function, wherein the maximization function incorporates the target ratio, the target count, and the user-defined weight.