> For the complete documentation index, see [llms.txt](https://docs.inforiver.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/formula-syntax/identifiers/column.parent.md).

# COLUMN.PARENT

COLUMN.PARENT refers to the column's immediate parent in a column hierarchy. Chaining is possible - COLUMN.PARENT.PARENT refers to the grandparent and so on.

### Example <a href="#example" id="example"></a>

We want to calculate the percentage sales contribution from January to the first quarter.

One way to calculate would be to select the 'Units Sold' column of *January* and divide it by the 'Units Sold' column under *Qtr1.*

Instead, we can use the reference 'COLUMN.PARENT' to refer to *Qtr1* as it is the immediate parent of *January*. In the below image, you can see that for January in the *Canada* region, % Contribution is calculated as 14.26/34.43 resulting in 41.40%.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FNcdyrKfDGkM9J4k8cmSw%2Fimage.png?alt=media&amp;token=7a0cc193-39a3-4f87-aeeb-24c1fcb688a7" alt=""><figcaption><p>%contribution from January to Quarter1</p></figcaption></figure>

You can calculate the % sales contribution from January to the entire year using COLUMN.PARENT.PARENT.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FuhpIifh4XmzidUEC4L9X%2Fimage.png?alt=media&amp;token=d62350f8-02f3-401c-9c54-59c5c8710d90" alt=""><figcaption><p>%contribution from January to the entire year</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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.inforiver.com/~/changes/mS6jwvARNLHpKqBa4cT9/formula-syntax/identifiers/column.parent.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
