---
title: Build Engagement Scoring Model
slug: engage/build-engagement-scoring-model
createdAt: 2025-11-26T00:32:46.577Z
---

## 1. Define your model

After compiling the data, you need to choose the factors that make your customers more qualified.

Following the physical retailer model example, the following criteria and scores for customers can be applied:

| **Criteria**                | **Score** |
| --------------------------- | --------- |
| Criteria                    | +1        |
| Click Inside Email          | +1        |
| Email Bounced               | -1        |
| Recency of Last Order       | +1 to +5  |
| Average Amount of Orders    | +1 to +5  |
| Distance from Home or Store | +1 to +5  |

Notice how many factors have wide variations. Focusing on one, recency of last order, there is a scale from 1-5 correlating to how long ago a customer made their most recent purchase. Customers with orders in, for example, the previous month are given a high score of 5, while customers at the opposite end of the spectrum, —one purchase 11 months ago— are given a 1. Customers whose last order was over a year ago may be removed from this scoring system entirely to reflect how cold of a lead they are.

Ranged scoring provides greater nuance, as opposed to fixed scoring. For criteria involving frequency, having a given value often provides similar insight into customer intent. In this example, clicking an email adds one point to a customer’s score, so multiple clicks across multiple emails enhances their overall rank.

With your score criteria defined, it is time to implement the engagement scoring model using DESelect. The image below indicates the different selections created for the example, and the scores that will be calculated individually.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Lead-Gen-Blog-Graphic3-min-768x899.jpg.webp" size="50" width="768" height="899" darkWidth="768" darkHeight="899" position="center" showCaption="false"}

## 2. Create a selection

The first thing you need to do is create a selection that will calculate the points each customer collects for each criterion and store it in a Data Extension.

1. Open DESelect inside your Marketing Cloud instance
2. Click **New Selection** to create a new selection.
3. Provide the name *Customer Engagement Scores&#x20;*(or similar) for your selection.
4. Choose your Selected Data Extension&#x73;**,&#x20;**&#x69;n this case Data Extensions *Customers&#x20;*&#x61;nd *Orders*.
5. Create a relationship between them on *Id&#x20;*&#x61;nd *CustomerId&#x20;*&#x66;ield&#x73;**,&#x20;**&#x61;nd keep all records from *Customers&#x20;*&#x44;ata Extension.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/unnamed-min-768x197.png.webp" size="72" width="768" height="197" darkWidth="768" darkHeight="197" position="center" showCaption="false"}

6. Move on to the *Target Definition&#x20;*&#x73;creen and click on **Create Data Extension.**
7. Provide the name *Customer Engagement Scores&#x20;*&#x61;nd click **Save.**
8. Add the **Id** field of the *Customers&#x20;*&#x44;ata Extension to Target Data Extension field&#x73;**.**

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-1-min-copy-1024x344.jpg.webp" size="66" width="1024" height="344" darkWidth="1024" darkHeight="344" position="center" showCaption="false"}

## 3. Calculate individual scores

### Calculate Opens – Clicks – Bounces Score

Next, you need to calculate the points for **opens**, **clicks**, and **bounces**. At this point, positive and negative scores is not relevant, therefore you will calculate these three fields in exactly the same way.

