> 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/budgets-and-forecasts/contributor/analyze-workforce-data.md).

# Analyze workforce data

Analyze workforce data  to support business decisions about employee costs and benefits.

After you publish a workforce plan, you can analyze its data in the Workforce database using [Flex Modes](https://docs.phocassoftware.com/flex-modes/). Each plan is published as a separate stream named to match the plan.

If you have access to the Workforce database, it displays in the list of databases under Flex Modes in the Phocas navigation menu.

<div align="left"><figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-b8cd198860f4313b8837f90d0ba9176788764568%2Fimage%20(7).png?alt=media" alt="" width="214"><figcaption></figcaption></figure></div>

1. In the Phocas navigation menu, open **Flex Modes** and click **Workforce**.
2. If several workforce plans have been published, select the required plan from the **Stream** menu. The plan's data displays in the grid.

<div align="left"><figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-1951b5eaf334e73632765123b16e049faa731fc1%2Fimage%20(8).png?alt=media" alt="" width="423"><figcaption></figcaption></figure></div>

{% hint style="info" %}
If you're not familiar with Flex Modes, see [Take a tour of Flex Modes](/flex-modes/take-a-tour-of-flex-modes.md) for an overview.
{% endhint %}

### How the data is structured

When you publish a workforce plan, its employee information, measures, and other data are structured in the Workforce database as follows.

#### Employee data

Each employee is published as an entity in the **Employee** dimension, with their unique employee ID as the **Code**. The employee name is published as a property of the **Employee** dimension.

<div align="left"><figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-c29be4fd2613966a2aa51af8f4494fe79d006b57%2Fimage%20(643).png?alt=media" alt=""><figcaption><p>Employee dimension view of the workforce plan data</p></figcaption></figure></div>

#### Remuneration data (measures)

Each remuneration measure, such as **Salary**, **Bonus**, **Commission**, and **Pension**, is published as an individual measure. A **Total** measure is also published to display the sum of all remuneration measures.

<div align="left"><figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-b39baa1b887a74734808986d2386e5be12a01832%2Fimage%20(649).png?alt=media" alt=""><figcaption><p>Measures menu</p></figcaption></figure></div>

The measures are also published as entities in the **Measure** dimension, giving you additional flexibility when analyzing the data.

<figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-0d6d96186e1b92d9d11b69e645183d1ce003f0cb%2Fimage%20(644).png?alt=media" alt=""><figcaption><p>Measure dimension view of the workforce plan data</p></figcaption></figure>

{% hint style="success" %}
The **Measure** dimension uses system-generated codes. When you view this dimension, to make the data easier to read, use the **Properties** menu to hide **Code** and show **Name** instead.
{% endhint %}

#### Custom data

Custom properties from the workforce plan are published as transaction properties in the Workforce database. You can view them in transaction view only.

### Analysis examples

Because measures are published both as individual measures and as entities in the **Measure** dimension, you have two ways to drill down into the data.

#### View measures vertically

This view is useful for analyzing the components of each employee's remuneration across time.

1. Drag the **Employee** and **Measure** dimensions into the [**Nest view**](/flex-modes/customize-the-grid/create-a-nested-view.md) dropzone.
2. Select the **Total** measure from the **Measures** menu.
3. Expand an employee row in the grid. Each remuneration component and each benefit displays as a row, so you can see exactly what makes up total remuneration for each employee.

<figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-9eb0abf4e2b1bda165041a8f40d5be4bc6db5e88%2Fimage%20(646).png?alt=media" alt=""><figcaption><p>Nested view of employee and remuneration data</p></figcaption></figure>

#### View measures side-by-side

This view is useful for comparing specific measures across employees or other dimensions. Don't include the **Total** measure, as this would double-count the values.

1. Use the **Measures** menu to select the measures you want to view in the grid.
2. Click the **Employee** dimension.

<figure><img src="https://2974338405-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FaNH5UMuZXBHuAbFF7nI2%2Fuploads%2Fgit-blob-1801c431ef2bfe99e298bfc40e2b3b988ef178e1%2Fimage%20(650).png?alt=media" alt=""><figcaption></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.phocassoftware.com/budgets-and-forecasts/contributor/analyze-workforce-data.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.
