> ## Documentation Index
> Fetch the complete documentation index at: https://docs.repdata.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scoring Variables

> This article outlines how to store numeric values assigned to respondents throughout a survey using scoring variables.

### **Define a Scoring Variable**

First, you'll need to define the variable you want to use to capture points. Scoring variables can be defined on any question or text block inside your project that sits before the scoring questions begin. Click on the tab labeled "Scoring variables" in the item where you want to define the variable.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-group-205-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=b35575930838be4bdfe9fa405a9d5ae0" alt="Scoring Variables" width="688" height="331" data-path="public/sightx/knowledge-base/scoring-variables-group-205-png.png" />

Next, click "Add new variable". Here you'll name the variable and set its initial value.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-4-57-39-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=94c25e6cd28f3f9e030edb335b94d191" alt="Scoring Variables" width="688" height="335" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-4-57-39-pm-png.png" />

The initial value can be set as:

1. **Variable value:** If you already have any scoring variables defined, you can set the initial value of a new variable to another variable.
2. **Question value:** The answer that the respondent gave to a previous numeric (or scale) question in the survey.\\
   <img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-00-42-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=2005151ff4ce26b77ab366b53fa15d3c" alt="Scoring Variables" width="688" height="120" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-00-42-pm-png.png" />
3. **Number:** A numeric value. Typically, scoring variables are initially set to 0.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-08-39-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=554626d4737494bcd5db3e3fbab67985" alt="Scoring Variables" width="688" height="120" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-08-39-pm-png.png" />

4\. \*\**f(x)* : \*\* A mathematical function applied to a question value or number. The function options are remove, round down, round, or round up.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-16-20-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=86dbb017d49f1d22b19e965e39e8eb20" alt="Scoring Variables" width="688" height="217" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-16-20-pm-png.png" />

### Update a Scoring Variable

At points in the survey, you'll want to update the variable based on a respondent's answers. On the question where you want to update the variable, click on the Scoring Variables tab and select "Change variable value".

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-group-206-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=4f7265cb77d0398853b06eb2cdf28174" alt="Scoring Variables" width="688" height="180" data-path="public/sightx/knowledge-base/scoring-variables-group-206-png.png" />

First, select the variable you want to update by selecting it in the dropdown.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-31-10-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=939a4e02538a95c265ccc2c8ca15a269" alt="Scoring Variables" width="688" height="194" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-31-10-pm-png.png" />

Next, choose whether the change should only occur under certain conditions ("**Given** "), or whether it should always occur ("**Always** "). Then set the conditions under which the variable should be updated.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-32-36-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=ab0b198e8b54264866493f371bc209f9" alt="Scoring Variables" width="688" height="193" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-32-36-pm-png.png" />

Next, set the changes you want to make using question values, numbers, and formulas.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-40-30-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=da483605a91053ad0425d464034a388c" alt="Scoring Variables" width="688" height="319" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-40-30-pm-png.png" />

In this example, we'll add one point to the variable if the conditions are met. So we'll choose the "+" operator to create a formula with addition.

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-group-207-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=f6348301f56152a01bab137ff47b1d48" alt="Scoring Variables" width="246" height="171" data-path="public/sightx/knowledge-base/scoring-variables-group-207-png.png" />

Next we'll click "Select one" to add a value to the equation. Here we'll choose "Variable value" and select our variable "Market fit".

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-45-30-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=2abaaf1de89c20a085c801f96c522944" alt="Scoring Variables" width="688" height="323" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-45-30-pm-png.png" />

For the other value in the equation, we'll select "Number" and then enter "1"; this will increase the Market fit variable by 1 when the conditions are met.

#### \*\*

<img src="https://mintcdn.com/repdata/nXQkKIQAuSowcqhE/public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-51-07-pm-png.png?fit=max&auto=format&n=nXQkKIQAuSowcqhE&q=85&s=90a3f1e7525f241aa84d33aa3842a9aa" alt="Scoring Variables" width="688" height="315" data-path="public/sightx/knowledge-base/scoring-variables-screenshot-2024-07-11-at-5-51-07-pm-png.png" />\*\*

####

In this manner, you can continue to update the scoring variable as respondents proceed in the survey, using the existing variable value and numeric question input values.

**Important note:** Scoring variables alone can only be retrieved in the raw data export.

To view graphs with scoring variable results, to use scoring variables in filters or personas, or to include scoring variables in a crosstab, add an \*\*[embedded variable](/sightx/knowledge-base/project-setup/embedded-variables) \*\*to categorize the scoring variable data.
