---
title: Calculated Widget
description: Build custom KPIs like cost per key event by combining metrics from different integrations, such as Google Ads and Google Analytics 4, in one formula.
---

[Skip to content](https://help.dashthis.com/kpi-calculations#main-content)

[More support](https://help.dashthis.com/kb-tickets/new?hsLang=en)

![dashthislogo](https://help.dashthis.com/hs-fs/hubfs/logo_dashthis_blue.png?width=150&height=44&name=logo_dashthis_blue.png)

Open main navigation

Close main navigation

- [More support](https://help.dashthis.com/kb-tickets/new)
- [Back to DashThis](https://dashthis.com/)

[Back to DashThis](https://dashthis.com/)

 How can we help you today?

- There are no suggestions because the search field is empty.

1. [Help Center](https://help.dashthis.com/?hsLang=en)
2. [Dashboards](https://help.dashthis.com/dashboards?hsLang=en)
3. [Dashboard Options](https://help.dashthis.com/dashboards?hsLang=en#dashboard-options)

# Calculated Widget

## Create custom calculations that combine metrics from the same data source or from different ones, like Google Ads cost and GA4 key events.

This feature is currently in **beta** and includes limitations (see below).

### Can I combine metrics from different data sources?

Yes. A Calculated Widget can use metrics from different integrations in the same formula. This is the way to go when you want one KPI that ties ad spend to results tracked somewhere else.

**Examples:**

- **Cost per key event:** Google Ads Cost / GA4 Key events
- **Cost per event:** Google Ads Cost / GA4 Event count
- **Total ad spend:** Google Ads Cost + Meta Ads Amount spent

*Also known as: custom calculation, custom metric, calculated metric, blended KPI, cross-source formula.*

 

### **How to create a Calculated Widget**

Follow the visual guide below for step-by-step instructions. If needed, you’ll also find the written steps at the end of this guide.

<iframe src="https://scribehow.com/embed/How_to_create_a_Calculated_Widget__fmfJAmQhQ7KNwd6YpxvIbw?removeLogo=true&amp;theme=light" width="800" height="679" allow="fullscreen" style="position: absolute; top: 0px; left: 0px; width: 100%; height: 100%; border-width: medium; border-style: none; border-color: currentcolor; border-image: none;"></iframe>

Follow these steps to build a Calculated Widget:

1. At the top of your dashboard, click Calculated Widget
2. Select the **widget style** you want
3. Click **Add Metric**
4. Choose:   
   \- The **integration**  
   - The **source**  
   - The **metric**
5. Click **save metric**
6. Add a **calculation operator**:  
   - `+` (addition)  
   - `-` (substraction)  
   - `*` (mutiplication)  
   - `/` (division)  
   - `()` (grouping)  
   👉 You can either **click the operators** or **type them manually** directly in the formula box.
7. Click **Add metric** again to continue building your formula:  
   \- Select the **integration**  
   \- Choose the **source**  
   \- Select the **metric**
8. Repeat as needed to complete your calculation
9. **Configure the Formatting options**
   
   ##### **Format**
   
   ##### The format is automatically selected based on your formula, but can also be adjusted manually: \- Auto \- Integer \- Decimal \- Percent \- Money \- Time
   
   ##### **Fluctuation type**
   
   ##### Choose how performance trends should be interpreted: \- Auto \- More is good \- Less is good
   
   ##### ![](https://help.dashthis.com/hs-fs/hubfs/image-png-Mar-19-2026-02-44-21-9100-PM.png?width=458&height=468&name=image-png-Mar-19-2026-02-44-21-9100-PM.png)
10. Once finished, click **Create widget**

Your widget will now display the calculated KPI 🎉

 

---

#### **Using multiple KPI Calculations**

In **Trend** and **Multi-Column List widgets**, you can add **more than one KPI Calculation**.

- Each KPI will appear in its own **column**
- Each column can have its **own formula**
  
  ![](https://help.dashthis.com/hs-fs/hubfs/image-png-Mar-19-2026-02-42-16-2434-PM.png?width=460&height=705&name=image-png-Mar-19-2026-02-42-16-2434-PM.png)

This allows you to compare multiple calculated KPIs within the same widget.

---

#### **How additions work with calculated metrics**

When using the **+** operator with calculated metrics, DashThis applies a merged calculation approach (weighted average) rather than a simple numeric addition.

This means that metrics such as CPC, CPA, CTR, or other ratio-based metrics are recalculated using the combined underlying data instead of adding the displayed values together.

For example:

- CPC A = $0.50
- CPC B = $0.50

Using **CPC A + CPC B** will result in **$0.50**, not **$1.00**, because DashThis recalculates the metric based on the merged totals behind the scenes.

This behavior reflects the most commonly expected outcome when combining performance metrics across sources or campaigns.

#### **Need a simple addition instead?**

If you want the result to be a direct mathematical sum (for example, $0.50 + $0.50 = $1.00), you can achieve this by breaking down your formula and using parentheses appropriately in your calculation.

---

#### **Limitations (Beta)**

Because this feature is still in development, the following limitations apply:

- **❌You can't merge a Calculated Widget with another widget using the Merge option. This does not stop you from combining metrics from different integrations inside your formula.**
- **⚠️ "Save as Template" limitations**  
  **- Calculated Widget** will be copied into the template  
  **-** However, **all integrations used in the formula must be added** when using the template  
  **-** Otherwise, the widget will not be created

---

#### **Why use Calculated Widgets?**

Use calculated widgets to create custom KPIs from your existing data — whether it comes from the same integration or multiple integrations combined.

Examples:

- **Gross Profit** = Conversion Value - Cost
- **Lead Cost** = Ad Spend / Leads
- Calculates the **cost per purchase** from an integration.
- **Combined Conversions** from multiple ad platforms

They’re useful when the metric you need isn’t directly available in your data source.

---

#### **What's next ?**

We’re actively working on improving Calculated Widget.

Stay tuned for updates as we continue to enhance this feature 🚀

Your feedback is highly valuable to us. If you have any suggestions, we encourage you to [share them](https://help.dashthis.com/kb-tickets/new?hsLang=en) with us. We would be happy to review your input and consider how it could be implemented in DashThis.

- [Getting Started](https://help.dashthis.com/getting-started?hsLang=en#main-content)

    - [Intro to DashThis](https://help.dashthis.com/getting-started?hsLang=en#intro-to-dashthis)
    - [First Steps](https://help.dashthis.com/getting-started?hsLang=en#first-steps)
- [Integrations](https://help.dashthis.com/integrations?hsLang=en#main-content)

    - [Ahrefs](https://help.dashthis.com/integrations?hsLang=en#ahrefs)
    - [Bing Ads](https://help.dashthis.com/integrations?hsLang=en#bing-ads)
    - [CallRail](https://help.dashthis.com/integrations?hsLang=en#callrail)
    - [Campaign Monitor](https://help.dashthis.com/integrations?hsLang=en#campaign-monitor)
    - [ChatGPT Ads](https://help.dashthis.com/integrations?hsLang=en#chatgpt-ads)
    - [CSV](https://help.dashthis.com/integrations?hsLang=en#csv)
    - [Facebook Insights](https://help.dashthis.com/integrations?hsLang=en#facebook-insights)
    - [Google Ads](https://help.dashthis.com/integrations?hsLang=en#google-ads)
    - [Google Analytics 4](https://help.dashthis.com/integrations?hsLang=en#google-analytics-4)
    - [Google Business Profile (formerly Google My Business)](https://help.dashthis.com/integrations?hsLang=en#google-business-profile-formerly-google-my-business)
    - [Google Search Console](https://help.dashthis.com/integrations?hsLang=en#google-search-console)
    - [Google Sheets](https://help.dashthis.com/integrations?hsLang=en#google-sheets)
    - [HubSpot](https://help.dashthis.com/integrations?hsLang=en#hubspot)
    - [Instagram Insights](https://help.dashthis.com/integrations?hsLang=en#instagram-insights)
    - [Keyword.com](https://help.dashthis.com/integrations?hsLang=en#keyword-com)
    - [Klaviyo](https://help.dashthis.com/integrations?hsLang=en#klaviyo)
    - [LinkedIn Ads](https://help.dashthis.com/integrations?hsLang=en#linkedin-ads)
    - [LinkedIn Pages](https://help.dashthis.com/integrations?hsLang=en#linkedin-pages)
    - [Mailchimp](https://help.dashthis.com/integrations?hsLang=en#mailchimp)
    - [Meta Ads](https://help.dashthis.com/integrations?hsLang=en#meta-ads)
    - [Moz](https://help.dashthis.com/integrations?hsLang=en#moz)
    - [Pinterest Ads](https://help.dashthis.com/integrations?hsLang=en#pinterest-ads)
    - [Pinterest Analytics](https://help.dashthis.com/integrations?hsLang=en#pinterest-analytics)
    - [Reddit Ads](https://help.dashthis.com/integrations?hsLang=en#reddit-ads)
    - [SEMrush](https://help.dashthis.com/integrations?hsLang=en#semrush)
    - [Shopify](https://help.dashthis.com/integrations?hsLang=en#shopify)
    - [Snapchat Ads](https://help.dashthis.com/integrations?hsLang=en#snapchat-ads)
    - [TikTok Ads](https://help.dashthis.com/integrations?hsLang=en#tiktok-ads)
    - [TikTok Organic](https://help.dashthis.com/integrations?hsLang=en#tiktok-organic)
    - [Webceo](https://help.dashthis.com/integrations?hsLang=en#webceo)
    - [Youtube](https://help.dashthis.com/integrations?hsLang=en#youtube)
    - [Spotify Ads](https://help.dashthis.com/integrations?hsLang=en#spotify-ads)
- [Dashboards](https://help.dashthis.com/dashboards?hsLang=en#main-content)

    - [Customization](https://help.dashthis.com/dashboards?hsLang=en#customization)
    - [Dashboard Creation](https://help.dashthis.com/dashboards?hsLang=en#dashboard-creation)
    - [Dashboard Options](https://help.dashthis.com/dashboards?hsLang=en#dashboard-options)
    - [Errors](https://help.dashthis.com/dashboards?hsLang=en#errors)
    - [Periods](https://help.dashthis.com/dashboards?hsLang=en#periods)
    - [Sharing](https://help.dashthis.com/dashboards?hsLang=en#sharing)
    - [Sources](https://help.dashthis.com/dashboards?hsLang=en#sources)
- [Widgets](https://help.dashthis.com/widgets?hsLang=en#main-content)

    - [Widget Types](https://help.dashthis.com/widgets?hsLang=en#widget-types)
    - [Widget Options](https://help.dashthis.com/widgets?hsLang=en#widget-options)
    - [Static Widgets](https://help.dashthis.com/widgets?hsLang=en#static-widgets)
    - [Widget Bundle](https://help.dashthis.com/widgets?hsLang=en#widget-bundle)
- [Account](https://help.dashthis.com/account?hsLang=en#main-content)

    - [Billing](https://help.dashthis.com/account?hsLang=en#billing)
    - [Profile](https://help.dashthis.com/account?hsLang=en#profile)
    - [Users Management](https://help.dashthis.com/account?hsLang=en#users-management)
    - [Security](https://help.dashthis.com/account?hsLang=en#security)
    - [More to DashThis](https://help.dashthis.com/account?hsLang=en#more-to-dashthis)
- [MCP](https://help.dashthis.com/mcp?hsLang=en)
- [Got a question?](https://help.dashthis.com/got-a-question?hsLang=en)

[![Chill listening crop-3](https://help.dashthis.com/hubfs/logo-1.svg "Chill listening crop-3")](https://help.dashthis.com?hsLang=en)

DashThis is owned by Moment Zero inc.

Copyright © 2026, Dashthis