How to create a Calculated Insight for Email Engagement in Data 360

1 min read

In this article I’m explaining how it is possible to create a Calculated insight in Data 360 allowing you to measure how engaged your customers are. The calculated Insight is using Data ingested from Marketing Cloud Engagement – In this tutorial we are assuming that we have already connected and ingested Marketing Cloud Engagement into Data 360. Here is the tutorial if needed.

Creating the Calculated Insight #

In Data 360, navigate to Calculated Insights and click New.

Select Calculated Insight and Use SQL Authoring, then click Next.

Give a name to the calculated insight: Email Engagement Score.

In the SQL Query, paste the following code:

SELECT
  ssot__EmailEngagement__dlm.ssot__IndividualId__c AS IndividualId__c,
  SUM(CASE WHEN ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c = 'Open' THEN 5 ELSE 0 END)
  + SUM(CASE WHEN ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c = 'Click' THEN 10 ELSE 0 END)
  + SUM(CASE WHEN ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c = 'Bounce' THEN -15 ELSE 0 END)
  + SUM(CASE WHEN ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c = 'Unsubscribe' THEN -25 ELSE 0 END)
  AS EngagementScore__c,
  COUNT(CASE WHEN ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c = 'Open' THEN 1 END) AS TotalOpens__c,
  COUNT(CASE WHEN ssot__EmailEngagement__dlm.ssot__EngagementChannelActionId__c = 'Click' THEN 1 END) AS TotalClicks__c
FROM
  ssot__EmailEngagement__dlm
GROUP BY
  ssot__EmailEngagement__dlm.ssot__IndividualId__c

This query looks at every email engagement record in Data Cloud and groups them by Unified Individual. For each individual, it assigns a weighted score — +5 per open, +10 per click, -15 per bounce, -25 per unsubscribe — and sums them into a single EngagementScore__c value. It also counts total opens and clicks as separate metrics. The result is one row per individual with their overall engagement score, which can then be used in segments, activations, or copied back to the CRM Contact record via a Copy Field Enrichment.

Select a schedule frequency for the calculated insight such as refresh every 24 hours – and click enable.

Creating a Report to visualise Calculated Insight #

Once your calculated insight is created and Active, you will be able to click Create Report. This handy feature will allow you to visualise directly the value of the Calculated Insights and get an understanding of the scoring for each Unified Individuals.

Add the scoring to a LWC on a Contact/Lead page #

You will also have the possibility to add the Scoring information on a Contact/Lead Record in Salesforce CRM. All you need to do is to edit the page, select the Data Cloud Profile Insight widget and select the Calculated Insight we just created.

Updated on March 23, 2026

What are your feelings

  • Happy
  • Normal
  • Sad

LATEST NEWS

Understanding Data Graphs in Agentforce Marketing

Arthur Backouche insights about Data Graphs within Agentforce Marketing , and how they enable organizations to deliver Real-Time Personalization.

The Agentforce Marketing Ultimate Guide.

This guide provides a structured implementation methodology designed to reduce deployment time from weeks to under 24 hours.

OFFERING (COMING SOON)

We are helping organisations and professionals get more value from Salesforce and modern marketing technologies. Driven by clarity, impact, and practical execution.

Please share a few details below and I’ll get back to you shortly.

Arthur Backouche helps organisations and professionals get more value from Salesforce and modern marketing technologies. Driven by clarity, impact, and practical execution.

Please share a few details below and I’ll get back to you shortly.