Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
So I have two tables
The table 'Graduates' has the following fields:
The table 'Registrations' has the following fields:
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.
Better to show us the expected output. Check the DAX below first.
Table = SUMMARIZE ( Registrations, Registrations[Academic Year], "Count", DISTINCTCOUNT ( Registrations[Student ID] ) )
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]))
User | Count |
---|---|
98 | |
90 | |
77 | |
71 | |
64 |
User | Count |
---|---|
114 | |
98 | |
96 | |
68 | |
67 |