Forum Discussion

max_bradley's avatar
max_bradley
Frequent Visitor
3 years ago
Solved

Grouped filters in a calculate function

Hi all,   I'd like to caclulate something called persistent absence (PA) for a school. This is defined as the percentage of students that are absent 10% of the time or more.    This can be done v...
  • max_bradley's avatar
    max_bradley
    3 years ago

    Just as an update on this for anyone who follows along. A working solution is available here

    PersistentAbs = 
    countrows(
    filter(
    students,
    and(
    calculate(
    StudentAttendances[Attendance%])<.9,
    isnumber(
    calculate(
    StudentAttendances[Attendance%]
    )))))