How to count duplicate strings in an array

@william.coulson
find starter help here:
Array_ItemOccurence_CountReport.xaml (6.5 KB)

getting the duplicates only you can modify e.g.:
(From x In arrValues
Group x By k=x Into grp=Group
Where grp.Count > 1
Select dtReport.Rows.Add({k,grp.Count})).CopyToDataTable

3 Likes