Create buckets - Number

Create buckets - Number




The bucketing transformation groups values in multiple ranges or buckets for easier understanding of highly scaled data. The granular details of such data can prevent us from getting a broad view of the data. This form of grouping values in a range not only helps in observing the overall view of the data, but also in finding data patterns.  

Bucketing works on the top of the base data types: Number, Text, and Date. 

To find bucketing operation:
  1. Right-click the column in the Studio page. 
  2. Select Create Buckets option from the context menu. 

Bucketing in a number column

Buckets can be formed in two ways in a numeric column: Automatic and Manual .  

Automatic bucketing

Automatic bucketing creates buckets based on the column data pattern and the number of buckets required.
You can edit this value under the Number of buckets option. By default, the automatic bucketing option creates ten buckets.

To apply Automatic bucketing in a column:  
  1. Right-click the column in the Studio  page .  
  2. Select Create Buckets option from the context menu.  
  3. Give a name to your new column under Base column name. 
  4. In the Transform panel, the  Automatic    option In the Operations panel, the  Automatic   option is selected by default.  
  5. By default, the value for Number of buckets is ten. You can edit the value as per your requirement. 
  6. The auto bucketing option groups each value by taking the lowest and the highest values from the column, and divides it by the number of buckets chosen. 
  7. Preview of the resultant column is shown in the data grid.
  8. Click Apply


Manual bucketing 

Manual bucketing requires input from the user, such as the range values and associated conditions. 
To apply Manual bucketing in a column:  
  1. Right-click the column in the Studio page. 
  2. Select the Create Buckets option from the context menu. 
  3. In the Transform   panel, the option Automatic is selected by default. Choose the  Manual option .
  4. Select one of the bucketing methods. 
    1. Fixed intervals
    2. Custom range
    3. Specific values
  5. Give a name to your new column under Base column name
  6. Enter the conditions, interval size, and labels as required for the selected bucketing method. 
  7. A preview of the resultant column will be shown in the data grid.
  8. Click Apply .  

Fixed intervals 

You can input the interval size using the Fixed intervals option. 
  1. For example, if the selected numerical column has data between 0 to 100, and the interval size is given as 10, the created range of intervals i.e. bucket values will be 0-9, 10-19, 20-29, and so on till 90-99. 
  1. In the newly created column, the bucket values are placed against each value in the selected numerical column that fits in a particular interval.  
  1. If a numerical column has some invalid data such as text or date values, then the resultant column will have 'NA'. 




Custom range

Using the Custom range, you can input the conditions to determine bucket labels. 
For example, if the numerical column has age data between 0 to 100, you can input the conditions in such a way that more than 0 and less than 13 falls under the bucket label "Child", equal to or more than 13, and less than 19 falls under the label "Teens", more than 19 and less than 60 falls under the label "Adults", and finally, greater than 60 will fall under the label "Senior citizens". 

This is accomplished by providing conditions using these comparative operators:

  1. Equal to (=), More than (>), More than or equal to (>=), as part of the Start condition , and
  2. Less than (<), Less than or equal to (<=), as part of the End condition

If the selected column has values that won't fit in any condition, it is marked with a separate label 'NA'.
You can edit this label under the Label for unmatched values option. 

Use the + button to add another condition below the current one, or the - button to delete the current condition. 

In the newly created column, the buckets are placed against each value in the selected numerical column that fits in a particular range.



Specific values

Using the Specific values option, you can enter specific values from the selected numerical column and label them as a bucket. 

For example, if the selected numeric column is "Item code", you can create a new column "Category", and define the condition such that the item codes 101 and 102 fall under the bucket "Books", 200 and 202 fall under the bucket "Magazines", and 300 and 301 fall under the bucket "Pens". You can leave the default label for unmatched values as NA.  

The values that were selected inside the "in" conditions will have the appropriate label defined in the new column. The ones that do not match the condition will have the default value: NA. 

Item
Item code
Category
 
 Gandhi's Biography
 101
 Books
 
 Parker Frontier Stainless Steel   Roller Ball

 301
  Pens
 
 Startup city India



 202
 Magazines
 
 Murder on the Orient express

 102
 Books
 
 Pens  Coca-cola

 789
 N/A




To apply filters

If you want to apply some filters along with this transform, you can use the filters functionality.

1. Click the  Filters  tab.

2. Click the   icon and add the required columns in the  Filters  section. You can also reorder the filters using the drag and drop method.




3. For every column added, you can select one of the following options from the drop-down:
  1. Actual: This option lets you filter rows based on the actual values in the column. Click  here  to know more.
  2. Data quality: This option lets you filter rows based on the quality of data in the column. Click  here  to know more.
  3. Patterns: This option helps you filter rows based on the data patterns in the selected column. Click  here  to know more.
  4. Outliers: This option allows you to filter rows based on the outliers present in the data of the selected column. Click  here  to know more. 
Notes
Note: The filter options are displayed based on the datatype of the column added for the filter.

