Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
306 Points
523 Posts
Apr 26, 2012 10:11 AM|LINK
Hi All,
I having problem on .Select() bold section:-
DataSet1.TotalRevenueByMonthRow totalPendingNew = (DataSet1.TotalRevenueByMonthRow)dataSet1.TotalRevenueByMonth.Where(p => p.totalcategory.Equals(Helpers.TotalCategory.PNEWBUSINESS)).Select(k=>k.totalcategory,productFamily,sum(field1),sum(field2)).GroupBy(p=>p.totalcategory, p=>p.productfamily).FirstOrDefault();
Can anyone help me with this?
Thank you.
Regards,
Micheale
micnie2020
Member
306 Points
523 Posts
DataSet .Select and .GroupBy
Apr 26, 2012 10:11 AM|LINK
Hi All,
I having problem on .Select() bold section:-
DataSet1.TotalRevenueByMonthRow totalPendingNew = (DataSet1.TotalRevenueByMonthRow)dataSet1.TotalRevenueByMonth.Where(p => p.totalcategory.Equals(Helpers.TotalCategory.PNEWBUSINESS)).Select(k=>k.totalcategory,productFamily,sum(field1),sum(field2)).GroupBy(p=>p.totalcategory, p=>p.productfamily).FirstOrDefault();
Can anyone help me with this?
Thank you.
Regards,
Micheale