Skip to product menu
close
  • Recent Launches
    Press Space or Enter to display list of options
EXPLORE ALL PRODUCTS

Recent Launches

New

Payroll software with automated tax payments and filing.

Try now
New

Robotic process automation software to automate high-volume, rule-based tasks.

Try for free
New

Low-code IoT platform and solutions for connected businesses.

Try now
New

Business formation service to launch and grow your businesses.

Try now
New

Privacy-friendly application analytics solution.

Try for free

Sales

 
CRM

Comprehensive CRM platform for customer-facing teams.

CRM
 
Bigin

Simple CRM for small businesses moving from spreadsheets.

Bigin
 
Forms

Build online forms for every business need.

Forms
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
Sign

Digital signature app for businesses.

Sign
 
RouteIQ

Comprehensive sales map visualization and optimal route planning solution.

RouteIQ
 
Thrive

Complete loyalty and affiliate management platform.

Thrive
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
Suites
CRM Plus

Unified platform to deliver top-notch customer experience.

CRM Plus

Marketing

 
Social

All-in-one social media management software.

Social
 
Campaigns

Create, send, and track targeted email campaigns that drive sales.

Campaigns
 
Forms

Build online forms for every business need.

Forms
 
Survey

Design surveys to reach and interact with your audience.

Survey
 
Sites

Online website builder with extensive customisation options.

Sites
 
PageSense

Website conversion optimization and personalisation platform.

PageSense
 
Backstage

End-to-end event management software.

Backstage
 
Webinar

Webinar platform for webcasting online webinars.

Webinar
 
Marketing Automation

All-in-one marketing automation software.

Marketing Automation
 
LandingPage

Smart landing page builder to increase conversion rates

LandingPage
 
Publish

Manage all your local business listings on a single platform.

Publish
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Sign

Digital signature app for businesses.

Sign
 
Thrive

Complete loyalty and affiliate management platform.

Thrive
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
NEW
LeadChain

Sync, manage, and convert leads across channels seamlessly.

LeadChain
 
NEW
CommunitySpaces

Online community platform for individuals and businesses to grow their network and brand.

CommunitySpaces
 
Suites
Marketing Plus

Unified marketing platform for marketing teams.

Marketing Plus

Commerce and POS

 
Commerce

eCommerce platform to manage and market your online store.

Commerce

Service

 
Desk

Helpdesk software to deliver great customer support.

Desk
 
Assist

Remote support and unattended remote access software.

Assist
 
Lens

Interactive remote assistance software with augmented reality.

Lens
 
FSM

End-to-end field service management platform for service businesses.

FSM
 
SalesIQ

Live chat app to engage and convert website visitors.

SalesIQ
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
Suites
Service Plus

Unified platform for customer service and support teams.

Service Plus

Finance

 
Books

Powerful accounting platform for growing businesses.

Books
 
FREE
Invoice

100% Free invoicing solution.

Invoice
 
Expense

Effortless expense reporting platform.

Expense
 
Inventory

Powerful stock management and inventory control software.

Inventory
 
Billing

End-to-end billing solution for your business.

Billing
 
Checkout

Collect payments online with custom branded pages.

Checkout
 
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo
 
Practice

Practice management software for accounting firms.

Practice
 
Sign

Digital signature app for businesses.

Sign
 
Commerce

eCommerce platform to manage and market your online store.

Commerce
 
Suites
Finance Plus

All-in-one suite to manage your operations and finances.

Finance Plus

Email and Collaboration

 
Mail

Secure email service for teams of all sizes.

Mail
 
Meeting

Online meeting software for all your video conferencing & webinar needs.

Meeting
 
Writer

Word processor for focused writing and discussions.

Writer
 
Sheet

Spreadsheet software for collaborative teams.

Sheet
 
Show

Create, edit, and share slides with a sleek presentation app.

Show
 
Notebook

Beautiful home for all your notes.

Notebook
 
Cliq

Stay in touch with teams no matter where you are.

Cliq
 
Connect

Employee experience platform to communicate, engage, and build positive employee relations.

Connect
 
Bookings

Appointment scheduling app for consultations with customers.

Bookings
 
TeamInbox

Shared inboxes for teams.

TeamInbox
 
WorkDrive

Online file management for teams.

WorkDrive
 
Sign

Digital signature app for businesses.

Sign
 
Office Suite

Powerful collaborative work platform for teams.

Office Suite
 
Office Integrator

Built in document editors for web apps.

Office Integrator
 
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
 
Calendar

Online business calendar to manage events and schedule appointments.

Calendar
 
Learn

