---
title: "Group data dynamically with mapped Dimensions"
slug: "mapped-dimensions"
description: "Learn how to use mapped Dimensions to dynamically group data in Views, enhancing performance without redesigning your model."
updated: 2025-10-29T12:04:59Z
published: 2025-10-29T12:04:59Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://kb.pigment.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Group data dynamically with mapped Dimensions

With **mapped Dimensions**, you can dynamically group data within a View, without having to redesign your model.

This feature provides an alternative to changing the Dimension structure of each Metric in a Table, making Tables faster to build and more performant.

## Before you begin

You can use a Property to group data when there is a static relationship between two Dimensions. For example, grouping Countries into Regions through a Property is appropriate because a Country typically remains in the same Region. For more information, see [Set up Properties in Lists](/v1/docs/set-up-properties-in-lists#group).

However, when relationships are dynamic, such as employees belonging to teams that change from month to month, a different approach is required. In these cases, use **mapped Dimensions**.

> [!WARNING]
> **⚠️ Important**
> 
> You need certain [Permissions](/v1/docs/roles-permissions-access-rights#roles-permissions-and-access-page) depending on what **mapped Dimensions******actions you wish to carry out:
> 
> - To [add a mapped Dimension to a View using the Pivot panel](/v1/docs/mapped-dimensions#add-the-dimension-to-a-view), you need the [Configure Views](/v1/docs/roles-permissions-access-rights#roles-permissions-and-access-page) permission.
> - To set up a mapping Metric, you need the [Configure Blocks](/v1/docs/roles-permissions-access-rights#roles-permissions-and-access-page) permission. See [Make a mapping Metric](/v1/docs/make-a-mapping-metric) for more information.

### Use cases

#### In a Metric

This use case looks at employees’ salaries stored in a Metric called **Salary**with Dimensions of **E****mployee**and **Month**.

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(103).png)

You want to see the salary data by **Team**, a Dimension that is not in the Metric’s existing Dimension structure.

For this, you use a [mapping Metric](/v1/docs/make-a-mapping-metric) that sets out which employee is in which team by month:

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(109).png)

You can then use **Map a Dimension to the View** to add the Team Dimension. This lets you view **Salary**defined on **Employee**and **Month**along with **Team**, as below.

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(104).png)

Or you can remove **Employee**from the View and just visualize data aggregated by **Team**, as here:

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(105).png)

#### In a Table

A common and powerful use case for this feature is in Tables.

In this example, you have a Table with your Employees’ salaries set against the Revenue they bring in per month. You make a Table of the two Metrics. A Calculated Item provides an Employee-by-Employee EBITDA number:

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(107).png)

To view this data by Team, without Mapped Dimensions, you would need to add the **Team** Dimension to each Metric in the Table. But by mapping the Team Dimension instead, you can achieve this result without altering the underlying model or its formulas. This approach also improves performance:

![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(108).png)

## Set up mapped Dimensions

To set up mapped Dimensions using the example above, you need:

- a Metric (in the above example, this was **Salary**) that contains at least two Dimensions.
- a [mapping Metric](/v1/docs/make-a-mapping-metric) (**Employee x Team Mapping**in the example), whose Dimensions are present in the first Metric. It has a data type of Dimension (**Team**in the example).

The example shows mapping between just two Dimensions (**Employee**and **Team**) but multiple Dimensions are possible.

> [!WARNING]
> **⚠️**Important
> 
> Mapping Metrics used for mapped Dimensions cannot include any Dimensions that do not appear in the first Metric.

### Add the Dimension to a View

1. In your Metric, open the **Pivot**panel.
2. Select the **+** beside Row or Column according to where you’d like your mapped Dimension to appear.
3. Select **Map a Dimension to the View**(see image below).
4. A dialog opens providing a dropdown of your Application’s Dimensions. Select the Dimension you wish to add.
5. A mapping Metric selector appears in the next field. It only contains mapping Metrics whose Dimensions match those of one or more Metrics currently available in the View. Select the applicable mapping Metric.
6. Your mapped Dimension appears with an arrow symbol ![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(52).png) showing that it is external to your Block. ![](https://cdn.document360.io/e47cfe35-dc28-40c7-a083-6cf003073d8e/Images/Documentation/image(55).png)

## Behavior

- Once added to a Table, a mapped Dimension is available to all Metrics that share the mapping Metric’s Dimensions. You do not need to reconfigure mapped Dimensions for subsequent uses.
- You can add multiple mapped Dimensions to a single View, on the same source Dimensions, or on others.
- A Dimension added through mapped Dimensions has the same functionality as Dimensions added in the normal way, including:
  - Filters
  - Calculated Items
  - Show values as
  - Page selectors
  - Dimension replacement. For more information, see [Change Views in Pivot](/v1/docs/change-views-pivot-pigment#replace-a-dimension-in-grid-headers-and-charts).

> [!NOTE]
> ℹ️ Note
> 
> It is not possible to add a mapped Dimension to a View that already has a [breakdown](/v1/docs/break-down-metrics-grid) present. Similarly, it is not possible to add a breakdown to any view containing a mapped Dimension.