4. When you add more than one filter to the  Filters  section, the logical operators, AND or OR appear next to the filters. You can click to toggle the logical operator between AND and OR.
  1. Using the logical operators, you can combine the conditions and apply logic to determine the rule of precedence. The final expression is displayed in the  Criteria expression  box. You can click  Edit  to alter the default expression using logical operators and parenthesis to specify the precedence or the sequential order as to which condition should be evaluated first. Click  Save  after making the required changes. 
  1. For example, In the expression, ((1 OR 2) AND (3 OR 4)) , at first the condition ( 1 OR 2 ) will be executed and the condition ( 3 OR 4 ) will be executed next. Thirdly, since, the AND operator is used, the filter will be applied when both the conditions are true.
5. You can further drill down to choose specific values based on the filter option selected for each filter, in the next section.



For example, in the above screenshot, the  Data quality  option is selected for the All columns filter in the  Filters  section. Based on the selection, further options to filter specific values are displayed in the  All columns (Data quality)  section.

6. You can choose to include or exclude the selected items in the last section.

7. If you want to remove all the filters for some reason, you can use the  Clear  button.

8. A live preview of the filter transform is shown as you make changes. 

9. Click the  Apply  button to apply the transform along with the filters.

SEE ALSO




    Access your files securely from anywhere

      Zoho CRM Training Programs

      Learn how to use the best tools for sales force automation and better customer engagement from Zoho's implementation specialists.

      Zoho CRM Training
        Redefine the way you work
        with Zoho Workplace

          Zoho DataPrep Personalized Demo

          If you'd like a personalized walk-through of our data preparation tool, please request a demo and we'll be happy to show you how to get the best out of Zoho DataPrep.

          Zoho CRM Training

            Create, share, and deliver

            beautiful slides from anywhere.

            Get Started Now


              Zoho Sign now offers specialized one-on-one training for both administrators and developers.

              BOOK A SESSION









                                            You are currently viewing the help pages of Qntrl’s earlier version. Click here to view our latest version—Qntrl 3.0's help articles.




                                                Manage your brands on social media

                                                  Zoho Desk Resources

                                                  • Desk Community Learning Series


                                                  • Digest


                                                  • Functions


                                                  • Meetups


                                                  • Kbase


                                                  • Resources


                                                  • Glossary


                                                  • Desk Marketplace


                                                  • MVP Corner


                                                  • Word of the Day


                                                    Zoho Marketing Automation

                                                      Zoho Sheet Resources

                                                       

                                                          Zoho Forms Resources


                                                            Secure your business
                                                            communication with Zoho Mail


                                                            Mail on the move with
                                                            Zoho Mail mobile application

                                                              Stay on top of your schedule
                                                              at all times


                                                              Carry your calendar with you
                                                              Anytime, anywhere




                                                                    Zoho Sign Resources

                                                                      Sign, Paperless!

                                                                      Sign and send business documents on the go!

                                                                      Get Started Now




                                                                              Zoho TeamInbox Resources



                                                                                      Zoho DataPrep Resources



                                                                                        Zoho DataPrep Demo

                                                                                        Get a personalized demo or POC

                                                                                        REGISTER NOW


                                                                                          Design. Discuss. Deliver.

                                                                                          Create visually engaging stories with Zoho Show.

                                                                                          Get Started Now









                                                                                                              • Related Articles

                                                                                                              • Create buckets - Date

                                                                                                                You can classify a group of date values or individual dates using the bucketing technique. The bucketing options for a date column are: Weekday or not Month of the year
 Week of the year
 Week of the month
 Day of the year
 Day of the month Minute of ...
                                                                                                              • Create buckets - Text

                                                                                                                You can choose to implement bucketing in a text column using conditions. Consider a situation where you need to assign people to specific teams. You can implement the logic of adding values to a bucket, which in this case is the team name. Name Team ...
                                                                                                              • Change number format

                                                                                                                DataPrep allows different regional formats for numbers. For example, in India, one million is written as 10,00,000 whereas, in the United States, it is written as 1,000,000. To change the format of numerical values Right-click the numerical column ...
                                                                                                              • Create workspace and add new dataset

                                                                                                                To import data, you need to create a new workspace, or open an existing workspace and add a dataset. To import data 1. Create a new workspace from the home page using the Create workspace option. Alternatively, you can select an existing workspace if ...
                                                                                                              • Data types supported in Zoho DataPrep

                                                                                                                Data type is a key attribute associated with a column using which the valid and invalid data are classified and data quality is calculated. In Zoho DataPrep, there are a variety of data types to suit your needs, but they are all built upon a few ...
                                                                                                                Wherever you are is as good as
                                                                                                                your workplace

                                                                                                                  Resources

                                                                                                                  Videos

                                                                                                                  Watch comprehensive videos on features and other important topics that will help you master Zoho CRM.



                                                                                                                  eBooks

                                                                                                                  Download free eBooks and access a range of topics to get deeper insight on successfully using Zoho CRM.



                                                                                                                  Webinars

                                                                                                                  Sign up for our webinars and learn the Zoho CRM basics, from customization to sales force automation and more.



                                                                                                                  CRM Tips

                                                                                                                  Make the most of Zoho CRM with these useful tips.



                                                                                                                    Zoho Show Resources