# 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="/files/LONNaY2RB5QlhmKl6Qoq" 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="/files/VlbR0kKg8KIJthxkurBB" alt=""><figcaption><p>Compute - percentage of total output</p></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs-v3.toucantoco.com/data-management-in-datahub/datasets-in-toucan/preparing-data/overview-of-youprep-tm/compute/percentage-of-total.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
