It cannot be implemented directly in SharePoint Online. However, you can try third-party apps such as Kwizcom Lookup or BoostSolutions Cascaded Lookup.