> For the complete documentation index, see [llms.txt](https://doc.dataflake.co/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.dataflake.co/drilldowns/table-chart-comparison-and-running.md).

# Table Chart Comparison & Running

### **Comparison Calculations** <a href="#od_6883bdd7" id="od_6883bdd7"></a>

You can include metrics that compare the overall value of a column to each row of your data.

1. In **Columns** section, click the **pen** icon

<figure><img src="https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2FQxD5npoxN85WEccDeFKW%2Fimage.png?alt=media&amp;token=14a308a4-317d-43a3-9516-041ab5e426d7" alt="" width="375"><figcaption></figcaption></figure>

1. Click on the down arrow in the **Comparison calculation** field to select the type of comparison calculation you want to use
2. Percent:total - the current row's value divided by the total for that field.
3. Percent:max - the current row's value divided by the maximum value for that field.
4. Diff:total - the total for that field minus the current row's value.
5. Diff:max - the current row's value minus the maximum value for that field.
6. Percent-diff:total - the total for that field minus the current row's value divided by the total for that field.
7. Percent-diff:max - the current row's value minus the maximum value for that field divided by the total for that field.

<figure><img src="https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2FxLRWnUEViIJr7sd8NWxV%2Fimage.png?alt=media&amp;token=632f0126-343a-4b6e-92ba-54810e2b5c82" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
**Another quick way to turn on the running calculations box is click the icon near the header of the table chart**
{% endhint %}

<figure><img src="https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2Fgod2k54zVU1pWtnHgbpJ%2Fimage.png?alt=media&amp;token=9042d1c1-2852-4730-b86b-b3fa906bb9b1" alt="" width="275"><figcaption></figcaption></figure>

### **Running calculations** <a href="#od_cf3d17cc" id="od_cf3d17cc"></a>

Running computations produce a set of summary outcomes based on a set of data. They produce a result for each row of input, indicating how that row relates to the rest of the collection.

1. In **Columns** section, click the **pen** icon
2. Click on the down arrow in the **Running calculation** field to select the type of comparison calculation you want to use

* Running sum: sum all value from current row up
* Running min: minimum value from current row up
* Running max: maximum value from current row up
* Running count: current row value
* Running average: average value from current row up
* Running delta: value of current row - value of the row above

<figure><img src="https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2FNUK2ynyCEat17xJM0ZhI%2Fimage.png?alt=media&amp;token=d737aeb1-d2ad-4e57-99ed-dc8c024dc341" alt="" width="375"><figcaption></figcaption></figure>

{% hint style="info" %}
Another quick way to turn on the running calculations box is click the icon near the header of the table chart
{% endhint %}

<figure><img src="https://1648695648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FygZlXb1uCVgursV03Kgn%2Fuploads%2FeLrgpq0FBqALrGuNxs6Z%2Fimage.png?alt=media&amp;token=44b09929-02a3-4015-8101-23a1182c63bb" alt="" width="268"><figcaption></figcaption></figure>
