How to use pivot transform?

Pivot




Pivot Table distributes data for easy consumption. It spreads out the data in long, winding tables by converting categories into columns. Pivot can be created by selecting the ColumnRow, and Data   fields. Here's  a quick video on how to use the Pivot transform.


To apply the pivot transform

1. Click the Transform menu and select the Pivot option. The Pivot pane will slide open to view.

2. Select the fields that you want to convert to columns in the Columns section. Choose the fields to feature as rows in the Rows section and the fields with data in the Data section.



Note: You can only choose fields with numerical data in the Data section.

3. You can also select the Filters tab if you want to apply any filters. Using filters, you can selectively filter data based on the filter conditions applied over one or more columns. If you want to learn more about filters, click here .
      
      

4. Select the Sort tab if you want to rearrange the order of your columns and rows. The fields added under the Pivot tab are also shown in the  Sort tab. You can sort the data by rows and by columns using the By rows and By columns sections.

 You can sort data in ascending or descending order, or perform a custom sort by selecting the options in the By columns and By rows sections. 

  You can view a preview of the table by clicking the Preview button. Click Reset to set back  to the default selection (Ascending).

For example, you can select the Ascending and Descending options in the Product category and Region fields in the By columns sections, and select the Ascending option in the Customer Name filter in the By rows section to sort the Sales Data. The data sorted will look like as shown in the preview below.
      

 
You can also customize the arrangement by selecting the Custom option. You can drag and drop or use the up and down arrows to arrange the rows and columns.



Note: The filter and sort functionalities are optional.

5. You can add fields to the Data section, and choose one of the aggregate functions. These functions can get you the sum, count, average, etc. depending upon the data type of the fields added.



The list of aggregate functions available for each data type is listed in the table below. Click here to know more about aggregate functions.

Data type

Functions

Advanced functions

Number

Normal



Normal

Running total

% of row

% of row in group

% of column

% of column in group

% of total

Difference from

% of difference from

% of previous value

Lookup value

Running total

Minimum

Average

Standard deviation

Median

Mode

Percentile

Variance

Count

Distinct count

Text

Count

Normal

Running total

% of row

% of row in group

% of column

% of column in group

% of total

Difference from

% of difference from

% of previous value

Lookup value

 

Distinct count

List

Count

Normal

Running total

% of row

% of row in group

% of column

% of column in group

% of total

Difference from

% of difference from

% of previous value

Lookup value

Distinct count

Map

Count

Normal

Running total

% of row

% of row in group

% of column

% of column in group

% of total

Difference from

% of difference from

% of previous value

Lookup value

Distinct count

Boolean

Count

Normal

Running total

% of row

% of row in group

% of column

% of column in group

% of total

Difference from

% of difference from

% of previous value

Lookup value

Distinct count

Date

Count

Normal

Running total

% of row

% of row in group

% of column

% of column in group

% of total

Difference from

% of difference from

% of previous value

Lookup value

Maximum date

Minimum date

Distinct count

Year

Quarter and year

Month and year

Week and year

Full date

Date & time

Quarter

Month

Week

Day of the week

Day of the month

Hour of day

 
Note:  The functions for the list data type counts the values and t he functions for the map data type counts the keys.

6. Click the Preview button and DataPrep will show a live preview of the pivot transformation. 



7. When two or more fields are selected in the Columns box, the column names are joined using a dash or hyphen (-). 

8.  In the new dataset, you can open the data source settings from the Ruleset pane and edit the pivot configuration. 

9.  Click Pivot to apply the pivot configuration to your dataset.

Aggregate functions

You can add fields to the Data section and choose one of the aggregate functions. The aggregate functions can get you the sum, count, average, etc., depending upon the data type of the fields added in the Data section. The list of functions available for each data type is explained in the table below:

Function name   Description
Sum Returns the sum of values from a numeric column.
Maximum Return the maximum value from a numeric column.
Minimum Returns the minimum value from a numeric column.
Average Returns the average of all the values from a numeric column.
Standard deviation Returns the standard deviation based on all values from a numeric column.
Median Returns the middle value of the numeric column.
Mode Returns the value that occurs the highest number of times in a numeric column.
Percentile Returns the percentile of the column. The 50th percentile is configured by default. However, you can modify this value as you need.
Variance Returns the variance of the numeric column.
Count Returns the total number of values from a column.
Distinct count Returns the total number of distinct values from a column.
Maximum date
Returns the maximum date from a date and date-time column.
Minimum date
Returns the minimum date value from a date and date-time column.

Advanced functions

For each basic function such as sum, maximum, minimum, etc., you can further choose advanced summary functions like, running total, % of row, % of previous value, lookup value, etc. Using these functions you can calculate the running total of sales over years or the difference in sales from the previous year etc.,

The advanced functions are explained in the table below:

Advanced function name Description
Normal Returns the value of the function applied over a numeric column. This option is selected by default.
Running total
Returns the sum of sequence of numbers as a running total based on the selected Base field.
% of row
Returns the percentage of the total for each row.
% of row in group
Returns the total value of each row within a group as a percentage.
% of column
Returns the percentage of the total for each column.
% of column in a group
Returns the total value of each row within a group as a percentage.
% of total Returns the percentage of the total of all the data.
Difference from Returns the difference from the previous value based on the selected Base field.
% of difference from
Returns the differences from the previous values as a percentage based on the Base field.
% of previous value Returns the percentage of the previous value based on the selected Base field.
Lookup
Returns the value from any of the previous, next, first or last cell based on the Base field selected.

SEE ALSO


    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







                                                                                            You are currently viewing the help articles of Sprints 1.0. If you are a user of 2.0, please refer here.

                                                                                            You are currently viewing the help articles of Sprints 2.0. If you are a user of 1.0, please refer here.



                                                                                                  • Related Articles

                                                                                                  • Dataset transforms

                                                                                                    Dataset transform consists of combining and transforming datasets to suit your needs. You can apply the following transforms in a dataset. Deduplicate Row-wise Column-wise Join Append Pivot Unpivot Calculated columns Derive dataset Mark as personal ...
                                                                                                  • User roles and permissions in Zoho DataPrep

                                                                                                    Zoho DataPrep has roles for users based on their entity permissions. In other words, the user roles in DataPrep is based on the user's access to each entity. There are two other roles—Account admin and Organization admin—that are not entity-based. ...
                                                                                                  • Window functions to add formula columns

                                                                                                    A window function is used to perform calculations across a group of rows on a table. This set of rows is termed a window. You can use window functions to perform summations and calculations based on a rolling window of data, relative to the current ...
                                                                                                  • Zoho DataPrep Pricing FAQ

                                                                                                    1.1 What are "rows processed"? A row can be defined in the context of a dataset. In simple terms, a dataset consists of rows (records) and columns (fields). Each row in a dataset represents a set of related data and has the same structure. For ...
                                                                                                  • Functions available to add formula columns

                                                                                                    Abs abs(num) Returns the absolute value of the numeric value. Parameters Name Description num Decimal Parameter must be a numeric value from a column or an expression that returns a number. Example Function Result abs(-1) 1 Div ...
                                                                                                    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