# Create a New Dimension

You can create <mark style="color:green;">**New Dimension**</mark> from <mark style="color:green;">**Existing Dimensions**</mark> or by using <mark style="color:green;">**Formulas**</mark> when viewing metrics <mark style="color:green;">**in Table**</mark>.

## 1. Creating New Dimensions using existing Dimensions

* In <mark style="color:blue;">**Data Hub**</mark>, tab <mark style="color:purple;">**Data**</mark>, click  <mark style="background-color:purple;">**+ New**</mark> and choose <mark style="color:orange;">**New Dimension**</mark>

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2F4qZvAtC408t9zWY6t8Rg%2Fimage.png?alt=media&#x26;token=5a3c752a-bfb2-4fab-95e1-d18d3d269bb2" alt=""><figcaption></figcaption></figure>

* Fill <mark style="color:blue;">**Dimension Name**</mark>, select <mark style="color:blue;">**Source Dimensions**</mark> (Data Columns), and write <mark style="color:blue;">**Description**</mark> (optional).

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2Ft7UzRwmSpADzqBSpKpEi%2Fimage.png?alt=media&#x26;token=6febc442-499e-465d-bc11-d0055ec975a5" alt="" width="563"><figcaption></figcaption></figure>

{% hint style="info" %}
You can choose to create a new dimension from one single column or from many different columns.
{% endhint %}

* Input conditions for the new dimensions.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FBq8jsFbSyy759IchMMa4%2Fimage.png?alt=media&#x26;token=d6566f07-efa4-45ac-8b7c-5d01a8d3d41b" alt="" width="563"><figcaption></figcaption></figure>

When you finish adding conditions, you can choose to click **`Create "Others" for all the rest`** and **Save.**

## 2. Create New Dimensions using formulas

* You can create a new dimension when breaking-down a metric from a table, at the searching bar for dimension name **Search dimension or** (type) **= for formula**.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FrezETudtwLWrg5TPfIno%2Fimage.png?alt=media&#x26;token=b9c7c997-343d-4972-98e2-106b95a57e0b" alt="" width="512"><figcaption></figcaption></figure>

* Then formulate the conditions and **Enter**, a New Dimension with be created and automatically broken-down in the table.&#x20;

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FHZTU8oJMNkBtuegXiHPb%2Fimage.png?alt=media&#x26;token=09a9ba98-9ba5-49eb-8784-f810abe28029" alt="" width="563"><figcaption></figcaption></figure>

* This formulated dimesion will be saved as Draft in the working doc, and you can find it at the side bar. Dimension Name and Description will be automatically generated based on the formula.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FI9oXJtbXw7mWqftEjwe4%2Fimage.png?alt=media&#x26;token=6c09fa11-44bc-45eb-8833-84df30d217d8" alt="" width="347"><figcaption></figcaption></figure>

{% hint style="info" %}
This Draft status allows you to review and revise the dimension before saving and publishing it.
{% endhint %}

* As it is still draft, you can change the formula by clicking at the dimension name.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FAQyjwIQHjN6Fx4uWdOT8%2Fimage.png?alt=media&#x26;token=30dbc276-879d-4978-a4a1-c523a9d54f06" alt=""><figcaption></figcaption></figure>

* You can **Save** the dimension or adjust it by clicking on the **Edit icon**. Once you save it, the dimension will appear in the **Data** list and it can be used in other docs, by you and by other team members.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2F4pdAvzJsiX5LuCwoG0Ww%2Fimage.png?alt=media&#x26;token=3d49c408-d0b7-4db4-8286-036492368805" alt="" width="473"><figcaption></figcaption></figure>

{% hint style="info" %}
You can choose not to save the dimension. The dimension will still stay in your doc and you can use it to breakdown other metrics in the doc.
{% endhint %}

## 3. Review your newly created dimension

Once you create dimensions from Source Dimensions or by saving it from Formulas, your dimensions will appear in the Data list, together with the related Table.

<figure><img src="https://133649292-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIYMCWeQmo9kVg5C6SOyv%2Fuploads%2FqSJvnrT8B7ZXqAxr5ygi%2Fimage.png?alt=media&#x26;token=f1776db7-a1cd-4ee9-b60f-a4210acecd2e" alt=""><figcaption></figcaption></figure>

In the above example, the dimension is created when breaking-down metric **Ordered Amount**, which belongs to table **Order Lines**. So, the dimension will be located in the table **Order Lines**.

You can edit the dimension as other dimensions from data source in the table. Check how to edit a dimension in the link below:

{% content-ref url="dimensions-from-data-sources" %}
[dimensions-from-data-sources](https://presight.gitbook.io/presight-v1.0/model/segments-and-custom-segments/dimensions-from-data-sources)
{% endcontent-ref %}
