# Create a New Branch in the Flow[¶](https://knowledge.dataiku.com/latest/courses/advanced-data-prep/data-pipelines/create-new-branch.html#create-a-new-branch-in-the-flow "Permalink to this headline")

The current Flow groups the *orders\_prepared* dataset by customer using a Group recipe to produce the *orders\_by\_customer* dataset. This dataset contains the total purchase history of each customer.

We’re going to keep this part of the Flow, but create a new branch by copying the Group recipe and adding *order\_date\_year* as a group key.

* Select the Group recipe, and from the Actions menu, select **Copy**.

* Leave *orders\_prepared* as the input dataset.

* Name the output dataset `orders\_grouped`.

* Click **Create Recipe**.

* In the Group recipe, add *order\_date\_year* as a group key.

* Click **Save**, and accept the schema changes. (Once again, do not run the recipe).
