Power Query- Cheater Code - find unexcused attendance holds

if [StudentsinHHID] = 1 and [Un_Excused_Abs_HHID] > 59 then "AttendanceHold" else if [StudentsinHHID] = 2 and [Un_Excused_Abs_HHID] > 119 then "AttendanceHold" else if [StudentsinHHID] = 3 and [Un_Excused_Abs_HHID] > 179 then "AttendanceHold" else if [StudentsinHHID] = 4 and [Un_Excused_Abs_HHID] > 239 then "AttendanceHold" else if [StudentsinHHID] = 5 and [Un_Excused_Abs_HHID] > 299 then "AttendanceHold" else if [StudentsinHHID] = 6 and [Un_Excused_Abs_HHID] > 359 then "AttendanceHold" else if [StudentsinHHID] = 7 and [Un_Excused_Abs_HHID] > 419 then "AttendanceHold" else "None"

Blog Type: