Posts

Showing posts with the label Attendance

Useful Date Functions

Image
Define Academic Year of Date - Calculated Column It's handy to be able to classify dates by academic year. On a small table, like Exclusions, I'll do this as a calculated column. Let's say I have a field called ExclusionDate with the data type date (duh!) and I want to produce an academic year in the format "2018/19". We'll make a calculated column using the following formulas: IF - (<logical test> , <value if true>, <value if false) MONTH  (<date>) - returns numerical value 1 to 12 for Jan to December of the month of the selected date YEAR (<date>) returns the numerical value of the year of the selected date Basically, our formula is going to test if the date is in Sept - Dec or Jan - Aug , then perform two calculations to get the numbers either side of the "/" =IF(MONTH(Exclusions[ExclusionDate])>8,YEAR(Exclusions[ExclusionDate])&"/"&YEAR(Exclusions[ExclusionDate])-1999,YEAR(Exclusions[Exc...

Absence Reporting

Image
A colleague recently asked me if I could produce this in BI: This is a classic example of when schools resort to using Excel as very often in an MIS you would need to run/filter several reports to get the breakdown of each group. To do this I first downloaded the most recent national data from the DfE  and then did some copy and pasting in Excel to put it into usable form. You can download my file here , it looks like this: (As far as I know, there isn't a standard DfE data feed that can pull this data automatically - please tell me if I'm wrong about this!) OK so I imported this national data into BI and called it AbsenceGroups I use the following measures to work out pupil absence and persistent absence (see the previous post for more details on Persistent): Absences = sumx(StudentAttendances,if(or(StudentAttendances[MarkMeaning]="U",StudentAttendances[MarkMeaning]="A"),1,0))/sumx(StudentAttendances,if(StudentAttendances[MarkMeani...

Persistent Absentees

Image
One of the challenges I've recently faced is how to get a measure to show persistent absentees (students with <90% attendance), that will respond to any time period on a date slicer. If you want to follow along with this example then you can access a sample data set  or if you just want to visualise I will refer to two tables:  Students - a list of students StudentAttendances - a list of attendance records, with one row per student per session that includes the mark meaning (P - present, E - Approved Educational Activity, A - Absent, U - Unauthorised, C - Cancelled). Students is related to StudentAttendances with a one-to-many relationship. Step 1: Present and Possible My first step was to create two columns on the StudentAttendances table.  Present: = if(or(StudentAttendances[MarkMeaning]="P",StudentAttendances[MarkMeaning]="E"),1,0) Possible  = if(StudentAttendances[MarkMeaning]="C",0,1) Step 2: Attendance% measure Next I created...