Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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]))
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
126 | |
105 | |
103 | |
81 | |
72 |