The Dunleavy Organization

Data · Analytics · Digital Delivery

Part D Specialty Analytics

Public Medicare Part D analytics in Snowflake: Part D Specialty Economics (drug mart and specialty flag) and Part D Prescribers Explorer (national 2024 aggregates) — both on Tableau Public.

Role
Sole developer
Timeline
2026
Source
CMS Part D PUF
Warehouse
Snowflake
BI
Tableau Public
PHI
None (public data)
Views

Drug Path

Problem & Outcome

CMS publishes national Medicare Part D drug-spend files that are free to use, but they arrive wide by year and need clear modeling before they support reliable analysis — including a documented specialty flag aligned to CMS specialty-tier economics.

Outcome: Part D Spending by Drug loaded into Snowflake (as-loaded raw layer, then a drug-by-year mart), a specialty flag based on average spend per beneficiary versus CMS’s $950 specialty-tier monthly cost threshold, quality checks on row counts, and a Tableau Public dashboard from a mart extract.

Dashboard

Part D Specialty Economics — drug mart preview (Tableau toolbar at the bottom of the frame).

Architecture

Small warehouse layers: as-loaded raw data, an analysis mart with explicit grain (brand × generic × year), then a mart extract for Tableau Public.

Grain: brand × generic × year Overall manufacturer rollup Specialty flag: avg $/bene ÷ 12 ≥ $950 QC: row counts + flag totals

Specialty Flag

Part D plans use a CMS specialty-tier cost threshold of $950 for a 30-day equivalent supply (CY 2024–2026 bidding guidance). The mart’s specialty flag marks drugs whose average Part D spend per beneficiary, divided by 12, meets or exceeds that monthly bar:

est_monthly = avg_spnd_per_bene / 12
specialty flag = (est_monthly ≥ 950)

That is a documented cost proxy, not an official formulary “specialty” label. Very large national spend can still sit below the flag when many beneficiaries share the total (for example common chronic therapies).

Check (2024)Result
RAW rows14,536
Overall drug groups3,625
Specialty flag TRUE685
FALSE / null2,741 / 199
Specialty Flag QC (2024) Counts on the drug mart by specialty flag — matches the table above. Prescriber AGG tables are a separate path. Click to expand full screen

Project (Both Views)

Hosting & Operations

Warehouse: Snowflake (credentials stay private). Published charts use mart extracts, not a live public Snowflake connection.

BI: Tableau Public hosts Part D Specialty Economics and Part D Prescribers Explorer. This site embeds or links those views.

Source code: public on GitHub. CMS open data only — no PHI.

Snowflake Tableau Public Mart / AGG extract GitHub

Tech Stack

One project stack covers both views (specialty economics and the prescribers explorer).

Layer Choice Why
Source CMS data.cms.gov Drug spend + prescriber PUFs (public)
Warehouse Snowflake RAW + MART / AGG; X-Small; re-runnable SQL
Transform SQL + Python loader Drug mart + specialty flag; full prescriber load + AGG
BI Tableau Public Extracts of marts — not 28M rows in the browser
This site Static embed Preview + full-page links to Public

Takeaways

View a public Tableau dashboard?

Brief project notes are enough — I reply by email.