dtoutput = (From d In dtinput.AsEnumerable()
Where not(string.isnullorempty(“name).tostring)
Group d By k=d(“Name”).toString.Trim Into grp = Group Let sum = grp.sum(function(x) cdbl(x(“Value”))) Let ra = New Object(){k,sum} Select r = Dtoutput.Rows.Add(ra)).CopyToDataTable()
This query will select the data which with same name and add the value for the particular name
And also ignore if name column has empty
If no values found ,
I need to add condition that its not throw error source contains no datat rows