Reduce rows by checking for duplicates in reference column
Please refer to the page for additional option switches when accessing the x-function from script
See the syntax here.
In the num variable, specify the minimum number of duplicated rows to keep. If the number of duplications of a row value is less than the value of num, the row will not be kept.