Hi!
I need some help for Linq Code ; I want to do that mutible group by sum of column. So I have three columns and 10.000+ rows. I must group same rows and sum. I have below Linq codes;
GnlEnumDT => (From M In DT.AsEnumerable()
Group M By M_No = New With { key.MusteriNo = M.item(0), key.MusteriAdi = M.item(1) }
Into MGroup = Group Select New With { M_No.MusteriNo, M_No.MusteriAdi, .Toplam=MGroup.Sum(Function( x ) Double.Parse((x.Item(2).ToString.Replace(".","")).ToString.Replace(",",".")))}).toList
and
StrResult_=> String.Join(",",GenelIEFormulGelen(0).ToString.Split(",“c).Select(Function(item) item.ToString.Split(”=“c)(0).Replace(”{","").Trim))+System.Environment.NewLine+
String.Join(System.Environment.NewLine,GenelIEFormulGelen.Select(Function(row) String.Join(",",row.ToString.Split(",“c).Select(Function(item) item.ToString.Split(”=“c)(1).Replace(”}","").Trim.ToString))))
When I try it I am gettin an error at StrResult_ assign. “Assign: Index was outside the bounds of the array.” How can I run it within array boundaries. do you have any idea?
Thanks!
Happy Automation!
1 post - 1 participant