--- title: "Baseline Scorecard Measure using Rules" slug: "baseline-scorecard-measure-using-rules" updated: 2026-11-23T12:31:41Z published: 2026-11-23T12:31:41Z canonical: "support.gainsight.com/baseline-scorecard-measure-using-rules" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Baseline Scorecard Measure using Rules Gainsight NXT ​This tutorial explains how you can create a Baseline Rule that resets the score periodically to avoid displaying N/A measure scores or scores based on old data in Scorecards. For example, if there is a scorecard where the logic assesses whether X number of cases are currently open, and then those cases are closed, then there is no mechanism to reset the score unless you are overwriting it to Green (or whatever baseline is being used) each day. If you do not have a baseline rule, then you will be reporting on old scorecard data, as it will persist even when the cases are closed. There are two ways of achieving this: 1. Reset or baseline the scores. 2. Set the score to the correct values based on the business logic. In this article, the traditional method of baselining the scorecard measures is not implemented; instead, we are efficiently using Rules and configuring the actions so that the scores are set automatically to the measures. This approach can be followed to baseline the scorecard measures going forward. - You can create a single Rule that contains a dataset of all the accounts - the ones where the score needs to be baselined and the ones where the score needs to be changed - and create multiple actions to achieve the desired output. - In Rules, using Accounts and Cases object, create a Merge task between Accounts (A) and Cases(B) and select the left outer join to retain the list of all accounts and the list of accounts and the number of cases the output dataset. In this Rule, after a merged dataset is obtained three types of actions are configured: - If the **Case Number is less than 5** and if the **Case Number** is **Null,** set the measure value to Green. - If the **Case Number is greater than 5** and less than or equal to 7**,** set the measure value to Yellow. - If the **Case Number is greater than 7,** then set the measured value to Red. To create a baseline measure using Rules: 1. Navigate to **Administration > Rules Engine**. 2. Click **+RULE**. 3. Create a Rule on Account. 4. In the **Setup Rule** tab, create a dataset task with **Account** as the source object. Add the following Show fields: 1. ID 2. Account Name![Create Baseline.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Create_Baseline.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A06%3A18Z&se=2026-11-24T19%3A06%3A18Z&sr=b&sp=r&sig=vy7X0fxhH7HY8M03F1cDpp4G5epM1jXfqolQdUz%2F3yM%3D) 5. Create another dataset task with **Cases** object as the source. Add the following Show fields 1. Account ID (*Set Score, Set Score* and *Load to Scorecard History* actions are visible only if account/relationship identifier is added to show fields section). 2. Case Type 3. Case Number ![Case.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Case.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A06%3A18Z&se=2026-11-24T19%3A06%3A18Z&sr=b&sp=r&sig=dBw865oEBIQjTSE6G5aIbI2Y3fJcmgaS1QtZ1wLTK4k%3D) 6. Create a merge task using the outputs of **Accounts** and **Cases**. 1. Select merge Accounts with Cases 2. Select Retain all records from left dataset 3. Select Account Name and Case Number 4. In the **Show** fields, select all the fields available from Accounts and Cases tasks. 7. Navigate to the **Setup Action** tab and create actions based on the output of the Merge task. 8. Create the first action with the following configuration: ![Setup Action 1.png](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Setup_Action_1.png?sv=2026-02-06&spr=https&st=2026-11-24T18%3A06%3A18Z&se=2026-11-24T19%3A06%3A18Z&sr=b&sp=r&sig=G6nRXwzBFasEipYI4RHwGzwuGcJgbjlMB6hdcCys9CQ%3D) 1. **Action Type**: Set Score 2. **Account Identifier**: Id 3. **Select Measure**: Churn 4. **Select Scorecard**: Habits and Churn 5. **Set Score from**: Scoring Scheme. Set the **score manually** in the Green range (for example, in this tutorial 80 is selected in the Green area) 6. In the Criteria area, select **Case Number less than 5**. 7. In the Criteria area, select **Case Number** and select the value as **Null**. 8. Add the Advanced Logic as **A OR B**. 9. Create the second action with the following configuration: 1. **Action Type**: Set Score 2. **Account Identifier**: Id 3. **Select Measure**: Churn 4. **Select Scorecard**: Habits and Churn 5. **Set Score from**: Scoring Scheme. Set the **score manually** in the Yellow range (for example, in this tutorial 59 is selected in the Yellow area) 6. In the Criteria area, select **Case Number less than or equal to 7**. 7. In the Criteria area, select **Case Number greater than or equal to 5**. 8. Add the Advanced Logic as **A AND B**. 10. Create the third action with the following configuration: 1. **Action Type**: Set Score 2. **Account Identifier**: Id 3. **Select Measure**: Churn 4. **Select Scorecard**: Habits and Churn 5. **Set Score from**: Scoring Scheme. Set the **score manually** in the Red range (for example, in this tutorial 22 is selected in the Red area) 6. In the Criteria area, select **Case Number greater than 7**. 11. Click **Save** and proceed to the Schedule tab. The configured rule works as follows: - On 19 July, there are 10 support tickets open for a customer Acme. Rule runs and sets the measure score as Red (evaluating the above logic) - The day ends with the customer’s team closing all the tickets and the open ticket count is zero or there are no cases open to that customer. - Next Day, the rule runs and for account Acme, since there are no support tickets open, the rule sets the score to Green. This is done only for those customers who do not have support tickets open. **Note**: The setup described in this article does not involve any baseline to be done where the score is set to green for all customers. It directly evaluates the accounts and changes the corresponding accounts to the appropriate desired end state measure scores.