Forum Discussion
Graduates and Registrations
So I have two tables
- Graduates
- Registrations
The table 'Graduates' has the following fields:
- Student ID Number
- Academic Level
- Academic Degree
- Degree posting Date
The table 'Registrations' has the following fields:
- Student ID Number
- Academic Level
- Academic Degree
- Course Term #
- Course Subject
- Academic Year
What I want to do is figure out how many graduates for the 2016-2017 academic year (defined by grouping all [Degree posting Dates] between July 1, 2016 and June 30, 2017 into a new column call academic year and with a value of "2016-2017") have courses registrations identified in the 'Registrations' table
Note in the table 'Graduates' the student ID is distinct. In the table 'Registrations', the Student ID Number is duplicated because each row represents a unique course registration.
I thought I could create a new table and summarize the count of registrations by student ID and then link that to the 'Graduates' table but it does not return any matches and that would be impossible for there not to be anyone that graduated between July 1, 2016 and June 30, 2017 to not have at least 1 course completed in that academic year.
2 Replies
- JMWDBAAdvocate II
On the Summarize table from the 'registration' table this is what I created to get a count of total courses by [Student ID]
Completed Courses 2016-17 = SUMMARIZE('Registrations', 'Registrations'[Academic Year], 'Registrations'[Student ID], "Course Total", COUNTA('Registrations'[Student ID]))
- v-chuncz-msftCommunity Support
Better to show us the expected output. Check the DAX below first.
Table = SUMMARIZE ( Registrations, Registrations[Academic Year], "Count", DISTINCTCOUNT ( Registrations[Student ID] ) )