Calculations and Functions

Calculations and functions can help us elevate our analysis and save us from a large amount of manual work. We will discuss the differences between the two, some use cases and different types.

The Differences

Calculations utilise existing fields in our dataset. They allow manual input of values and will either create a new field or overwrite an existing field. A function is the type of instruction within a calculation.

Examples

Below is an example of a function. In blue we have our function, with a text explanation in the grey box on the right. The ‘datediff’ function calculates how many days there are between [Order Date] and [Ship Date] which are both fields in the dataset. The function in this case facilitates the calculation of working out the difference between the two dates.

Different Types of Functions

  1. Number Functions

Include calculations such as SUM(), MIN(), MAX() and ROUND(). Particularly useful as they can save a lot of manual calculations.

  1. Date Functions

Ways to manipulate/extrapolate dates. The DATEDIFF() example has already been discussed. Another common date function is TODAY(), which simply returns today’s date.

  1. String Functions

Manipulating, and extrapolating from strings. Can also be used to combine/separate fields. SPLIT() is particularly useful here.

  1. Logical Functions

Allows you to determine if certain conditions are true or not. IF() statements are very commonly used as logical functions, generally returning one value in one field, if another field is equal to a certain value or meets certain conditions.

Author:
Zaman Bilal Iqbal
Powered by The Information Lab
1st Floor, 25 Watling Street, London, EC4M 9BR
Subscribe
to our Newsletter
Get the lastest news about The Data School and application tips
Subscribe now
© 2025 The Information Lab