Knowledge and learning management platform.

Learn
 
Voice

Cloud Contact Center Software for businesses.

Voice
 
ToDo

Collaborative task management for individuals and teams.

ToDo
 
Tables

Work management tool to connect people, processes, and information.

Tables
 
FREE
PDF Editor

Collaborative online PDF editing tool.

PDF Editor
 
Suites
Workplace

Application suite built to improve team productivity and collaboration.

Workplace

Human Resources

 
People

Organize, automate, and simplify your HR processes.

People
 
Recruit

Intuitive recruiting platform built to provide hiring solutions.

Recruit
 
Expense

Effortless expense reporting platform.

Expense
 
Workerly

Manage temporary staffing with an employee scheduling solution.

Workerly
 
NEW
Payroll

Payroll software with automated tax payments and filing.

Payroll
 
Shifts

Employee scheduling and time tracking app.

Shifts
 
Sign

Digital signature app for businesses.

Sign
 
Suites
People Plus

Comprehensive HR platform for seamless employee experiences.

People Plus

Security and IT Management

 
Creator

Build custom apps to simplify business processes.

Creator
 
Directory

Workforce identity and access management solution for cloud businesses.

Directory
 
FREE
OneAuth

Secure multi-factor authenticator (MFA) for all your online accounts.

OneAuth
 
Vault

Online password manager for teams.

Vault
 
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
 
Toolkit

Complete resource for any admin-related lookup queries.

Toolkit
 
Lens

Interactive remote assistance software with augmented reality.

Lens
 
Assist

Remote support and unattended remote access software.

Assist
 
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
 
NEW
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA

BI and Analytics

 
Analytics

Modern self-service BI and analytics platform.

Analytics
 
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI
 
DataPrep

AI-powered data preparation service for your data-driven organization.

DataPrep
 
NEW
IoT

Harnessing IoT analytics for real-time operational intelligence.

IoT

Project Management

 
Projects

Manage, track, and collaborate on projects with teams.

Projects
 
Sprints

Planning and tracking tool for scrum teams.

Sprints
 
BugTracker

Automatic bug tracking software for managing bugs.

BugTracker
 
NEW
Solo

The all-in-one toolkit for solopreneurs.

Solo

Developer Platforms

 
Creator

Build custom apps to simplify business processes.

Creator
 
Flow

Automate business workflows by creating smart integrations.

Flow
 
Catalyst

Pro-code platform to build and deploy your apps.

Catalyst
 
Office Integrator

Built in document editors for web apps.

Office Integrator
 
ZeptoMail

Secure and reliable transactional email sending service.

ZeptoMail
 
QEngine

Test automation software to build, manage, execute, and report testcases.

QEngine
 
Tables

Work management tool to connect people, processes, and information.

Tables
 
NEW
RPA

Automate manual, tedious, and repetitive tasks easily.

RPA
 
NEW
Apptics

Application analytics for all apps.

Apptics
 
Embedded BI

Embedded analytics and white label BI solutions, tailored for your needs.

Embedded BI
 
NEW
IoT

Build, deploy, and scale IoT solutions for connected businesses.

IoT
 
DataPrep

AI-powered data preparation service for your data-driven organization.

DataPrep

IoT

 
NEW
IoT

Low-code IoT platform and solutions for connected businesses.

IoT

Search Result

 
CRM Plus

Unified platform to deliver top-notch customer experience.

Try now
CRM Plus
 
Service Plus

Unified platform for customer service and support teams.

Try now
Service Plus
 
Finance Plus

All-in-one suite to manage your operations and finances.

Try now
Finance Plus
 
People Plus

Comprehensive HR platform for seamless employee experiences.

Try now
People Plus
 
Workplace

Application suite built to improve team productivity and collaboration.

Try now
Workplace
 
Marketing Plus

Unified marketing platform for marketing teams.

Try now
Marketing Plus
 
All-in-one suite

Zoho One

The Operating System for Business

Run your entire business on Zoho with our unified cloud software, designed to help you break down silos between departments and increase organizational efficiency.

TRY ZOHO ONE
Zoho One
Zoho Marketplace

With over 2000 ready-to-use extensions across 40+ categories, connect your favorite business tools with the Zoho products you already use.

EXPLORE MARKETPLACE
Marketplace

Zoho Analytics has been recognized in the 2024 Gartner® Magic Quadrant™ for ABI PlatformsRead more

Skip to main content

Formula Column