This will also help evaluate overall [email deliverability](https://deselect.com/email-delivery-best-practices-gmail-purge/) and engagement by counting how many times a customer has opened an email, clicked inside an email, or bounced out of an email. This information can be found inside [Data Views](https://help.salesforce.com/s/articleView?id=sf.mc_as_data_views.htm\&type=5), which are tables generated by SFMC. Through Data Views yo&#x75;**’**&#x6C;l find [data such as subscribers and Marketing Cloud](https://deselect.com/blog/salesforce-data-cloud/) event tracking (e.g., emai&#x6C;**/**&#x73;ms sends, email opens, link clicks).

1. Click on **Add new value&#x20;**&#x69;nside the *Custom Values&#x20;*&#x73;ection.
2. Set name to *Opens Scor&#x65;**,&#x20;***&#x63;hoose **Aggregation&#x20;**&#x61;s type and click on **Next**.
3. Choose **Count&#x20;**&#x61;s the aggregation function.
4. Choose *SubscriberKey&#x20;*&#x6F;f *\_Open&#x20;*&#x44;ata View as the field.
5. Match *Customers’ Email&#x20;*&#x66;ield with *\_Open&#x20;*’s *SubscriberKey&#x20;*&#x66;ield. The *Custom Value&#x20;*&#x6C;ooks like this:

![](https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-2-min-1-768x578.jpg.webp)

6. Clic&#x6B;**&#x20;Save**.
7. Repeat steps 1 – 6 for *\_Click&#x20;*&#x61;nd *\_Bounce&#x20;*&#x61;nd name them *Clicks Score&#x20;*&#x61;nd *Bounces Score&#x20;*&#x72;espectively.
8. Add all the created values to the Target DE’s fields.

![](https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-3-min-768x399.jpg.webp)

### Calculate orders score

Next, you will assign points to customers based on when they placed an order. Based on the data, you could define the following rules:

- **1** point, for orders in the past year.
- **2** points, for orders in the past **9** months.
- **3** points, for orders in the past **6** months.
- **4** points for orders in the past **3** months.
- **5** points, for orders in the past month.

### Assign scores

To assign the different scores to your customers:

1. Click on Add new value inside the *Custom Values&#x20;*&#x73;ection.
2. Set name to *Orders Score,&#x20;*&#x63;hoose Dynamic Value as type and click on Next.
3. Select Number as field type and click on Add Criteria.
4. Add *Order Date&#x20;*&#x66;rom *Orders&#x20;*&#x44;E to the filters section.
5. Choose *Is After Or On* as filter type.
6. Select Relative date and set it to *9 months ago*.
7. Add *Order Date&#x20;*&#x66;rom *Orders&#x20;*&#x44;E second time to the filters section.
8. Choose *Is Before Or On&#x20;*&#x61;s filter type.
9. Select Relative date and set it to *1 year ago*.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-10-at-11.45.12%E2%80%AFAM-min-1024x318.png.webp" size="70" width="1024" height="318" darkWidth="1024" darkHeight="318" position="center" showCaption="false"}

10. Set the *Then&#x20;*&#x76;alue equal to 1. Yur custom value should look like this:

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-1-min-2-768x393.jpg.webp" size="66" width="768" height="393" darkWidth="768" darkHeight="393" position="center" showCaption="false"}

11. Repeat steps 3 – 6, but set the Relative date to match the criteria we defined above, and the then value to the equivalent amount of points.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-10-at-11.52.43%E2%80%AFAM-1024x1001.png.webp" size="60" width="1024" height="1001" darkWidth="1024" darkHeight="1001" position="center" showCaption="false"}

12. Make sure the *Default&#x20;*&#x76;alue is 0 and click on Save.
13. Add the created value to your Target DEs fields.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-10-at-11.53.18%E2%80%AFAM-1024x519.png.webp" size="78" width="1024" height="519" darkWidth="1024" darkHeight="519" position="center" showCaption="false"}

### Calculate distance score

Moving forward, you want to assign scores based on the distance from customers’ homes to your business' physical location. You can do that based on their postal codes. We know about the Postal Codes that values:

- Between postal codes **15019-15378&#x20;**&#x61;re **5&#x20;**&#x6B;m away from your store, and will get **5&#x20;**&#x70;oints.
- Between postal codes **15378-15737&#x20;**&#x61;re **10&#x20;**&#x6B;m away from your store, and will get **4&#x20;**&#x70;oints.
- Between postal codes **15737-16096&#x20;**&#x61;re **15&#x20;**&#x6B;m away fromy our store, and will get **3&#x20;**&#x70;oints.
- Between postal codes **16096-16455&#x20;**&#x61;re **20&#x20;**&#x6B;m away from your store, and will get **2&#x20;**&#x70;oints.
- Greater than postal code **16455&#x20;**&#x61;re more than **20&#x20;**&#x6B;m away from your store, and will get **1&#x20;**&#x70;oint.

### Assign different scores

To assign the different scores to your customers:

1. Click on **Add new value&#x20;**&#x69;nside the *Custom Values&#x20;*&#x73;ection.
2. Set the name to *Distance Score*, choose **Dynamic Value&#x20;**&#x61;s type and click on **Next**.
3. Select **Number&#x20;**&#x61;s field type and click on **Add Criteria**.
4. Add *Zip Code&#x20;*&#x66;rom *Orders&#x20;*&#x44;E to the filters section. Depending on your organization’s data model, this field may be labeled *Postal Code* and may be nestled under the *Customers* data extension.
5. Choose **Between&#x20;**&#x61;s the filter type.
6. Set the first input field to **15019&#x20;**&#x61;nd the second to **15378**.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-10-at-12.05.31%E2%80%AFPM-min-1024x316.png.webp" size="72" width="1024" height="316" darkWidth="1024" darkHeight="316" position="center" showCaption="false"}

7. Click on **Save&#x20;**&#x61;nd set the *Then&#x20;*&#x76;alue *equal to **5***. Your *Custom Value should&#x20;*&#x6C;ook like this.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-1-min-3-768x547.jpg.webp" size="54" width="768" height="547" darkWidth="768" darkHeight="547" position="center" showCaption="false"}

8. Repeat steps **3 – 7&#x20;**&#x66;or the rest of the postal codes mentioned above, each time decreasing the *Then&#x20;*&#x76;alue by **1**. In the last group choose *Greater Than&#x20;*&#x61;s filter type.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-10-at-12.09.07%E2%80%AFPM-min-1024x986.png.webp" size="48" width="1024" height="986" darkWidth="1024" darkHeight="986" position="center" showCaption="false"}

9. Make sure the *Default&#x20;*&#x76;alue is **0&#x20;**&#x61;nd click on **Save**.
10. Add the created value to your Target D&#x45;**’**&#x73; fields.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-2-min-2-1024x522.jpg.webp" size="60" width="1024" height="522" darkWidth="1024" darkHeight="522" position="center" showCaption="false"}

### Total amount average

Lastly, you want to assign a different score based on the average of the total dollar amount a customer has spent on purchases in this time period (in this example, one year). For example, you can identify the following groups.

- Average between **0 – 25&#x20;**&#x67;ets **1&#x20;**&#x70;oint.
- Average between **25 – 50&#x20;**&#x67;ets **2&#x20;**&#x70;oints.
- Average between **50 – 75&#x20;**&#x67;ets **3&#x20;**&#x70;oints.
- Average between **75 – 100&#x20;**&#x67;ets **4&#x20;**&#x70;oints.
- Average above **100&#x20;**&#x67;ets **5** points.

### Calculate total amount average

To get the customers of each group, you need to first calculate the average of the total amount for each customer.

1. Click on **Add new value&#x20;**&#x75;nder the custom values section.
2. Set the name to *Total Amount Averag&#x65;**,&#x20;***&#x63;hoose **Aggregation&#x20;**&#x61;s type and click on **Next**.
3. Select **Average value for field&#x20;**&#x61;s the aggregation function.
4. Choose *Total Amount&#x20;*&#x66;rom the *Orders&#x20;*&#x44;ata Extension as the field.
5. Match *Orders’ CustomerId&#x20;*&#x66;ield with *Customers’ Id&#x20;*&#x66;ield.Your ***Custom Value*** should look like this.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-3-min-1-768x491.jpg.webp" size="56" width="768" height="491" darkWidth="768" darkHeight="491" position="center" showCaption="false"}

6. Click on **Save**.
7. Add the created value to your Target D&#x45;**’**&#x73; fields.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-4-min-768x410.jpg.webp" size="72" width="768" height="410" darkWidth="768" darkHeight="410" position="center" showCaption="false"}

8. Click on the **Save Data Extension&#x20;**&#x62;utton.
9. Save your work on the Selection itself. Exit to the DESelect Segment homepage.
10. Click on the **Create&#x20;**&#x62;utton.

## 4. Total amount score

### Create new selection

In order to create the *Total Amount Score&#x20;*&#x62;ased on the *Total Amount Average&#x20;*&#x77;e need to create a new selection.

1. Click on **Run** to populate your *Customer Engagement Scores&#x20;*&#x44;ata Extension with results.
2. Click on the **New Selection** button.
3. Name it *Final Customer Engagement Scores.*
4. Add *Customer Engagement Scores&#x20;*&#x44;ata Extension to your Selected Data Extensions.
5. Move on to the *Target Definition&#x20;*&#x73;creen and click on Create Data Extension.
6. Provide the name *Final Customer Engagement Scores&#x20;*&#x61;nd click **Save**.
7. Click on the **Add All Fields** button.
8. Remove the *Total Amount Average&#x20;*&#x66;ield.

### Create total amount score

Now we can calculate the *Total Amount Score&#x20;*&#x62;y implementing the following steps.

1. Click on **Add new value&#x20;**&#x69;nside the *Custom Values&#x20;*&#x73;ection.
2. Set the name to *Total Amount Score,&#x20;*&#x63;hoose **Dynamic Value&#x20;**&#x61;s type, and click on **Next**.
3. Select **Number&#x20;**&#x61;s field type and click on **Add Criteria**.
4. Add *Total Amount Average&#x20;*&#x66;rom *Customer Engagement Scores&#x20;*&#x44;ata Extension to the filters section.
5. Choose **Between&#x20;**&#x61;s the filter type.
6. Set the first input field to **0&#x20;**&#x61;nd the second to **25**.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-10-at-5.07.26%E2%80%AFPM-min-1024x285.png.webp" size="66" width="1024" height="285" darkWidth="1024" darkHeight="285" position="center" showCaption="false"}

7. Click on **Save** and set the *Then&#x20;*&#x76;alue equal t&#x6F;*&#x20;1*. Your *Custom Value should&#x20;*&#x6C;ook like this.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-1-min-4-768x547.jpg.webp" size="54" width="768" height="547" darkWidth="768" darkHeight="547" position="center" showCaption="false"}

8. Repeat the steps **3 – 7&#x20;**&#x66;or the rest of the averages mentioned above, each time increasing the *Then&#x20;*&#x76;alue by **1**. In the last group choose *Greater Than&#x20;*&#x61;s filter type.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-3-min-2-768x390.jpg.webp" size="52" width="768" height="390" darkWidth="768" darkHeight="390" position="center" showCaption="false"}

9. Make sure the *Default&#x20;*&#x76;alue is **0&#x20;**&#x61;nd click on **Save**.
10. Add the created value to your Target D&#x45;**’**&#x73; fields.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Image-from-iOS-3-min-2-768x390.jpg.webp" size="56" width="768" height="390" darkWidth="768" darkHeight="390" position="center" showCaption="false"}

11. At the top click to **Save Data Extension**, then confirm with **Create**.
12. Click **Run&#x20;**&#x74;o create the data extension. You can also **Preview** beforehand in the Preview section.

## 5. Calculate total engagement score

### Calculate each customer’s total engagement score

After calculating each criteria score separatel&#x79;**,&#x20;**&#x69;t is time to sum them up and end up with a single audience engagement score per customer.

1. Create a new selection and name it *Customers With Score*.
2. Add the *Final Customer Engagement Scores&#x20;*&#x44;ata Extension.
3. On the target definition screen create a *Customers with Score&#x20;*&#x44;ata Extension.
4. Add the *Id&#x20;*&#x66;ield to your Target Data Extension.
5. Click on the **Add new value** button.
6. Set the name *Total Engagement Score,&#x20;*&#x63;hoose Apply formula to a field and click **Next**.
7. Clic&#x6B;**&#x20;Apply any function** and **Next**.
8. Choose Number as the field type.
9. Select the *Opens Score&#x20;*&#x66;ield of *Final Customer Engagement Scores&#x20;*&#x44;E in the dropdown and click **Insert Field**.
10. Add a plus operator (+).
11. Do the same for *Clicks Score&#x20;*, *Bounces Score, OrdersScore, Distance Score&#x20;*&#x61;nd *Total Amount Score*. Though because Bounces has a negative score, we change the plus (+) icon in front of this field to a minus (-). The formula should look like this.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-11-at-9.32.48%E2%80%AFAM-min-768x356.png.webp" size="64" width="768" height="356" darkWidth="768" darkHeight="356" position="center" showCaption="false"}

12. Double-check the accuracy of your SQL syntax with **Check syntax**.
13. Add the *Total Engagement Score* field to the Target Data Extension.

::Image[]{src="https://deselect.com/wp-content/uploads/2024/01/Screenshot-2024-01-11-at-9.32.48%E2%80%AFAM-min-768x356.png.webp" size="54" width="768" height="356" darkWidth="768" darkHeight="356" position="center" showCaption="false"}

14. Click on **Save Data Extension**.
15. Click **Create**.
16. Click **Run&#x20;**&#x74;o finish.

