The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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]))
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.
User | Count |
---|---|
105 | |
97 | |
80 | |
62 | |
57 |
User | Count |
---|---|
246 | |
119 | |
114 | |
87 | |
70 |