Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi All,
I have a table in which there are multiple entries of some students and what is the status of their subjects whether they have submitted the assignments or not.
And I have a dim table for all the subjects from which I can do DISTINCTCOUNT to check the total number of subjects/assignments. Now, I want to find out the number of students who have completed all the assignment.
Table looks like this:
StudentName | Assignment | Status |
s1 | assignment1 | completed |
s2 | assignment1 | completed |
s2 | assignment2 | pending |
s3 | assignment1 | completed |
s3 | assignment2 | completed |
Lets say that we only have two assignments in the dim table. Now, if we see the example above, only student3 have completed both the assignments. So, my final measure should give the result as 1 as only one student has completed all assignments. This is just an example subset of data.
The measure, that I am using is -
Remove everything in the RETURN statement and replace it with :
COUNTROWS ( FILTER (StudentwiseAssignmentSubmitted, [SubmittedAssignmentCount] = _TotalAssignments) )
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
31 | |
18 | |
13 | |
7 | |
5 |