Zoho Analytics allows you to define your own powerful formulas to meet your specific reporting requirements. This allows you to perform from a simple arithmetic calculations to a complex combinations of calculations. Zoho Analytics also provides predefined mathematical formulas as in-built functions to perform specific well-known calculations easily.

 The output of the formula will be added as a new column in the table. You can use these formula columns similar to other columns in the table in another formula, or creating reports.

Creating Formula Column

You can create Formula Column over a table. Follow the below to create a formula column:

  1. Open the table over which you want to create the Formula Column.
  2. Click the Add > Formula Column option from the toolbar or right click on a column and then click Add Formula > Formula Column.

  1. The Formula Column dialog box will open.

  1. Provide a Formula Name. This will be used as the Column header for the Formula Column.
  2. Enter the formula in the provided field. Refer to this section to know how to construct a formula.
  3. You can also use Ask Zia: Formula Suggester to get find formulas for your requirement. This will return the standard formula. You need to insert your data column in the appropriate place. Click here to learn more about Formula Suggester.
  4. All the columns in the tables and the supported in-build function will be listed at the right side of the dialog, to enable you to insert them in your formulas easily.
  5. Click Save. The formula will be saved and added as a new column in the table.

Quick Add option for Formula Columns

Zoho Analytics also provides an easy and convenient way to add formula columns which are based on a limited set of widely used functions.

Follow the steps to use the quick option for Formula Column.

  1. Select a column based on which you want to add the formula column.
  2. Click Add > Add Formula Column option on the toolbar.
  3. Zoho Analytics automatically identifies the data type of the column and lists the widely used pre-defined formulas for the column.
  4. Select the required formula, Zoho Analytics applies the formula on the corresponding column and adds the result as a new formula column. The column header will be named as {Function} {Column over which it is applied}. You can rename it later.

Constructing a Formula

This section explains how to construct formulas to achieve your needs.

Formula Elements

To help Zoho Analytics understand the formula, follow the format as given below.

  • Column nnames- Double Quotes e.g., "Sales", "Cost"
  • Text Value - Single Quotes e.g.,  'Deal Won', 'Deal Lost'
  • Numeric Value  - No Quotes e.g., 100
  • Arithmetic Operators - (+), (-), (*), (/), etc.,

Calculation

Zoho Analytics allows you to perform various calculations over the columns with different data types. Let's see a few examples.

Example 1

You can easily round off your invoice amount using the round function.  

round("Amount")

You can even choose to round off to the nearest greater or lesser number using the ceil or the floor functions.

ceil("Amount")
floor("Amount")

Example 2

You can apply simple arithmetic calculations such as to finding a discounted price with 20% off the original price.

"Price"- (20/"Price" *100)

Example 3

You can also apply date based calculations. The below formula calculates the year of experience in years using the data and time difference function and verifies whether the employee has five years or more experience, and is eligible to avail a specific option.

if(dateandtimediff(YEAR, "Date of Joining", currentdate( )) >= 5, 'Yes', 'No')

Order of Execution

Formula Column allows you to perform simple arithmetic calculations such as addition and subtraction, and even complex formulas. Zoho Analytics will follow the BODMAS or PEMDAS rule as the order of execution for the operation.

Condition based Calculations

Zoho Analytics allows you to set conditions to execute an operation.  You can do this using IFor Case< statements.

IF Statement

IF statement is one of the options to write a formula with conditions.

Format


if(condition, expr1, expr2)

You can apply the condition over multiple categories by using a nested IF statement. The following nested IF statement categorizes the customer type based on the sales amount.

if("Amount" <= 500, 'Basic', if("Amount" <= 15000, 'Standard', if("Amount" <= 30000, 'Premium', if("Amount" > 30000, 'Enterprise', 'Others'))))
Case Statement

The Case Statement works with the 'when and then' logic. When the condition is met, then the expression will be executed.

Format 1

case "Column Name" WHEN 'Column Value 1' THEN 'expr1'
WHEN 'Column Value 2'THEN 'expr2'
ELSE 'expr3'
END

Format 2

CASE WHEN {Condition 1} 'expr1'
WHEN {Condition 2} THEN 'expr2'
ELSE NULL
END

Example

CASE WHEN "Amount" = 500 THEN 'Basic' WHEN "Amount" = 15000 THEN 'Standard WHEN "Amount" = 30000 THEN 'Premium' WHEN "Amount" > 30000 HEN 'Enterprise' ELSE NULL END

Operators

Zoho Analytics supports the following operators to define conditions on your formula.

OperatorDescription
AND

Used to combine the conditions where all conditions need to be met.

Ex:

CASE WHEN "Customer Type" = 'Enterprise' And "Product Price" > 500 THEN "Price" - ("Price" *20/100) ELSE NULL END

