---
schema_version: "1"
id: 37367d10a6a09bdc74689fffb23b58607d72394eb8157a9caca05341d3a9bc34
title: Create a Recipe with Data Prep
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/analytics/264-0-0/bi_integrate_recipe_create.md
canonical_url: https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_create.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 440eb3cb7e96a3e4fd52ddb8ba4d2bccf565331ff46bd7d806f1bab04f561b28
description: Use a Data Prep recipe in CRM Analytics to clean, transform, and enrich data before loading it into one or more targets. Preview your results as you build the recipe to confirm that the logic is correct.
products:
  - CRM Analytics
  - Cross Cloud
release: "264"
---
# Create a Recipe with Data Prep

Use a Data Prep recipe in CRM Analytics to clean, transform, and enrich data before loading it into one or more targets. Preview your results as you build the recipe to confirm that the logic is correct.

Watch a Demo: [![Play button](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/_corporate/images/play_btn.png) Create a Data Prep Recipe (English Only)](https://salesforce.vidyard.com/watch/Vyqfduzo4tGuugdtwKWdM8?)

1. From Data Manager, click **Recipes** or **Dataflows & Recipes**.
2. Click **Create Recipe**.
3. Review the Data Prep welcome mat, and then click **X** to close it.
    
    ![The welcome mat provides an overview of Data Prep.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_recipe_data_prep_beta_welcome_mat.png)
4. Click **Select Data**.
    
    ![Choose the input data for the recipe.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_recipe_select_data.png)
5. Select the datasets, connected objects, or direct data that you want to include as input for the recipe. If needed, you can add more data to the recipe later.
    
    A direct data reference doesn’t store data in CRM Analytics. Instead, each time the recipe uses direct data, a query gets the data. In Data Manager, SFDC\_Local connections represent data stored in CRM analytics. Therefore, direct data references aren’t included in SFDC\_Local connections.
    
    You can’t use a trended dataset as input data for a recipe.
    
    ![Select the check box next to the object that you want to pull input data from.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_recipe_select_data_input_objects.png)
6. In the Selected Columns panel, select either **Custom Columns** to choose the columns to include or **All Columns** to update all columns when the recipe syncs.
    
    By default, up to 50 columns are selected. If you add multiple data source objects, select each row individually to choose its columns. Selected Columns shows only columns for the highlighted row.
    
    ![Select the columns that you want to include in the recipe.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_recipe_select_input_columns.png)
7. Click **Next**.
    
    Data Prep adds an Input node to the graph for each input data selection.
8. To add a node to the recipe, click the Add Node button (![Add Node button](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_add_node.png)) between two nodes or at the end of the recipe, and then select the node type. To show the Add Node button between two nodes, hover the cursor on the connecting line.
    
    ![The Add Node dialog appears when you click the Add Node button.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_recipe_addNode.png)
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/images/icon_note.png)
    
    Note If you want to flatten your hierarchy (flatten transformation), do so before you join datasets. If you flatten after the join, the transformation doesn’t create the flatten hierarchy data you expect.
9. Preview the results of each node and transformation that you add to the recipe. Select the node or transformation in the graph. To assist in reviewing the data, from the column’s dropdown menu, you can choose a sort option or freeze the columns displayed on the left of the preview. Clicking a row highlights it. You can then pan to review the column values for that row. To find preview data enter a string in the search box. You can also copy API names and cell values, and hover to see the full value in a cell.
    
    For example, selecting an Aggregate node shows these preview results.
    
    ![The Preview tab shows the results after applying the Aggregate node.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_integrate_node_preview.png)
10. To edit or delete a node, select the node, click ![Open Node Actions button](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_openNodeActions.png), and then select an action.
11. To edit or delete a transformation in a Transform node, select the Transform node, select the transformation step, and then click ![Edit Transformation button](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_editTransformation.png) or ![Edit Transformation button](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_deleteTransformation.png).
12. To split the recipe into two branches, hover the cursor over the node where the branch begins, click ![Branch Recipe icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_branchRecipe.png), and then select the node type to start the new branch.
    
    You can branch a recipe to write results to multiple output nodes or to transform some of the rows before appending or joining them together again later.
13. To connect, join, or append nodes in the graph, drag the Add Node button (**+**) next to a node or Branch button (![Branch Recipe icon](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-analytics-bi-264-0-0-production-enus/ec791473-f5b4-4f64-a656-9104f455d966/resources-global/analytics/images/bi_button_branchRecipe.png)) on top of another node in the recipe graph. Then select one of the Connect Nodes options.
14. To tell the recipe where to write the results, end the recipe with one or more Output nodes.
15. To save the recipe, click **Save** and enter a recipe name and description.

- **[Nodes for Data Prep Recipes](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_nodes_overview.htm&release=264.0.0&type=5)**  
    In CRM Analytics, Data Prep provides nodes that allow you to bring in data, transform it, and write the results to a target. For example, you can use a Join node to add columns from a related object to a recipe. You add nodes in the Graph area of Data Prep. You can string together multiple nodes to sequentially change the flow of the data.
- **[Transformations for Data Prep Recipes](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_transformations_overview.htm&release=264.0.0&type=5)**  
    In CRM Analytics, Data Prep provides transformations that allow you to prepare, clean, and transform your data. For example, you can use a transformation to create a calculated column based on a formula. You add transformations inside a Transform node. You can string together multiple transformations to manipulate data sequentially.
- **[Connect and Reorganize Nodes or Branches in a Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_connect_nodes_and_branches.htm&release=264.0.0&type=5)**  
    In CRM Analytics, connect disconnected nodes or branches to join or append data from any node to any other node in a Data Prep recipe. You can also create a branch at an intermediate node, and join or append it to another path in the recipe.
- **[Copy and Paste a Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_copy_paste.htm&release=264.0.0&type=5)**  
    In CRM Analytics, use the toolbar or keyboard shortcuts to copy and paste nodes within a single recipe or across multiple ones. To use this feature, enable clipboard access permissions in your browser.
- **[Keyboard Shortcuts for Building Data Prep Recipes](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_keyboard_shortcuts.htm&release=264.0.0&type=5)**  
    Perform basic actions from your keyboard in CRM Analytics.

#### See Also

- [Connect and Reorganize Nodes or Branches in a Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_connect_nodes_and_branches.htm&release=264.0.0&type=5 "In CRM Analytics, connect disconnected nodes or branches to join or append data from any node to any other node in a Data Prep recipe. You can also create a branch at an intermediate node, and join or append it to another path in the recipe.")
- [Preview Results in a Data Prep Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_preview_results.htm&release=264.0.0&type=5 "As a best practice in CRM Analytics, catch mistakes early by previewing the results of each node and transformation that you add to your Data Prep recipe.")
- [Run a Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_data_prep_recipe_run.htm&release=264.0.0&type=5 "Run a CRM Analytics recipe for the first time to create the dataset it defines. Run a recipe again to update the dataset with the latest synced data. You can run a recipe manually or on a schedule.")
- [View or Edit a Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_edit.htm&release=264.0.0&type=5 "In CRM Analytics, view or edit a recipe by clicking its name. By default, all recipes open with Data Prep. When you edit a Data Prep Classic recipe, the recipe upgrades to and opens with Data Prep.")
- [Delete a Recipe](https://help.salesforce.com/s/articleView?id=analytics.bi_integrate_recipe_delete.htm&release=264.0.0&type=5 "Delete recipes that you no longer need. Deleting a recipe doesn’t delete its target dataset.")