derive_vars_joined function

Add Variables from an Additional Dataset Based on Conditions from Both Datasets