---
title: "How to create a computation in the Data Studio?"
slug: "how-to-create-a-computation-in-the-data-studio"
updated: 2025-11-05T15:57:37Z
published: 2025-11-05T15:57:37Z
canonical: "help.madkudu.com/how-to-create-a-computation-in-the-data-studio"
---

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

# How to create a computation in the Data Studio?

You've [pulled](/v1/docs/how-to-pull-additional-fields-to-use-in-the-madkudu-platform) and [mapped](/v1/docs/attribute-mapping) one of your CRM fields and you'd like to see its impact on conversions?

![blobid0.png](https://support.madkudu.com/hc/article_attachments/29653285426829)

You've explored our [list of computations](/v1/docs/definitions-of-standard-computations) and it gave you ideas of new data points to explore?

This article is made for you! It will guide you through the creation of a computation.

**Let's take 3 examples:**

- You pulled your Salesforce field 'Number of developers' on the 'Lead' object, that your inbound leads have to fill in when they sign up to your product, and you mapped this field in the attribute mapping, calling it 'salesforce_lead_numbers_of_developers'
- You see the computation 'tech' that detects various technologies, and want to use it to detect which competitor technology your leads use, such as PowerBI, Looker, or Tableau.
- You see the computation 'tech' that detects various technologies, and want to use it to detect whether a lead has any integration with your product, such as GitHub, AWS, or MixPanel.

### **Prerequisites**

- You have [access to the Data Studio](/v1/docs/introduction-to-madkudu-data-studio)
- You have the permissions of the [Architect or Admin](/v1/docs/user-roles-permissions) role
- You know what an [Attribute](/v1/docs/attribute-mapping) is
- You know what a [Computation](/v1/docs/what-are-computations) is

# **Step 1: Create a computation**

1. Go to the Data Studio by following [studio.madkudu.com](https://springbok.madkudu.com/), or through the [App](https://app.madkudu.com/) > Predictions > Data Studio
2. Click on **Computations******then******New computation**

  

**![mceclip1.png](https://support.madkudu.com/hc/article_attachments/4423679247629)**
3. Configure the computation
  - **Computations Name:** Pick a meaningful name
    - **Example*********Number of developers***: You can call your computation 'Salesforce Lead Number of Developers'
    - **Example*********Competitor***: 'Competitor Tech Used'
    - **Example*********Integration***: 'Has supported integration'
  - Select the **Type** of computation ![mceclip5.png](https://support.madkudu.com/hc/article_attachments/4423699064589)
    - *String:* output is a text
    - *Numeric:* output is a number or a boolean (0 or 1, for true or false)
      - **Example*********Number of developers***: You know the possible values for this field in your CRM are the buckets '1-10', '11-20'... So select **String**
      - **Example*********Competitor***: The output will be the name of the technology, so select **String**
      - **Example*********Integration***: The output will be a boolean (Does this lead use an integration? -> yes/no, true/false), so select **Number/Boolean**
  - **Mode of Configuration:******select among the 3 following choices ![mceclip4.png](https://support.madkudu.com/hc/article_attachments/4423695240205)
    - **Conditional:******for a computation based on the condition of other computations or attributes. In **Configuration**, select the rule of the computation *e.g. "IF _tech contains Segment THEN 1"*

1. 
  - 
    - **oneToOne**: simple mapping of the computation to an attribute mapped in the attribute mapping from your custom field. In **Configuration**, select the field to use as a computation.
    - **Advanced***:***for building advanced computations in SQL. Simply enter a SQL condition (not an entire query) into the **Definition** field.

*Ex1: "COALESCE (industry, industry_salesforce)"*

  

*Ex2: "CASE WHEN (LOWER(zi_job_title) LIKE '%product%design%' OR mk_job_title LIKE '%product%design%' ) AND LOWER(zoominfo_industry) LIKE '%fintech%' THEN 1 ELSE 0 END"*
      - **Example*********Number of developers***: You don't need to transform this field and want to use is as is, so select **oneToOne** ![mceclip0.png](https://support.madkudu.com/hc/article_attachments/4433553498509)
      - **Example *Competitor***: You need to create a logic based on the field t*ech*, so select **Conditional**. List the technologies you want to detect **from rarest to most common**, because the output will be on******the first condition in the list that is true.** ![mceclip5.png](https://support.madkudu.com/hc/article_attachments/4433630623373)
      - **Example*********Integration***: You need to create a logic based on the field *tech*, so select **Conditional**. List the technologies you want to detect. The output is 1 if **any technology is detected**, else it is 0. ![Capture_d_e_cran_2022-02-16_a__16.13.22.png](https://support.madkudu.com/hc/article_attachments/4433622815117)
2. In the section **Options:**
  - Check '**Mark as favorite**' to see the computations starred in the Customer Fit models Insights ![mceclip7.png](https://support.madkudu.com/hc/article_attachments/4423699215245)
  - If you would like to use this data in HG Insights API, check the box to make the computation available in the API.
3. Click on **Create computation.**

Repeat the same process for all the computations you would like to create.

# **Step 2: Deploy the computation(s)**

Now you should be back on the computations list page.

You have just created a computation, which means you have added it to the library of computations.

If you would like to export it directly to your CRM or use it in a model, you'll need to deploy it.

Click on **Deploy** and the computation will now being computed on the platform.

![mceclip8.png](https://support.madkudu.com/hc/article_attachments/4423699347597)

Congratulations! You've created a computation ;)

You might now be interested in determining its [impact on conversion.](/v1/docs/how-to-visualize-the-impact-on-conversion-of-a-computation)

# **F.A.Q**

# **What are the different tags of a computation?**

A computation can have different tags depending on if it's used in your customer fit model or pushed as a HG Insights Intelligence to your integrations:

- "Live" tag: the computation [is used in your customer fit model](/v1/docs/what-is-used-in-my-customer-fit-model)
- "Sync" tag: the computation [is pushed to your integrations](/v1/docs/how-to-push-madkudu-intelligence-to-your-integrations)

# **I cannot see my newly deployed computations under the insights page of the Studio.**

You'll have to [reload your computations](/v1/docs/reloading-your-computations) to see your computation in a given model's insights page.

# **Why don't I see my field in the list to configure my computation?**

You would first need to make sure:

- your CRM field [is being pulled to the HG Insights platform](/v1/docs/how-to-pull-additional-fields-to-use-in-the-madkudu-platform).
- your CRM field is mapped in the [Attribute mapping](/v1/docs/attribute-mapping) page in the app to be able to use it in the Data Studio.
