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

# Selling plans

> Product sales on selling plans (subscriptions, pre-orders, try before you buy), by the day of the sale: net sales, units and orders, by plan, group and type.

Product sales on selling plans (subscriptions, pre-orders, try before you buy), by the day of the sale: net sales, units and orders, by plan, group and type.

## Example

```sql theme={null}
FROM subscription_plans
  SHOW plan_net_sales, plan_units_sold
  GROUP BY product_title
  SINCE startOfMonth(-1m) UNTIL today
  ORDER BY plan_net_sales DESC
```

## Metrics

| Metric | Type | Description |
| - | - | - |
| `plan_net_sales` | Currency | Sales on the plan after discounts and returns, excluding taxes. |
| `plan_units_sold` | Number | Units sold on the plan, less those returned. |
| `plan_orders` | Number | Orders with an item on the plan. |

## Dimensions

| Dimension | Description |
| - | - |
| `selling_plan` | The plan the item was sold on. |
| `selling_plan_group` | The group the plan belongs to. |
| `selling_plan_category` | Subscription, Pre order or Try before you buy. |
| `product_title` | The product sold. |

## Filters

| Filter | Type | Description |
| - | - | - |
| `selling_plan` | Text | The plan the item was sold on. |
| `selling_plan_group` | Text | The group the plan belongs to. |
| `selling_plan_category` | Text | Subscription, Pre order or Try before you buy. |
| `product_title` | Text | The product sold. |

## Linked records

Fields of the records this dataset reaches can be shown, grouped by and filtered on, written with a dot after the record (for example `order.name`). Each record's page lists its fields.

| Write | Record | Reached through |
| - | - | - |
| `order.<field>` | [Order](https://docs.queryful.app/queryfulql/records/order.md) | Order |
| `order.customer.<field>` | [Customer](https://docs.queryful.app/queryfulql/records/customer.md) | Order › Customer |
| `order.customer.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Customer › Company |
| `order.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company |
| `order.company_location.<field>` | [Company location](https://docs.queryful.app/queryfulql/records/company_location.md) | Order › Company location |
| `order.company_location.company.<field>` | [Company](https://docs.queryful.app/queryfulql/records/company.md) | Order › Company location › Company |
| `order.location.<field>` | [Location](https://docs.queryful.app/queryfulql/records/location.md) | Order › Location |
| `order.market.<field>` | [Market](https://docs.queryful.app/queryfulql/records/market.md) | Order › Market |
| `product.<field>` | [Product](https://docs.queryful.app/queryfulql/records/product.md) | Product |
| `shop.<field>` | [Store](https://docs.queryful.app/queryfulql/records/shop.md) | Store |

## Related datasets

* [Subscriptions](https://docs.queryful.app/queryfulql/datasets/subscriptions.md)
* [Products](https://docs.queryful.app/queryfulql/datasets/products.md)
* [Price lists](https://docs.queryful.app/queryfulql/datasets/price_lists.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.