Groupby in Datatable using compute
Groupby in Datatable using compute
![ishamaurya](https://secure.gravatar.com/avatar/a464023e01b5ac5f8d36a8b8f988433e/?default=https%3A%2F%2Fvanillicon.com%2Fa464023e01b5ac5f8d36a8b8f988433e_200.png&rating=g&size=120)
I have a datatable containing 3 columns and several rows eg
table dtgroups
Name Score1 Score 2
A 10 20
20 30
C 10 20
A 11 33
B 11 10
20 20
B 11 10
In the above table in column name i have A,B,C and " " rows.I want to use compute function get the result
Name Score1 Score 2
A 21 53
B 22 20
C 10 20
31 40
But i am unable to get the sum of score1 and score 2 for the row ""
Can any one help me out?
table dtgroups
Name Score1 Score 2
A 10 20
20 30
C 10 20
A 11 33
B 11 10
20 20
B 11 10
In the above table in column name i have A,B,C and " " rows.I want to use compute function get the result
Name Score1 Score 2
A 21 53
B 22 20
C 10 20
31 40
But i am unable to get the sum of score1 and score 2 for the row ""
Can any one help me out?
This discussion has been closed.
Replies
In what form do you have your data before you make a DataTable with it?