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

# Discount Count: Orders with Discounts Applied

> Track how many orders had discounts applied. Monitor promotion usage frequency and compare to total orders to gauge discount dependency.

<Tip>
  Discount Count measures the number of orders that had at least one discount code or promotion applied.
</Tip>

## Formula

<Info>
  **Discount Count** = **COUNT** ( Orders ) **WHERE** discount\_applied = true
</Info>

### Formula Components

| Metric                                                                                      | Definition                                                             |
| ------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| [**Orders**](/reference/metrics/orders/counts/orders)                                       | Total number of orders placed                                          |
| [**discount\_applied = true**](/data-dictionary/measures-and-dimensions#visitor-dimensions) | Filters to orders with at least one discount code or promotion applied |

| Metadata        |                             |
| --------------- | --------------------------- |
| **Type**        | Number                      |
| **Data Source** | [Shopify](/sources/shopify) |
| **Aggregation** | Count                       |

***

## Example

Your store processed **1,247 orders** in January. **843 orders** had discount codes applied.

| Period   | Total Orders | Discounted Orders | Discount Usage |
| -------- | ------------ | ----------------- | -------------- |
| January  | 1,247        | 843               | 67.6%          |
| February | 1,089        | 412               | 37.8%          |
| March    | 1,356        | 678               | 50.0%          |

***

## How It Works

Discount Count increments by one for each order where Shopify reports a discount was applied at checkout. An order with multiple discount codes still counts as one discounted order.

***

## When to Use

| Scenario                            | Action                                                     |
| ----------------------------------- | ---------------------------------------------------------- |
| Evaluating promotion effectiveness  | Compare discounted orders to total orders during campaigns |
| Measuring discount dependency       | Track if customers only buy when discounts are available   |
| Analyzing new vs returning behavior | See if one segment uses discounts more frequently          |
| Planning inventory for sales events | Estimate volume based on historical discount usage         |

***

## Related Metrics

| Metric                                                                         | Relationship                             |
| ------------------------------------------------------------------------------ | ---------------------------------------- |
| [Discount Amount](/reference/metrics/orders/adjustments/discount-amount)       | Total dollar value of discounts applied  |
| [Discount %](/reference/metrics/orders/adjustments/discount-percent)           | Discounts as share of gross revenue      |
| [Discount Per Order](/reference/metrics/orders/adjustments/discount-per-order) | Average discount per order               |
| [Orders](/reference/metrics/orders/counts/orders)                              | All orders regardless of discount status |

[See all Adjustments metrics →](/reference/metrics/orders/adjustments)