Here, when the customer type is Enterprise and the product price is above 500, then a 20% discount will be applied to the product price.

OR -

Used to combine the conditions where either of the conditions need to meet. CASE WHEN "Customer Type" = 'Enterprise' Or "Product Price" > 500 THEN "Price" - ("Price" * 20/100) ELSE NULL END

 

Here, when the customer type is Enterprise, or when the product price is above 500, then a 20% discount will be applied to the product price.

In

Used to match where one of the multiple values meets the condition.

 

CASE WHEN "Product" IN ('Kids Cycle', '7 Gear Cycle', '21 Gear Cycle') THEN 'Cycle' ELSE NULL END

Not In

Used to match where none of the multiple values meets the condition.

CASE WHEN "Product Category" Not IN ('Stationery', 'Furniture', 'Toys') THEN 'Miscellaneous' ELSE NULL END

Between

Used to ensure the data is between the specified range.

CASE WHEN "Sales" BETWEEN 100 AND 500 THEN 'Good' WHEN "Sales" BETWEEN 500 AND 1000 THEN 'Excellect' ELSE NULL END

Not BetweenUsed to ensure the data is not between the specified range. CASE WHEN "Weather" NOT BETWEEN 24 AND 33 THEN 'Out of Trend' ELSE NULL END<
Like

Used to identify data with matching pattern.

CASE WHEN "Course Code" like 'ENG%'THEN 'English' WHEN "Course Code" like 'Math%'THEN 'Maths' ELSE NULL END

Not Like

Used to identify data that does not match the pattern.

CASE

WHEN {Condition 1} THEN 'expr1'ELSE NULL END

Is Null

Used to identify whether a data is null.

CASE WHEN "Survey Email ID" Is Null THEN 'Anonymous' ELSE NULL END

Is Not Null

Used to identify whether a data is not null.

CASE WHEN "Survey Email ID" Is Not Null THEN 'Call back' ELSE NULL END

In-built functions provided by Zoho Analytics

Zoho Analytics provides you a large set of pre-defined formulas designed to perform specific well-known calculations easily as in-built functions. You can use them as part of your formula to achieve your requirement.

Refer to the In-Built Function page to view the complete list of functions.

Creating Formulas Over Formula Column

Formula columns are similar to other columns of the table. You can use them while creating a new formula column. Creating formula column over another formula column helps you create powerful formula combinations.It also helps in the maintenance of the formula structure.

Let's say, you want to split the support tickets that flow into your portal into shifts based on the hour of the created time. You need to find the hour of the ticket created time and then bucket them into different shifts. Instead of writing a single formula, splitting them into two will be easier to maintain.

As Single Formula
if(hour("Created Time")>6 and hour("Created Time")<22,if(hour("Created Time")>14,'2nd Shift','General Shift'),'Night Shift')
As Split Formula
hour("Created Time")
if("hours">6 and "hours"<22,if("hours">14,'2nd Shift','General Shift'),'Night Shift')

Creating Reports Using Formula Column

You can create reports over Formula Column as you create over a normal column. Open the report editor over the table with the formula. All these formula columns will be listed in the Columns list pane on the left. You can be drag and drop theses into the report designer. You can apply functions on the formula column, as you do for other columns.

The following screenshot shows the Payment Date formula column listed in the columns list page:

Sharing a Formula Column

Once a Formula column is created, it behaves like any other column in a table. All collaborators will be able to access and use it with the corresponding permission granted to them.

Note:

The User with write permission over the table can not edit, delete or format the formulas. They also can not add their own formula column over the shared table.

View or Edit Formulas

Zoho Analytics allows you to view, edit, format and delete all the formulas defined over 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:

  1. Open the required table.
  2. Select Add > Edit Formulas option from the toolbar.
  3. The Edit Formula dialog box will open.
  4. Formula Column tab will list of all the formulas associated to the table.

  1. Hover over the formulas, the following option will be shown.
    • Edit -Click this to open the Edit Formula dialog. You can edit the constructed formula or name here.
    • Format -Click this to format the Formula Column. Depending on its data type of the formula column Format option will vary. It's similar to how you format a data column. Refer here to know how to format a column.
    • Delete -Click this to delete theFormula any time from the table.
Note: Zoho Analytics will run a dependency check before deleting a formula column. In case it has any dependent formula columns, aggregate formulas or views, then Zoho Analytics will abort the delete process and display the dependent items for you to review. You can review and delete the dependent items before deleting the formula.
x
Thanks for your interest. We shall get back to you shortly.