Hospital Revenue Cycle Management Path · Mission 8 of 25Medium

Monthly claim volume trend

Date-string slicing with substr() to roll fact_claims up to monthly buckets. Hospital RCM systems store dates as YYYY-MM-DD TEXT; carving year + month is the most common reporting transform for trend dashboards. Single-table aggregate with a derived column — a Medium step up from M4's flat per-payer count.

The Brief

James OrtizDenials Specialistslack-dm

Sarah wants the field force trend for the QBR deck. From fact_claims, give me total claim counts rolled to the month — output 'YYYY-MM' format (e.g. '2024-08'), sorted ascending so the trend reads left to right. Two columns: month, claim_count. Use substr() to slice the submission_date string; the year and month carve fits in two substr calls concatenated. The 24-month window covers May 2024 through April 2026.

You'll practice

substr dateGROUP BY derived expressionCOUNT(*)

Tables & columns available

fact_claimsfact6 columns
ColumnTypeKey
claim_idINTPK
charge_idINTFK → fact_charges
payer_idINTFK → dim_payer
submission_dateTEXT
claim_statusTEXT
submitted_amountREAL

Hints (3)

Each hint you reveal reduces the XP you can earn. Try the query first.

Hint 1

substr() is the right tool — submission_date is TEXT in ISO-8601 (YYYY-MM-DD) shape, so positions 1-7 give you the YYYY-MM month key directly.

Hint 2

GROUP BY the derived month expression. COUNT(*) aliased as claim_count.

Hint 3

Sort ascending on month so the trend reads left-to-right; the QBR deck needs the time series in chronological order, not by volume.