Hi @raoul, Maybe spaces in your LastLogin field are unprintable characters. Can you try below query which cleans all whitespace? | inputlookup MSOLUsers
| where match(onPremisesDistinguishedName, "OU=Users")
| where not isnull(LastLogin)
| eval LastLogin=replace(LastLogin,"[^A-Za-z0-9,:]+","")
| eval LastActive=strptime(LastLogin, "%b%d,%Y,%H:%M")
| eval DaysLastActive=round((now() - LastActive) / 86000, 0)
| fields Company, Department, DisplayName, LastLogin, LastActive, DaysLastActive
... View more