Forum Discussion
Counting Attendance Percentage per Function
- 3 years ago
I agree with what the video told you. If I understand then, your attendence table looks like this
If that is the case then you can take the distinct count of the meeting id to get the number of meetings. Which is what this formula does: calculate(DISTINCTCOUNT(attendanceTable[ID]),All(attendanceTable))
I am thinking the error is occuring when you try to do a distinct count from the other table.
I agree with what the video told you. If I understand then, your attendence table looks like this
If that is the case then you can take the distinct count of the meeting id to get the number of meetings. Which is what this formula does: calculate(DISTINCTCOUNT(attendanceTable[ID]),All(attendanceTable))
I am thinking the error is occuring when you try to do a distinct count from the other table.
That worked! Thank you!
If I wanted to then create a filter to drill down the percentage such that it will change according to the month, may I know how I can do that?
- jgeddes3 years agoSuper User
Happy it worked for you.
If you want to filter by date you will need to have whichever table contains both meeting id and the date the meeting was held related to the attendence table by meeting id.
You would then be able to use the meeting dates to filter the attendence results.
- Anonymous3 years agoNot applicable
Another quick question,
As I am pulling out the concantenated values and pulling it into the "Attendance" table, only the departments that are selected in the PowerApp (present departments) are reflected in the table.
Is there a way where I can pull ALL departments into the table, but reflect "present" if they are selected, and "absent" if they are not? I think this would make it easier to get the drilldown results that would fit my usecase.
- jgeddes3 years agoSuper User
If there is a relationship between the master department list and the attendence table you can put the master department list column in your visual that has the attendence measure and select Show items with no data
you should end up with something like