---
schema_version: "1"
id: 5033af15a8c3275e4a0c72de39556e7f65a0d8e583a273d71dc03bb1c25b5222
title: "Example: Create a Decision Matrix to Get Age-Based Discount"
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/create_dm_for_age_based_discount.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.create_dm_for_age_based_discount.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: eecf109a747258eacb9343953362a4fcf3896c8647dd24222032d4f529734e50
description: Create a decision matrix and configure its version with an input column for age, and an output column with corresponding discount percent based on the age range.
products:
  - Industry Solutions
  - Cross Cloud
release: "264"
---
# Example: Create a Decision Matrix to Get Age-Based Discount

Create a decision matrix and configure its version with an input column for age, and an output column with corresponding discount percent based on the age range.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d3588e38">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d3588e38 ">To create decision matrices and activate matrix versions:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d3588e38 ">Rule Engine Designer</td>

          </tr>
        </tbody>
      </table>

Create a decision matrix named AgeBasedDiscount. This matrix uses the contact’s age count as input, and returns the matching discount percent.

1. From app navigation menu of Business Rules Engine, select **Lookup Tables**.
2. Click **New**.
3. Select **Decision Matrix** | **Next**.
4. For name, enter AgeBasedDiscount, and for Type, select **Standard**.
5. Save your changes.
6. On the Related tab on the decision matrix record page, select **AgeBasedDiscount V1**.
7. On the Matrix tab, click **Add Column**, and create columns with these settings.
    
      
    | Column Header | Header Type | Data Type |
    | --- | --- | --- |
    | ContactAge | Input | Number Range |
    | Discount | Output | Percent |
8. Click **Done**.
9. To create a row, click **Add Row**.
10. To add row data, click a table cell, click ![Pencil icon, which on clicking allows adding cell data.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-ind-business_rules_engine-264-0-0-production-enus/b2d6dd5c-c231-428b-abbf-3dd2cd51a11f/business_rules_engine/images/pencil_edit_icon.png) in the cell, and then enter the value
    
    Add these rows and values.
    
     
    | Steps | Discount Percent |
    | --- | --- |
    | 17 | 0 |
    | 18 | 5 |
    | 31 | 10 |
    | 46 | 15 |
    | 60 | 25 |
    
    The steps column in this matrix version represents number ranges. The values in the column define these ranges: Below 18, 18–30, 31–45, 46–59, and 60 or above.
11. Save your changes.
12. Activate your decision matrix version.
    
    Expression sets can call only active matrix versions.