Notion VIP Logo
BulletproofA-to-ZConsultingProductivity Nexus
0
Subscribe

Notion Stakeholder Series — Frequent Functions

I help important Notion stakeholders understand the app’s advanced features. After exploring Notion A-to-Z, we convene for a series of live workshops. Through this Notion Stakeholder Series, I'm making those live workshops available to you. Members of Notion A-to-Z also enjoy access to the interactive lesson, including the working demos and practical exercise. If you’ve yet to join, we’d love to have you onboard.

Here’s what you’ll learn:

Configure your sandbox.

As in the previous training, let’s create a page where you can practice concepts as we learn them.

Recap :: Function Fundamentals

Function References

The Formula Window lists all functions in the left menu. Hover over one to reveal:

My Notion Formula Cheat Sheet offers additional helpful information about each function.

Calculate Avg. Score with divide().
Calculate Avg. Score with divide().

Common Number Functions

We’ve practiced the add(), multiply() and divide() functions. Let’s look at three more common functions that accept and return numbers.

min()

Given a list of numbers, min() returns the smallest.

Return the minimum score.
Return the minimum score.

max()

Given a list of numbers, max() returns the largest.

Return the maximum score.
Return the maximum score.

round()

Given a decimal, round() returns the nearest integer.

Round Avg. Score.
Round Avg. Score.

Common Text Functions

concat()

concat() merges the text strings provided as its arguments.

Generate Summary by merging other properties with concat().
Generate Summary by merging other properties with concat().

join()

Generate Score List, with each score separated by a comma.
Generate Score List, with each score separated by a comma.

Common Date Functions

Remember, dates can only be supplied as arguments in three ways:

  1. Referencing a Date property
  2. now()
  3. fromTimestamp()

Dates cannot be entered as literal values.

now()

dateBetween()

Determine Months Enrolled as the duration between Enrollment Date and now().
Determine Months Enrolled as the duration between Enrollment Date and now().

dateAdd()

Determine Renewal Date by adding one year to Enrollment Date.
Determine Renewal Date by adding one year to Enrollment Date.

dateSubtract()

dateSubtrac() works like dateAdd() but subtracts the supplied quantity/unit.

formatDate()

Reformat Enrollment Date as YYYY-MM-DD.
Reformat Enrollment Date as YYYY-MM-DD.

Data Type Challenges

When working with functions, you’ll frequently encounter the Type mismatch error. That’s when your inputs are incompatible data types, such as:

It’s important to remain actively attentive to the data type of each property in a database. That includes the returned values of Formula and Rollup properties, which can be particularly confusing.

Text is always text.

Formulas can return any data type.

Demo

https://cdn.prod.website-files.com/63e19fb61b378b1f7340fc96/642c75d4def0a3a8c2081e34_notion-vip_frequent-functions_labeled-birthday.png

Conversion Functions

format()

toNumber()

toNumber() converts any value, of any data type, to a number.

Practical Exercise

For this lesson’s practical exercise, the stakeholders created a database of golfers, with properties that employ the lesson’s concepts. The full instructions and final outcome are available to members of Notion A-to-Z.

All-in on
the all-in-one
productivity app.
Subscribe →