<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5a1e3ce-00fa-46e4-9a75-58c2aed9e8ce/Notion_Fundamentals_with_Thomas_Frank_-_Avatar_2021.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5a1e3ce-00fa-46e4-9a75-58c2aed9e8ce/Notion_Fundamentals_with_Thomas_Frank_-_Avatar_2021.png" width="40px" /> Notion formulas do not provide a “null” or “empty” data type. However, you can still return an empty result from a formula. The example database below shows how to do so for each of the four data types available for use in Notion formulas.

Created by Thomas Frank | Learn Notion Formulas | Notion Basics | Templates | Twitter

</aside>

Null/Empty Formula Output

<aside> <img src="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5a1e3ce-00fa-46e4-9a75-58c2aed9e8ce/Notion_Fundamentals_with_Thomas_Frank_-_Avatar_2021.png" alt="https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a5a1e3ce-00fa-46e4-9a75-58c2aed9e8ce/Notion_Fundamentals_with_Thomas_Frank_-_Avatar_2021.png" width="40px" /> This example database shows a use for empty/null value output in formulas. The Action Rating, Animation Rating, and Comedy Rating formulas only output a row’s Rating value if it has the correct genre. This allows the rollups to calculate an average rating for only the movies within each genre.

Without the ability to output an empty/null value, calculating the correct average would not be possible.

</aside>

Movie Ratings

Untitled Database


© Thomas Frank