In Visual Analytics you can use the FindChar / FindString functions instead, in contrast to the FindWord function you can specify the separator(s) this way. For your example this could work:
IF (FindChar(LastName, '-') > 0) return Substring(LastName, 1, FindChar(LastName, '-'))
ELSE LastName
... View more