> For the complete documentation index, see [llms.txt](https://docs.dataplex-consulting.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dataplex-consulting.com/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-quarterly-part-d-spending-by-drug.md).

# Medicare Quarterly Part D Spending by Drug

Part of the [CMS Data Feeds Dataset](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog.md) › Medicare

Dataplex delivers this CMS feed as the analysis-ready table `DWV.MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG` on Snowflake and Databricks — coverage from 2025 to 2026 in a single aligned schema, refreshed automatically whenever CMS publishes a new file. Every row carries lineage back to the exact CMS source file that produced it.

## Key facts

|                    |                                                        |
| ------------------ | ------------------------------------------------------ |
| **Snowflake**      | `DWV.MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG`       |
| **Databricks**     | `cms_dwv.medicare_quarterly_part_d_spending_by_drug`   |
| **Coverage**       | Jan 2025 – Mar 2026                                    |
| **Rows**           | 112,235 (total across all reporting periods)           |
| **Cadence**        | Quarterly                                              |
| **Update pattern** | Time-partitioned — each file adds one reporting period |
| **CMS published**  | 2026-07-23                                             |
| **Loaded**         | 2026-07-23                                             |
| **Columns**        | 11 data + 6 lineage                                    |
| **File versions**  | 4                                                      |
| **License**        | CMS public data — U.S. Government work                 |
| **Platforms**      | Snowflake Marketplace · Databricks Delta Sharing       |

Included in the CMS Data Feeds Dataset — [start a free trial on Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZT1Z125KDH/dataplex-consulting-data-products-cms-data-feeds-dataset).

{% hint style="success" %}
**Current** — CMS last published this feed on 2026-07-23. Coverage runs through 2026-03-31. Next CMS release expected \~Oct 2026.
{% endhint %}

{% hint style="info" %}
**Time-partitioned feed** — each file version covers one reporting period, so history is additive. Query the full table for all periods; filter on `YEAR` for a single period. Do **not** filter to the latest file only — that would return just the 2026 reporting period.
{% endhint %}

## Sample queries

{% tabs %}
{% tab title="Snowflake" %}

```sql
-- Each file version covers one reporting period (2025, 2026) — history is additive
SELECT *
FROM DWV.MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG
LIMIT 100;
```

{% endtab %}

{% tab title="Databricks" %}

```sql
-- Each file version covers one reporting period (2025, 2026) — history is additive
SELECT *
FROM cms_dwv.medicare_quarterly_part_d_spending_by_drug
LIMIT 100;
```

{% endtab %}
{% endtabs %}

## About this feed

> The Medicare Quarterly Part D Spending by Drug dataset presents information on spending for drugs prescribed to Medicare beneficiaries enrolled in Part D by physicians and other healthcare providers. Drugs prescribed in the Medicare Part D program are drugs patients generally administer themselves. It also includes spending information for manufacturer(s) of the drugs as well as consumer-friendly information of drug uses and clinical indications.
>
> Drug spending metrics for Part D drugs are based on the gross drug cost, which represents total spending for the prescription claim, including Medicare, plan, and beneficiary payments. The Part D spending metrics do not reflect any manufacturers’ rebates or other price concessions as CMS is prohibited from publicly disclosing such information.
>
> This dataset reports preliminary data that goes beyond the latest date available in the annual Medicare Part D Spending by Drug dataset. The data are updated each quarter and may change with each new release due to claims lag. Once an entire year of data is available with a sufficient run-out period, that data will move out of the preliminary quarterly dataset and into the annual Medicare Part D Spending by Drug dataset. Due to the preliminary nature of the quarterly dataset, we advise using caution when comparing between the annual and quarterly datasets.
>
> — *Source: CMS feed metadata*

**Keywords:** Medicare, Medicare Prescription Drug, Medical Suppliers & Equipment, Drugs **Theme:** Medicare

## Coverage timeline

2025 🟩 · 2026 🟩

2 of 2 years covered — no gaps.

## Release history

| Reporting period        | CMS published | Loaded     | Latest file |
| ----------------------- | ------------- | ---------- | ----------- |
| 2026-01-01 – 2026-03-31 | 2026-07-23    | 2026-07-23 | ✓           |
| 2025-07-01 – 2025-09-30 | 2026-04-30    | 2026-04-30 |             |
| 2025-04-01 – 2025-06-30 | 2026-01-29    | 2026-01-29 |             |
| 2025-01-01 – 2025-03-31 | 2025-12-11    | 2025-12-11 |             |

## Data dictionary

<details>

<summary>📋 <strong>11 data columns + 6 lineage columns</strong></summary>

Column-level definitions are maintained by CMS in the official [Medicare Quarterly Part D Spending by Drug data dictionary](https://data.cms.gov/resources/medicare-quarterly-part-d-spending-by-drug-data-dictionary).

**Data columns**

| Column              | Type   |
| ------------------- | ------ |
| `BRND_NAME`         | TEXT   |
| `GNRC_NAME`         | TEXT   |
| `TOT_MFTR`          | NUMBER |
| `MFTR_NAME`         | TEXT   |
| `YEAR`              | TEXT   |
| `TOT_BENES`         | NUMBER |
| `TOT_CLMS`          | NUMBER |
| `TOT_SPNDNG`        | NUMBER |
| `AVG_SPND_PER_BENE` | NUMBER |
| `AVG_SPND_PER_CLM`  | NUMBER |
| `DRUG_USES`         | TEXT   |

**Lineage columns** (present on every feed table)

| Column         | Type           | Description                                  |
| -------------- | -------------- | -------------------------------------------- |
| `ROW_ID`       | TEXT           | Unique row ID for this table (PK)            |
| `FILE_ID`      | TEXT           | Source file — joins to `FEEDS_FILES.ID` (FK) |
| `FILE_FEED_ID` | TEXT           | Parent feed — joins to `FEEDS.ID` (FK)       |
| `FILE_NAME`    | TEXT           | Source file name as published by CMS         |
| `ROWNUM`       | NUMBER         | Row number within the source file            |
| `CREATED_AT`   | TIMESTAMP\_NTZ | Timestamp when the record was loaded         |

</details>

## Row-level lineage

Every row in this table traces to the exact CMS source file that produced it. The `FILE_ID` column joins to the `FEEDS_FILES` catalog table, and `FILE_FEED_ID` joins to the `FEEDS` master table:

```mermaid
erDiagram
    FEEDS ||--o{ FEEDS_FILES : "ID = FEED_ID"
    FEEDS ||--o{ MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG : "ID = FILE_FEED_ID"
    FEEDS_FILES ||--o{ MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG : "ID = FILE_ID"

    FEEDS {
        text ID PK
        text TITLE
        text VIEW_NAME
        text ACCURAL_PERIODICITY
    }
    FEEDS_FILES {
        text ID PK
        text FEED_ID FK
        date TEMPORAL_START
        date TEMPORAL_END
        date CMS_FEED_MODIFIED
        number IS_LATEST
    }
    MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG {
        text ROW_ID PK
        text FILE_ID FK
        text FILE_FEED_ID FK
        text BRND_NAME
        text GNRC_NAME
        number TOT_MFTR
        text MFTR_NAME
        number remaining_7_data_columns
    }
```

Trace any row back to its source file and reporting period:

```sql
SELECT d.BRND_NAME, d.GNRC_NAME, d.TOT_MFTR,
       ff.TEMPORAL_START, ff.TEMPORAL_END, ff.CMS_FEED_MODIFIED
FROM DWV.MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG d
JOIN DWV.FEEDS_FILES ff ON d.FILE_ID = ff.ID;
```

## Source & provenance

Published by the **Centers for Medicare & Medicaid Services** (bureau 009:38).

* [Official CMS data dictionary](https://data.cms.gov/resources/medicare-quarterly-part-d-spending-by-drug-data-dictionary)
* [Medicare Quarterly Part D Spending by Drug Methodology](https://data.cms.gov/resources/medicare-quarterly-part-d-spending-by-drug-methodology)

## Frequently asked questions

### How often is Medicare Quarterly Part D Spending by Drug updated?

Quarterly. CMS last published this feed on 2026-07-23, and Dataplex loaded it to the warehouse the same day. New releases are added automatically when CMS publishes them.

### What years does Medicare Quarterly Part D Spending by Drug cover?

2025 through 2026.

### How many records are in Medicare Quarterly Part D Spending by Drug?

112,235 rows across all four reporting periods. Because this feed is time-partitioned, the full table total is the meaningful count — no deduplication needed.

### How do I get Medicare Quarterly Part D Spending by Drug data?

It's included in the CMS Data Feeds Dataset on the [Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZT1Z125KDH/dataplex-consulting-data-products-cms-data-feeds-dataset) (free trial available) and via [Databricks Delta Sharing](https://checkout.dataplex-consulting.com/b/3cIdR2e1J59Sh2w7pWbQY00). Once mounted, query `DWV.MEDICARE_QUARTERLY_PART_D_SPENDING_BY_DRUG` directly — no pipeline setup required.

## Related feeds

{% content-ref url="/pages/s2EeqZCtnEppiu25uEfW" %}
[Medicare Part D Spending by Drug](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-d-spending-by-drug.md)
{% endcontent-ref %}

{% content-ref url="/pages/pV6JFrDKrRy3OgkAJ8RK" %}
[Medicare Part D Prescribers - by Provider and Drug](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-d-prescribers-by-provider-and-drug.md)
{% endcontent-ref %}

{% content-ref url="/pages/L6LJVEBqrN0qUVMZz34f" %}
[Medicare Part D Opioid Prescribing Rates - by Geography](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-d-opioid-prescribing-rates-by-geography.md)
{% endcontent-ref %}

{% content-ref url="/pages/S696BTb9VK7JkeRV2a52" %}
[Medicare Part D Prescribers - by Geography and Drug](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-d-prescribers-by-geography-and-drug.md)
{% endcontent-ref %}

{% content-ref url="/pages/3Gpjb984k3o8xLswelN4" %}
[Medicare Part D Prescribers - by Provider](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-part-d-prescribers-by-provider.md)
{% endcontent-ref %}

## Get this feed

1. [Start a free trial on Snowflake Marketplace](https://app.snowflake.com/marketplace/listing/GZT1Z125KDH/dataplex-consulting-data-products-cms-data-feeds-dataset) or purchase via [Databricks](https://checkout.dataplex-consulting.com/b/3cIdR2e1J59Sh2w7pWbQY00)
2. Mount the share — the database and `DWV` schema appear in your account immediately
3. Run the [sample query](#sample-queries) above — no ETL, no pipeline maintenance

Questions about this feed? Contact us at <notifications@dataplex-consulting.com>.

***

Part of the [CMS Data Feeds Dataset](/data-catalog/cms-data-feeds-dataset.md) — 280+ feeds · 245B+ records · updated daily. [Back to the full catalog →](/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog.md#medicare-quarterly-part-d-spending-by-drug)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.dataplex-consulting.com/data-catalog/cms-data-feeds-dataset/cms-data-feeds-catalog/medicare-quarterly-part-d-spending-by-drug.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
