# Change the period

{% hint style="success" %}
Periods are a core concept in Phocas. Read the [Periods](https://app.gitbook.com/s/7pj8v25BOyqZTdG5mdD1/getting-started/periods) page to learn more about the **Period** menu and the different types of periods.
{% endhint %}

You use the **Period** menu to change the timeframe that applies to the data in the grid.

{% hint style="success" %}

* Flexible Variance mode has three period menus, allowing you to view data for three different periods to the grid.&#x20;
* If you add a measure column to the grid, you can change the period that applies to its data in the column definition settings.
  {% endhint %}

## Apply a defined period

Click the **Period** menu to view the list of defined periods, then select the one you want to apply.&#x20;

The selected period displays in the **Period** menu and the grid updates with data for that date range.&#x20;

<div align="left"><figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2Foi5QTkxEK9S5K3ABVXAj%2Fimage.png?alt=media&#x26;token=c1b9ee51-e4b7-427e-a730-a99aff0b9549" alt="" width="563"><figcaption></figcaption></figure></div>

### Add your own defined period <a href="#changetheperiod-inanalytics-addauser-definedperiod" id="changetheperiod-inanalytics-addauser-definedperiod"></a>

You can’t create [user defined periods](https://docs.phocassoftware.com/analytics/customize-your-view-analytics/change-the-period-analytics#changetheperiod-inanalytics-addauser-definedperiod) in Flex Modes. To use one there, first create it in Analytics. It will automatically flow through and be available in Flex Modes.

<div align="left"><figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FApfR7aTZqGaq3ffOZwDn%2FScreenshot%202025-12-11%20at%2014.41.04.png?alt=media&#x26;token=e0e8f124-a168-4712-870e-fdf7a065aaa8" alt="" width="563"><figcaption></figcaption></figure></div>

## Apply a custom period

1. Click the **Period** menu > **Select dates** option.&#x20;
2. Select the period type (time unit): **Year**, **Month**, **Week**, or **Day**.&#x20;
3. Choose whether to apply **fixed** or **dynamic** date range.&#x20;
   * Use fixed when you need precision, repeatability, or historical consistency.&#x20;
   * Use dynamic when you need automation, recency, or ongoing monitoring.
   * See below for more details and examples of each option.
4. Select the **Start** and **End** of the date range.&#x20;
5. Click **Apply**.

Your custom period displays in the **Period** menu and the grid updates with data for that date range.&#x20;

### Apply a fixed date range

A fixed date range has a set start and end date. The data is always the same, even if you redo the analysis or open a favorite later.&#x20;

Use cases include:&#x20;

* An annual sales report for the 2025 financial year.
* Analysis of a marketing campaign that ran from March 15 to April 30, 2025.
* A comparison of sales in January 2024 and January 2025.&#x20;

For example, suppose you're analyzing your Sales database and want to identify customers who purchased products during the summer season (in the northern hemisphere).&#x20;

1. Select the **Month** period type.
2. Select June 2025 as the **Start** month and August 2025 as the **End** month.
3. Click **Apply**.&#x20;

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2Fx6UzvFTnTfXSGBRlHh6a%2Fimage.png?alt=media&#x26;token=334facbc-7ef5-4a8d-a9c1-799159e45b79" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FmQd356rcmSl3IW3j10eY%2Fimage.png?alt=media&#x26;token=0c38b8cc-06d9-4f9c-91d4-17801161e274" alt=""><figcaption></figcaption></figure>

### Apply a dynamic date range

A dynamic date range updates automatically based on when you run the analysis. Common options include *Last 30 days*, *Month to date (MTD)*, and *Year to date (YTD)*.

Dynamic ranges are useful for ongoing monitoring because if you [used in favorites](https://docs.phocassoftware.com/analytics/flex-modes/save-and-share-a-favorite), you always see the latest data without having to reset the period manually.

Use cases include:&#x20;

* A Sales dashboard showing the last 7 days revenue.
* An Inventory report tracking stock levels in the month to date (MTD) or quarter to date (QTD).
* A weekly performance review always looking at the previous week.

The following examples are common *set-and-forget* dynamic periods you can add to your analysis:

<details>

<summary>Last month</summary>

Suppose today is in the month of September and you want to view the Sales performance of the previous month. Next month (October), you'll want to see September's sales values, and so on.

1. Select the **Month** period type.
2. Click **Use dynamic dates** at the bottom of both the **Start** and **End** calendars. By default, the **Relative** dynamic option is selected for both.
3. Leave **Last month** selected for the **Start**, but change the **End** from **This month** (default) to **Last month**.
4. Click **Apply**.&#x20;

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FkOu1epvqaDiTrhmwlQC4%2Fimage.png?alt=media&#x26;token=f283c77f-8aaf-4acc-9e32-57e10320b767" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2F1z8SJ4ugfPrtnnnCh8oH%2Fimage.png?alt=media&#x26;token=3591a156-e5f7-4405-a83f-8143f85f07d4" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Rolling 12 months</summary>

Suppose today is in the month of September and you want to view sales data for the last 12 months up to today. Going forward, you want to see the past 12 months' sales data on any given day.

1. Select the **Month** period type.
2. Click **Use dynamic dates** at the bottom of both the **Start** and **End** calendars. By default, the **Relative** dynamic option is selected for both.
3. Change the **Start** to **11 months ago** and the **End** to **This month**.
4. Click **Apply**.

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2F585Qu1DOSKVFUR5QihTX%2Fimage.png?alt=media&#x26;token=9f860cac-21f5-4fc9-b757-f238a973ee83" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FOO6WwKZAqIYjsp9XmYsz%2Fimage.png?alt=media&#x26;token=17bed6da-22fe-41f9-b1b9-6d963f1ee39a" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Last 3 years</summary>

Suppose today is in the month of September and you want to view the sales data for the last 3 years. Going forward, you want to see the past 3 years' sales data on any given day.

1. Select the **Year** period type.
2. Click **Use dynamic dates** at the bottom of both the **Start** and **End** calendars.
3. Change the **Start** to **2 years ago** and the **End** to **This year**.
4. Click **Apply**.

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FywG9GFzi7IQTyaFg6ueX%2Fimage.png?alt=media&#x26;token=27f0962a-fce5-49bf-a96d-f0cce9b682e8" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FAgKZbzijGynUYrnaPP1e%2Fimage.png?alt=media&#x26;token=250bdf98-5c45-4969-a2c1-3b8ebc554098" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Last 7 days</summary>

Suppose today is September 29 and you want to view the sales data for the last week (7 days). Going forward, you want to see the past weeks' sales data on any given day.

1. Select the **Day** period type.
2. Click **Use dynamic dates** at the bottom of both the **Start** and **End** calendars. By default, the **Relative** dynamic option is selected for both.
3. Change the **Start** to **7 days ago** and leave the **End** as **Today** (default).
4. Click **Apply**.

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FZqqtrQ2yAWThaTQIkF5C%2Fimage.png?alt=media&#x26;token=0fbaddeb-f241-45d4-8b4b-b232556452e0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FAz6zSNDfy4lX946zSeFs%2Fimage.png?alt=media&#x26;token=ea612281-b6c8-4eec-a9b7-12faf07c455f" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Financial year-to-date (most recent)</summary>

Suppose your financial year runs from April to March and you want to see this year's financial performance so far (September). Going forward, you want to see data for the financial year-to-date on any given day.

1. Select the **Month** period type.
2. Click **Use dynamic dates** at the bottom of both the **Start** and **End** calendars. By default, the **Relative** dynamic option is selected for both.
3. Select **Recent** > **Most recent** > **April** for the **Start**.
4. Leave **Relative** > **This month** (default) selected for the **End**.
5. Click **Apply**.

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FDKgQUShHG2sTcPOah6R5%2Fimage.png?alt=media&#x26;token=0bf2b15b-28ee-4992-9af8-97dbe0dd35f1" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FVKn60qUy41LwvOSMqsdG%2Fimage.png?alt=media&#x26;token=87754039-c463-4df5-9486-2f918a53420b" alt=""><figcaption></figcaption></figure>

</details>

<details>

<summary>Yesterday (one of special dynamic dates for days)</summary>

In addition to the relative options, the Day period type has special rules you can use to set dynamic start and/or end dates:

* **First day**: Always the first day of the month.
* **Last day**: Always the last day of the month.
* **Match today**: The same day number as today. For example, the 29th of each month.
* **Match yesterday**: The same day number as yesterday. For example, the 28th of each month.

Suppose you want to quickly review the previous day's data on any given day.&#x20;

1. Select the **Day** period type.&#x20;
2. Click **Use dynamic dates** at the bottom of both the **Start** and **End** calendars. By default, the **Relative** dynamic option is selected for both.
3. Select **Special** > **Match yesterday** for both the **Start** and **End**.
4. Click **Apply**.

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FfqqCvwYAwjtNH4og8FBc%2Fimage.png?alt=media&#x26;token=38fc0ff5-5343-4e32-b1a3-211600d02dc6" alt=""><figcaption></figcaption></figure>

<figure><img src="https://3905307611-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FitAvDF3MljQXV0rjHRP7%2Fuploads%2FCQrkdDNp7V8ZgbOOOsIn%2Fimage.png?alt=media&#x26;token=e3104e05-6e35-4a73-a9f1-1d93a5b1552f" alt=""><figcaption></figcaption></figure>

</details>
