> For the complete documentation index, see [llms.txt](https://docs.phocassoftware.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.phocassoftware.com/other-information/glossary/special-values.md).

# Special values

Learn what special values such as NaN, Infinity, zero, and blank cells mean, and how they're handled in different modules.

Some values require special handling when they're displayed or used in calculations and charts. The meaning of these values is consistent across Phocas, but how they're displayed and handled might vary between modules. Understanding these differences can help you interpret your data correctly.

<div align="left"><figure><img src="https://4232616215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqRvX8Eg8GftkyP0R8RVU%2Fuploads%2Fgit-blob-29021ad4a91dc69f7828436c5ab69f1cf2f6ac0f%2Fimage%20(680).png?alt=media" alt=""><figcaption><p>Examples of special values you might see in Flex Modes</p></figcaption></figure></div>

<figure><img src="https://4232616215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqRvX8Eg8GftkyP0R8RVU%2Fuploads%2Fgit-blob-f9d899abbab52d78125a5d4ed3e042a4a9b1e373%2Fimage%20(685).png?alt=media" alt=""><figcaption><p>Examples of special values you might see in Financial Statements</p></figcaption></figure>

### What special values mean

<table><thead><tr><th width="244">Value</th><th>Meaning</th></tr></thead><tbody><tr><td><strong>NaN (not a number)</strong></td><td>A value that can't be represented as a number. For example, this can result from text in a numeric column, a calculation that has no defined numeric result, or zero divided by zero.<br>0 ÷ 0 → NaN</td></tr><tr><td><strong>Infinity (+∞ / −∞)</strong></td><td>The result of dividing a non-zero number by zero. The sign depends on whether the number was positive or negative.<br>non-zero ÷ 0 → ±∞</td></tr><tr><td><strong>0</strong></td><td>The numeric value zero.</td></tr><tr><td><strong>- (dash)</strong></td><td>Usually represents zero because of the number format applied to the value.</td></tr><tr><td><strong>Blank cell</strong></td><td>No value exists for the cell.</td></tr><tr><td><strong>#ERR</strong></td><td>An error occurred in a calculation, such as when a formula contains text or references a missing column.</td></tr></tbody></table>

### Flex Modes

#### Special values in calculations

The following table explains how Flex Modes handles these special values in calculations.

<table><thead><tr><th width="218" valign="top">Value displayed in the grid</th><th valign="top">In calculations</th></tr></thead><tbody><tr><td valign="top"><strong>NaN</strong></td><td valign="top">Ignored where only numeric values are used.</td></tr><tr><td valign="top"><strong>Infinity</strong></td><td valign="top"><p>Displayed as the word <strong>Infinity</strong>.</p><p>Included as a numeric value when calculating the total or average of a row or column.<br>Ignored when calculating the average, count, or sum of selected cells.<br><img src="https://4232616215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqRvX8Eg8GftkyP0R8RVU%2Fuploads%2Fgit-blob-02536ccff34cbb44535e53fcacad7e56528ab523%2Fimage%20(681).png?alt=media" alt=""></p></td></tr><tr><td valign="top"><strong>0 (might display as -)</strong></td><td valign="top">Included as a numeric value.</td></tr><tr><td valign="top"><strong>Blank cell</strong></td><td valign="top">Ignored when calculating averages and totals.</td></tr><tr><td valign="top"><strong>#ERR</strong></td><td valign="top">Ignored where only numeric values are used.</td></tr></tbody></table>

#### Special values in charts and dashboards

Because special values can't be meaningfully plotted, they display as zero in charts to avoid gaps or misleading spikes. This also applies when the chart is displayed on a dashboard.

<div align="left"><figure><img src="https://4232616215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqRvX8Eg8GftkyP0R8RVU%2Fuploads%2Fgit-blob-595a3fd49c00c6d0525fd3a2d8c75b5e96ee692e%2Fimage%20(682).png?alt=media" alt="" width="528"><figcaption><p>Example of special values displayed as zero in a chart</p></figcaption></figure></div>

### Financial Statements

The following table explains how Financial Statements handles these special values in calculations.

<table><thead><tr><th width="218" valign="top">Value displayed in the grid</th><th valign="top">In calculations</th></tr></thead><tbody><tr><td valign="top"><strong>NaN</strong></td><td valign="top">Ignored where only numeric values are used.</td></tr><tr><td valign="top"><strong>Infinity</strong></td><td valign="top"><p>Displayed using the infinity symbol (<strong>∞</strong>).</p><p>Included as a numeric value in calculations:</p><ul><li>If ∞ is present, the sum and average show as <strong>∞</strong>.</li><li>If –∞ is present, the sum and average show as <strong>-∞</strong>.</li><li>If both are present, the sum and average display as <strong>NaN</strong>.</li></ul><p>Included when calculating the average, count, or sum of selected cells.</p><p><img src="https://4232616215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqRvX8Eg8GftkyP0R8RVU%2Fuploads%2Fgit-blob-f2385ccd25a0db00ab0637f17ce1425a99f82c65%2Fimage%20(686).png?alt=media" alt="" data-size="original"></p></td></tr><tr><td valign="top"><strong>0 or -</strong></td><td valign="top"><p><strong>0</strong> means that all transactions add up to zero or a calculation evaluates to zero.</p><p>A dash is only used in <strong>Variance Percent</strong> columns and means the variance percent evaluates to either zero or infinity.</p></td></tr></tbody></table>

#### Special values in charts and dashboards

Special values that can't be meaningfully plotted typically display as zero in charts to avoid gaps or misleading spikes. This also applies when the chart is displayed on a dashboard.

Infinity is handled differently in some chart types:

* Bar, Line, Bullet, Gauge and Waterfall: The chart doesn't display if it contains positive or negative infinity.
* Pie: Infinity is ignored.
* Value Card: Positive or negative infinity displays as **∞** or **−∞**.

<figure><img src="https://4232616215-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FqRvX8Eg8GftkyP0R8RVU%2Fuploads%2Fgit-blob-a6bddd2e0a5a3bb5b5b38852c8cc2231ef252e36%2Fimage%20(688).png?alt=media" alt=""><figcaption><p>Example of a chart that doesn't display because the source data contains infinity</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.phocassoftware.com/other-information/glossary/special-values.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
