Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

Sharepoint Powershell Groupby Number column

$
0
0

Hi All, 

I have a sharepoint column with Number Type

When i run the PS script to groupby this number number the count comeback as empty

$web = Get-SPWeb -Identity "http://url/"
$list = $web.Lists["ListName"]
$colname="Col Name"
$AllDuplicateNames = $list.Items.GetDataTable() | Group-Object  $colname | ?{$_.count -gt 1} | %{$_.Title}
write-host $AllDuplicateNames.Count

but when i create a calculated column based on this column , i get back the result. What could be the reason ?



Whenever you see a reply and if you think is helpful, click "Alternate TextVote As Helpful"! And whenever you see a reply being an answer to the question of the thread, click "Alternate TextMark As Answer


Viewing all articles
Browse latest Browse all 11571

Trending Articles