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

# Derived Columns

> Derived columns are custom columns that you create within your Superjoin reports by applying formulas to your existing data. They allow you to manipulate and transform your data without altering the original dataset, enabling dynamic calculations and insights.

<Frame>
  <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/5-edited-calculated-field.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=369bc55adcfbc1f011b8fe43adccb84d" width="3024" height="1716" data-path="images/derived-columns/5-edited-calculated-field.png" />
</Frame>

## **Benefits of Derived Columns**

<CardGroup cols={2}>
  <Card title="Custom Metrics" icon="plug" iconType="duotone">
    Tailor your metrics to meet specific business needs.
  </Card>

  <Card title="Data Enrichment " icon="rotate" iconType="duotone">
    Enhance your data by combining columns or applying calculations.
  </Card>

  <Card title="Real-Time Analysis" icon="chart-area" iconType="duotone">
    Perform calculations in real-time as your data updates.
  </Card>

  <Card title="Consistency" icon="building" iconType="duotone">
    Ensure that everyone in your organization uses the same formulae and calculations for uniform reporting.
  </Card>
</CardGroup>

## Steps to create calculated fields / derived columns ✨

<Warning>Ensure Superjoin is installed and working before following the rest of the guide.</Warning>

<Steps titleSize="h2">
  <Step title="Open the &#x22;Data Preview&#x22; view">
    <Tip>
      If you already have your desired source connected:

      * Go to the `Sources` tab.
      * Click on the desired source.
      * After clicking on the desired source, if you get an option to import / export the data, choose `Import`.
    </Tip>

    If you need to setup a new integration, please follow the integration guide for the integration of your choice. You can find the guides for various integrations on the sidebar or on the <a href="/integrations/summary">integrations summary</a> page.

    Now you should see the `data preview` screen.

    <Tip>
      Derived columns is only supported in our Chargebee and HubSpot Data Connector. If you wish to use this feature in any other integration, please write to us at [support@superjoin.ai](mailto:support@superjoin.ai).
    </Tip>

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/0-data-preview.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=6eeb7b221fe356f56a501738f840ceb0" width="3024" height="1716" data-path="images/derived-columns/0-data-preview.png" />
    </Frame>
  </Step>

  <Step title="Click on &#x22;Add or Modify Fields&#x22;">
    Click on the `Add or Modify Fields` button. This will open a sidebar where you can add / modify fields, and create calculated field(s) (derived columns).

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/1-sidebar.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=a5d0cfbd42cb6e77ff8b59d2ecf82c7b" width="3024" height="1716" data-path="images/derived-columns/1-sidebar.png" />
    </Frame>
  </Step>

  <Step title="Create a calculated field (Derived Column)">
    * Click on `Create calculated field` button.
    * Enter the `Field name`, this will be the name for the newly generated column.
    * Write a formula in the `Formula` section. You can use the `Fields` & `Functions` tab to search for and select the fields and functions, respectively.
    * Once ready, click on `Add Field`.

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/2-create-formula.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=102589ba711ef9452f7d9fb5f053c3b0" width="3024" height="1716" data-path="images/derived-columns/2-create-formula.png" />
    </Frame>
  </Step>

  <Step title="Preview the Derived Column">
    After adding the field, the derived column would be visible as the last column in the preview.
    You can add more derived columns.

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/3-preview-derived-column.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=54eb69083f7fa77b9448cdee9c09bb43" width="3024" height="1716" data-path="images/derived-columns/3-preview-derived-column.png" />
    </Frame>
  </Step>

  <Step title="Entering the edit mode">
    * In the `Add Fields` section, click on `Your Calculated Fields` to expand it if not already.
    * Hover over the desired derived column title under the `Your Calculated Fields` to see an Edit option (Pencil Icon).
    * Click on the Edit option (Pencil icon) to edit the formula.

    <Warning>You can click `Delete` to delete the calculated field.</Warning>

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/4-modify-calculated-fields.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=d536d252f2a1a3e9653bc3ed8556743d" width="3024" height="1716" data-path="images/derived-columns/4-modify-calculated-fields.png" />
    </Frame>
  </Step>

  <Step title="Modify or Delete the derived column">
    * Modify the formula as per needed.
    * Click `Update` to update the derived column.
    * Click `Delete` to delete the derived column.

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/5-edited-calculated-field.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=369bc55adcfbc1f011b8fe43adccb84d" width="3024" height="1716" data-path="images/derived-columns/5-edited-calculated-field.png" />
    </Frame>
  </Step>

  <Step title="Preview the calculated field">
    The calculated field should now have updated.
    <Warning>The column will no longer exist if you chose to `Delete` the column.</Warning>

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/6-updated-calculated-field.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=e392cad72fd4b1aefe4e0cba831e5530" width="3024" height="1716" data-path="images/derived-columns/6-updated-calculated-field.png" />
    </Frame>
  </Step>

  <Step title="Import the data">
    Click on `Import` to import the data to a Google Sheet along with the derived column.

    <Frame>
      <img src="https://mintcdn.com/superjoin/Fj1m3rGY5-lshl-N/images/derived-columns/7-imported-data.png?fit=max&auto=format&n=Fj1m3rGY5-lshl-N&q=85&s=b544c132ec91485acdf0460c125afad1" width="3024" height="1716" data-path="images/derived-columns/7-imported-data.png" />
    </Frame>
  </Step>
</Steps>

## **Formula Glossary**

Explore a comprehensive list of operators and functions to enhance your derived columns. The glossary includes essential mathematical, string, date, and logical functions, along with examples to help you create powerful formulae in Superjoin.

<CardGroup cols={2}>
  <Card title="Operators" icon="plus-minus" iconType="duotone" href="operators" />

  <Card title="Mathematical Functions" icon="calculator" iconType="duotone" href="mathematical-functions" />

  <Card title="String Functions" icon="text" iconType="duotone" href="string-functions" />

  <Card title="Date Functions" icon="calendar" iconType="duotone" href="date-functions" />

  <Card title="Logical Functions" icon="filter" iconType="duotone" href="logical-functions" />

  <Card title="Examples" icon="play" iconType="duotone" href="examples" />
</CardGroup>
