Hi Robert,
Assuming that on the first table (StudentPart) you have field Score that you would like to sum and that second table name is ClassStudent, we could define following calculated measure:
=CALCULATE(SUM(StudentPart[Score]), FILTER(VALUES(StudentPart[Student]), COUNTROWS(FILTER(VALUES(ClassStudent[Student]), ClassStudent[Student] = StudentPart[Student]))>0))
This calculation sums Score, but filters records in StudentPart table where exists records in ClassStudent table based on Student column.
As we cannot create joins between 2 tables you provided, we are doing comparison of values in the calculated measure.
Let me know if that is what you are looking for. If no, could you please clarify your source tables - that is add column that you want to aggregate with sample values and then show me what values you would like to see in the report, and I'll try to figure out DAX calculation for that.
My test was done on following tables:
Student Part Score
Student1 Part1 1
Student1 Part2 2
Student1 Part3 3
Student2 Part1 4
Student2 Part2 5
Student2 Part3 6
Student3 Part1 7
Student3 Part2 8
Student3 Part3 9
Class Student
Class1 Student1
Class1 Student2
Class2 Student1
Class2 Student3
Class3 Student2
Class2 Student3
Result was:
TotalScore Column Labels
Row Labels Part1 Part2 Part3 Grand Total
Class1 5 7 9 21
Class2 8 10 12 30
Class3 4 5 6 15
Grand Total 12 15 18 45