Forum Discussion
yamacha
Helper I
1 year agoAttendance List with two input table
Hi folks
I'm requested to make a dashboard to estimate the attendance of courses as below.
The challenge faced is to have the full list of enrolled folk + those not enrolled but still attended, for each session, and show N for those not enrolled and Y for those absent.
I tried all what I have but still can't reach it...
Thanks in advance.
Hi,
These calculated column formulas work
Enrolled = if(ISBLANK(CALCULATE(COUNTROWS('Enrol list'),FILTER('Enrol list','Enrol list'[Course]=EARLIER(Data[Course])&&'Enrol list'[Name]=EARLIER(Data[Attendance])))),"N",BLANK())Absense = if(ISBLANK(CALCULATE(COUNTROWS(Attendance),FILTER(Attendance,Attendance[Date]=EARLIER(Data[Date])&&Attendance[Course]=EARLIER(Data[Course])&&Attendance[Attendance]=EARLIER(Data[Attendance])))),"Y",BLANK())Hope this helps.
5 Replies
- elitesmitpatel
Solution Supplier
please give detail information of the output and if possible please share the dummy data yamacha
- yamacha
Helper I
Hi Elitesmitpatel
The input and output are all shown in the screenshot, and I attached the editable table below. Thanks.
Enroll List Course Date Attendance Course Date Attendance Enrolled Absense Course Name A 2024/9/1 Mike A 2024/9/1 Mike A Mike A 2024/9/1 Tom A 2024/9/1 Tom A Tom A 2024/9/1 Peter A 2024/9/1 Peter A Peter A 2024/9/1 Adam A 2024/9/1 Adam N B Mary A 2024/9/8 Peter A 2024/9/8 Mike Y B Wendy A 2024/9/8 Vivian A 2024/9/8 Tom Y B Vivian A 2024/9/8 Mary A 2024/9/8 Peter … B 2024/9/15 Mary A 2024/9/8 Vivian N B 2024/9/15 Wendy A 2024/9/8 Mary N B 2024/9/15 Vivian B 2024/9/15 Mary B 2024/9/22 Mary B 2024/9/15 Wendy B 2024/9/22 Wendy B 2024/9/15 Vivian B 2024/9/22 Heather B 2024/9/22 Mary … B 2024/9/22 Wendy B 2024/9/22 Vivian Y B 2024/9/22 Heather N … - Ashish_Mathur
Super User
Hi,
These calculated column formulas work
Enrolled = if(ISBLANK(CALCULATE(COUNTROWS('Enrol list'),FILTER('Enrol list','Enrol list'[Course]=EARLIER(Data[Course])&&'Enrol list'[Name]=EARLIER(Data[Attendance])))),"N",BLANK())Absense = if(ISBLANK(CALCULATE(COUNTROWS(Attendance),FILTER(Attendance,Attendance[Date]=EARLIER(Data[Date])&&Attendance[Course]=EARLIER(Data[Course])&&Attendance[Attendance]=EARLIER(Data[Attendance])))),"Y",BLANK())Hope this helps.