If(Status='Activated' and IsNull(Appointment_day)
,'Activated with No Appointment'
,If(Status='Activated' and not IsNull(Appointment_day) and [Appointment GART]>=0
,'Activated with in appointment'
,If(Status='Activated' and not IsNull(Appointment_day) and [Appointment GART]>-0.3
,'Activated within 30 mins od Post appointment'
,If(Status='Activated' and not IsNull(Appointment_day) and [Appointment GART]<=-30
,'Activated by crossing ETR'
))))