Get Count of Distinct values in Column of SharePoint list

added by ikapoor
11/29/2012 11:11:19 AM

0 Kicks, 262 Views

As the title suggest this is a JavaScript & Jquery code that you can use when you need to get Count of Distinct values in a Column of SharePoint list. By Count of Distinct Values I mean, If you have a column “Department” with values “IT”, “HR” and “Operations” the script below will get the Count of the Items where the value of the column is IT or HR or Operations. So the result will be an array with