Loading
Salesforce Data Pipelines
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Categorize Date Column Values into Buckets

          Categorize Date Column Values into Buckets

          In Salesforce Data Pipelines, 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.

          Required Editions

          Categorize Date Column Values into Buckets

          User Permissions Needed
          To manage and create a recipe: Edit CRM Analytics Dataflows OR Edit Dataset Recipes
          1. In the Transform node of a Data Prep recipe, select the date column in the Preview tab.
          2. In the Transform toolbar, click the Bucket button (Create bucket button) to define the buckets.
          3. Select whether to use absolute or relative dates.

            Absolute dates are defined dates on a calendar, like July 25, 2023. Relative dates are a time period in relation to the day the data is viewed, like last quarter, or next month.

            The left pane shows options to configure the date buckets.
          4. Select Add bucket button.
          5. Enter a label for the first bucket.

            The first bucket is for the earliest date range. Each subsequent bucket must have a later date range than the previous bucket.

            The Define Range modal allows you to specify a bucket label and its range.
          6. Select the date range for this bucket.
          7. Click Add.
          8. To create another bucket with a later date range, click Add bucket button and specify the details.
          9. To place null values into their own bucket, select Bucket null values.
          10. Under Show Results In, select whether the new bucket values appear in a new column and what happens to the original column.
          11. If you elect to create a column, set its label under Column Label.
          12. Click Apply to add the transformation to the Transform node. The Preview tab shows the new bucket column.
          13. To view the Graph area, click the Collapse button (Collapse button).
          14. Save the recipe.

          After you run the recipe, you can view the bucket assigned to each row in the bucket column.

           
          Loading
          Salesforce Help | Article