Aggregate Formulas

Aggregate Formulas

In reporting the most common data analysis that we do is to apply aggregate functions over the data (like SUM, AVG, COUNT etc.,) and analyze the same. The important aspect to be taken care in such calculations is to compute the aggregation in the context in which the function is applied to provide accurate results. Aggregate Formulas in Zoho Analytics is meant to address this need.

Aggregate Formulas are formulas that you define in Zoho Analytics which uses at least one aggregate function (SUM, AVG..) in the calculation. The output of such calculations is always a numeric value (metric). Aggregate formulas are mainly used in creating powerful reports. These formulas can be used in Charts, Pivot Tables and Summary View report types in Zoho Analytics.

  • The result of an Aggregate Formula is always a numeric value.
  • Aggregate Formulas will not be added as another column in the base, it is associated with, like Formula Column. But it will be available for report creation when you create a report over the table (listed as part of the columns list).
  • The value of an aggregate formula will be computed for each data point that is displayed in the report in which it is used (i.e., the result is not just a single value). This makes it very powerful.
  • Aggregate formula can be constructed in a similar way as that of a Formula Column.

Zoho Analytics offers a range of in-built aggregate functions which can be used as part of the Aggregate Formulas. You can construct the formulas using these in-built aggregate functions combining it with the basic arithmetic operators like +, -, / and *.

Creating Aggregate Formulas

To create an aggregate formula:

  • Select Add > Aggregate Formula option from the toolbar as shown below.

  • The Add Aggregate Formula dialog box will open as shown below. This dialog box provides easy access to the names of the columns in your table, as well as to all the in-built functions that are available for you to create the formula. A brief description of the function with syntax and an example will be displayed at the bottom of the dialog box when you hover your mouse over a function.
  • In the Formula Name text box, type the name that you want to give to the formula.
  • Select the data type of the aggregate result of the formula, using the DataType drop-down menu. The data type should only be a Numeric value, hence the possible types are Number, Positive Number, Decimal Number, Currency and Percent.
  • The Associated Table field provides the name of the table to which this formula is associated with. This will be automatically set with the name of table for which you are creating this aggregate formula.
  • In the Formula text area provide the actual formula. You can select the columns and functions that you want to insert into the formula from the list from the Click to Insert Columns and the Click to Insert Function boxes.

    Note: You can also insert columns from related tables joined through Lookup Column. The drop-down lists all the parent table associated with the base table. Select the required table, the columns in this table will be listed below. You can insert this in the formula by clicking.

  • For example, to apply an aggregate formula to calculate % Profit the formula could be something like (Sum( "StoreSales"."Sales")-Sum("StoreSales"."Cost"))/Sum("StoreSales"."Cost")*100
    as shown in the screenshot below.

  • Click OK .

The result of Aggregate Formulas will not be added as a column in the base table. It will be listed in the column panel while creating reports . You can access (view) or edit it by clicking Add > Edit Formulas in the toolbar. Viewing & Editing Formulas is discussed in the next section.

In-built Aggregate Functions

While you create an aggregate formula you can use a wide range of powerful Aggregate functions that are supported by Zoho Analytics. You can use the Formula Column in-built functions , when you create an Aggregate formula, provided it meets the required conditions for an Aggregate formula. 

Creating Aggregate Formula Over Existing Aggregate Formulas

Zoho Analytics enables you to build aggregate formulas using existing aggregate formulas. Reusing existing formulas to create new aggregate formula helps you create powerful formula combinations, as well as eases maintenance of these formula structures in your Workspace.

When you create a new aggregate formula, existing formulas will be listed in the Click to Insert Columns box along with other columns. All the aggregate formulas will be indicated in brown with the symbol. You can insert these formulas into your new formula definition by clicking them, as you do for the other columns in the table.For example, Let's assume that you have already calculated profit percentage and total cost and you want to calculate total profit gained. Then you can use the existing aggregate formulas to calculate total profit gained. The formula could be something like ("Total Cost" * "Profit") / 100.

Creating Reports Using Aggregate Formulas

Aggregate formulas can be used while creating all reports (charts, pivot tables, and summary views) as you would use a column in a table. When you create a new report over the table, in which you have added the aggregate formula, all the formulas will be listed in the Columns list pane on the left, which can be drag & dropped to create the report.

The following screenshot shows the % Profit aggregate formula, that we added, listed in the columns list page. All the aggregate formulas will be indicated with an icon which contains the symbol.

From the Explorer tab of the Workspace, select the table to which you want to add the aggregate formula.

Aggregate formulas can be used in the report as you use any other data columns in the table. The value of the aggregate formula will be computed for each data point that is displayed in the report in which it is used (i.e., the result is not just a single value). In the chart shown in the screenshot below, the percentage of profit (%Profit) is plotted against the Year. As you see, the value of the Profit percentage is calculated for each year and plotted in the graph.

When you use an Aggregate formula in a report, you will not be able to apply other functions on the formula (as you do for other columns). The function will always be selected as 'Actual' and cannot be modified.

Sharing Aggregate Formulas

