> 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/analytics/customize-your-view-analytics/change-the-mode/matrix-variance-mode.md).

# Matrix Variance mode

{% hint style="info" %}
This mode is only available when a matrix is active; it is not available in Summary view.
{% endhint %}

Matrix Variance mode takes an existing matrix and adds additional columns, to show the previous period and variance. It is effectively a combination of Matrix mode and Variance mode. Matrix Variance mode is useful if you want to compare an existing matrix with another period, for example, last year, month or quarter.

{% embed url="<https://phocassoftware.wistia.com/medias/tcl3yfczqq>" %}
Matrix Variance and Matrix Share mode
{% endembed %}

The following example uses Matrix Variance mode to identify which customers have bought downlights but not transformers, both this year and last year:

1. Start with an existing a matrix (this example continues with the example in the [Compare data with Matrix mode](/analytics/compare-data-with-matrix-mode.md) page).
2. Select **Mode** > **Matrix Variance**. The grid updates to display additional columns for the previous period and the variance between the current and previous period.

   <figure><img src="https://content.gitbook.com/content/itAvDF3MljQXV0rjHRP7/blobs/pdBejM2I9t572biJiZQM/2994438470.png" alt=""><figcaption></figcaption></figure>
3. (Optional) Go back to your regular matrix: click **Mode** > **Matrix**.


---

# 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.phocassoftware.com/analytics/customize-your-view-analytics/change-the-mode/matrix-variance-mode.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.
