# Percentage of total

The Percentage of total step helps you calculate the relative proportion of each value within a total, optionally within specified groups. It's essential for understanding the composition of your data and relative contributions.

### Step parameters

* `Value Column` **column (string)\***: The column that will be used for the computation.
* `Group By` **column (string)\* (optional)**: if you want the computation to be segmented by group, you can select one or several columns that will be used to constitute unique groups.
* `New column name` **string (optional)**: if you want to give a custom name to the column of results to be created. By default, it will be your original column name suffixed by `_PCT`.

### Example

**Input**

<figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-dc1072bb94482dcff446bccd009678eaa67afb77%2Fpct_input.png?alt=media" alt=""><figcaption><p>Compute - percentage of total input</p></figcaption></figure>

**Configuration**

```json
{
    "column": "sales",
    "group_by": [],
    "new_column_name": "sales_percentage"
}
```

**Output**

<figure><img src="https://1809014303-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZxYYf1KpgarKMgMsDCrw%2Fuploads%2Fgit-blob-df08f1e7a42184641f245c8eca11534b85c6b248%2Fpct_output.png?alt=media" alt=""><figcaption><p>Compute - percentage of total output</p></figcaption></figure>