With respect to sharing and collaboration , Aggregate Formulas behave similarly to how a column in a table behaves. When you share a table, all the aggregate formulas that are created over the table will be also shared to the user to whom you are sharing the table. Hence the shared user will be able to use these formulas while creating any report over the data table.


Note:
  • The shared user will not be able to edit, delete or format the shared aggregate formula, but can just use it in report creation. Also, the shared user will not be able to add his own Aggregate formulas over the shared table, unless the user is a   Workspace Administrator .

View/Edit Formulas

Zoho Analytics allows you to view, edit, format and delete all the formulas defined for a table through the Edit Formula option. You can view & edit both Formula Columns and Aggregate Formulas using this option. To view/edit existing Formula Column or Aggregate Formulas:

  • Select the required table.
  • Select Add > Edit Formulas option from the toolbar.
  • The Edit Formula dialog box with a list of all the formulas associated to the table will open as shown below:

  • Click Edit link next to the formula that you wish to edit.
  • The Edit Formula  dialog box will open. Open the Aggregate Formula tab.
  • You can modify the existing formula the same way as you would create a new formula.
    • Edit Formula: You can edit the constructed formula using the Edit link provided next to the corresponding formula.
    • Delete Formula: You can delete an existing Formula any time from the table using the Remove link provided next to the corresponding formula.
    • Format Formula: You can change the format of the Formula result, like alignment, decimal places, date format, currency symbols etc., depending on its data type of the formula using the Format link provided. It's similar to how you format a data column. Refer here to know how to format a column.


        Create. Review. Publish.

        Write, edit, collaborate on, and publish documents to different content management platforms.

        Get Started Now


          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







                                Quick LinksWorkflow AutomationData Collection
                                Web FormsEnterpriseOnline Data Collection Tool
                                Embeddable FormsBankingBegin Data Collection
                                Interactive FormsWorkplaceData Collection App
                                CRM FormsCustomer ServiceAccessible Forms
                                Digital FormsMarketingForms for Small Business
                                HTML FormsEducationForms for Enterprise
                                Contact FormsE-commerceForms for any business
                                Lead Generation FormsHealthcareForms for Startups
                                Wordpress FormsCustomer onboardingForms for Small Business
                                No Code FormsConstructionRSVP tool for holidays
                                Free FormsTravelFeatures for Order Forms
                                Prefill FormsNon-Profit

                                Intake FormsLegal
                                Mobile App
                                Form DesignerHR
                                Mobile Forms
                                Card FormsFoodOffline Forms
                                Assign FormsPhotographyMobile Forms Features
                                Translate FormsReal EstateKiosk in Mobile Forms
                                Electronic Forms
                                Drag & drop form builder

                                Notification Emails for FormsAlternativesSecurity & Compliance
                                Holiday FormsGoogle Forms alternative GDPR
                                Form to PDFJotform alternativeHIPAA Forms
                                Email FormsFormstack alternativeEncrypted Forms

                                Wufoo alternativeSecure Forms

                                TypeformWCAG


                                    All-in-one knowledge management and training platform for your employees and customers.

                                              Create. Review. Publish.

                                              Write, edit, collaborate on, and publish documents to different content management platforms.

                                              Get Started Now




                                                                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


                                                                      • Desk Community Learning Series


                                                                      • Digest


                                                                      • Functions


                                                                      • Meetups


                                                                      • Kbase


                                                                      • Resources


                                                                      • Glossary


                                                                      • Desk Marketplace


                                                                      • MVP Corner


                                                                      • Word of the Day


                                                                      • Ask the Experts


                                                                        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 Demo

                                                                                                          Get a personalized demo or POC

                                                                                                          REGISTER NOW


                                                                                                            Design. Discuss. Deliver.

                                                                                                            Create visually engaging stories with Zoho Show.

                                                                                                            Get Started Now








                                                                                                                                • Related Articles

                                                                                                                                • Formulas (Calculations)

                                                                                                                                  Zoho Analytics provides a powerful formula engine to perform various calculations over your data. It enables you to derive business-specific metrics/insights from complex data and helps you visualize them as useful reports.  Zoho Analytics formula ...
                                                                                                                                • Creating Your Own Metrics with Formulas

                                                                                                                                  Zoho Analytics with a powerful formula engine allows you to derive new business metrics from your data. This allows you to perform complex analysis and get the required insights from your data set.    Zoho Analytics provides a set of in-built ...
                                                                                                                                • In-built Aggregate Functions

                                                                                                                                  Aggregate Formula allows you to create powerful metrics to address your business needs. In this section let's learn about the wide range of powerful in-built functions that are supported by Zoho Analytics. Aggregate Functions The following table ...
                                                                                                                                • Formula Column

                                                                                                                                  Zoho Analytics allows you to define your own powerful formulas to meet your specific reporting requirements. This enables you to easily perform from simple calculations such as addition and subtraction to a complex combination of in-built functions. ...
                                                                                                                                • How to Add Aggregate Formula Directly from Reports

                                                                                                                                  The following are the steps to add an aggregate column directly from reports pag Open the reports tab in edit mode. Click Add Aggregate Formula link. The Add Aggregate Formula dialog box will open. Specify the formula name. Choose the data type. ...
                                                                                                                                  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