The Join Datasets flow zone allows the combination of the newly created columns with the lead's static information.

![Screenshot 2024-01-04 at 10.59.39.png](s9sVMWmHx7FW)

In the [stack recipe](recipe:compute_lead_information_stacked), the rows of the [to_score_lead_information](dataset:to_score_lead_information) dataset are added to those of the [historical_lead_information](dataset:historical_lead_information) dataset before joining the output to the datasets including the new columns.

The following [join recipe](recipe:compute_lead_information_training_joined) adds the columns created by the pivot recipes in the previous flow zone along with the touchpoint count and touchpoint period information. 

Finally, the dataset including all columns is [split](recipe:split_lead_information_training_joined) between a dataset to train and another one to score which are cleaned in the following prepare recipes. 