I get an object like following:
$scope.Students = [{
"Name": "Muffin 1",
"RollNo": "12312",
"Class": "Standard B",
"Performances": [{
"Group": "Science",
"Subject": "Math",
"Mark": 99
}, {
"Group": "Science",
"Subject": "Physics",
"Mark": 99
}, {
"Group": "Arts",
"Subject": "Drawing",
"Mark": 99
}, {
"Group": "Arts",
"Subject": "Poetry",
"Mark": 99
}]
}, {
"Name": "Muffin 2",
"RollNo": "1232",
"Class": "Standard A",
"Performances": [{
"Group": "Science",
"Subject": "Chemistry",
"Mark": 99
}, {
"Group": "Science",
"Subject": "Physics",
"Mark": 90
}, {
"Group": "Arts",
"Subject": "Drawing",
"Mark": 99
}, {
"Group": "Commerce",
"Subject": "Marketing",
"Mark": 99
}]
}];
And I want to create a table like this:

Fixed known value for Performances.Group is: Science, Arts or Commerce But Subject and Mark is always variable. So What I have to do is putting all subject name in left column and then if student has mark for that subject put it in students column. Could any one please help me to solve this problem! Here is Plunker Link : http://plnkr.co/edit/vvLL00crhwSq4I6pjjUx?p=preview
Although, I could filter all the performances by Group but then I am confused how do I include all the subject Names in left column and then values accordingly as they are in separate arrays.