# CURRENT\_PERIOD

The CURRENT\_PERIOD identifier dynamically refers to each period in the report. It can be used with date-based functions like SHIFT or MOVING\_AVERAGE.

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

1. The AGGREGATE function has been used with the CURRENT\_PERIOD identifier to find the minimum sales 3 months prior to each month in the report.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FKQt5e8OyR0y2nzcuTQaP%2Fimage.png?alt=media&#x26;token=8ca2bd12-d4d7-40a5-b0d4-7752ea66cfea" alt=""><figcaption><p>AGGREGATE with CURRENT_PERIOD</p></figcaption></figure>

2. We've used SHIFT function with the CURRENT\_PERIOD identifier to shift each month by 2 months. For example, for January, the SHIFT function returns March 01st.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FVV9nWW4d6i5eenruMKuK%2Fimage.png?alt=media&#x26;token=1e55bcfc-d59e-450e-846d-1e67b445faba" alt=""><figcaption><p>SHIFT function with CURRENT_PERIOD</p></figcaption></figure>

3. We've used MOVINGSUM with the CURRENT\_PERIOD identifier to calculate the rolling sum of the profit for each month and 2 months after that month. For example, the MOVINGSUM for January would be the sum of the profits for January, February, and March.

<figure><img src="https://3062809325-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FEbkCXCUXmtUq5tcnUtZE%2Fuploads%2FOgJTur9BsIcQJLjqyAhF%2Fimage.png?alt=media&#x26;token=7014d4f2-1163-4a98-b803-4ad394a5a438" alt=""><figcaption><p>MOVINGSUM with CURRENT_PERIOD</p></figcaption></figure>


---

# Agent Instructions: 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:

```
GET https://docs.inforiver.com/formula-syntax/identifiers/current_period.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
