Microsoft Fabric GitHub Copilot
1ConversationalAsk in the flow of work
2Automatic & GovernedInsights that find you
3Generative UIVisual-first insights

From Question to Visuals: Data Insights with Fabric, Rayfin & GitHub Copilot

Conversational→Automatic & Governed→Generative UI

Ask anything, right where you already work.

In the flow of work

Microsoft 365 Copilot and GitHub Copilot in VS Code and the CLI. No new tool to open.

One semantic model, any source

Every answer uses the same Fabric measures, relationships and security.

Grounded, not guessed

MCP tools read the schema and run DAX, so the numbers come from the model.

The catch: answers arrive as a wall of text, with only a little bit of visuals.

Microsoft 365 CopilotWork
How are hospital-acquired infections trending, and where should we focus?
CopilotCMS semantic model · Fabric
National SIR by infection, 2025. Below 1.0 beats the 2015 baseline.
GitHub CopilotVS Code · Agent mode
  • cms_schemaHAI · PSI90 · HCAHPS✓
  • run_daxSIR by infection, 2019–2025✓
  • show_chartbar · 6 rows✓
Any data source
Semantic model
MCPTools
Copilot

Insights that find you, told for the role you play.

Executive takeaways, automatically

Headlines, narratives and KPIs are regenerated from the semantic model at every refresh.

Persona-based views

One governed model tells a different story for each role.

Executive
Quality analyst
Infection-prevention lead

Published on Fabric Rayfin

A Fabric app with Fabric sign-in and protected hosting.

cms-quality.webapp.fabricapps.net
Hospital Quality & Safety
Auto-generated from the CMS semantic model, refreshed Oct 13, 2026

Hospital infections are at a seven-year low. One surgical infection is moving the other way.

Central-line infections (CLABSI)
0.615−38% vs 2021 peak
C. difficile
0.356−39% since 2019
Surgical site, hysterectomy
1.108+19% since 2019

Across 3,896 reporting hospitals, five of the six infections CMS tracks are below their 2019 level, led by C. diff and catheter infections. Hysterectomy surgical-site infections are the exception: up 19% since 2019 and above the national baseline since 2023.

Executive takeawaysExplain
  • Device-associated infections have fully recovered from the pandemic surge.
  • 1,824 hospitals now beat the national benchmark for C. diff.
  • Hysterectomy infections crossed the 1.0 baseline in 2023, and 43 hospitals are flagged worse than national.
Six infections, 2019–2025 National SIR · 1.0 = expected
Recommended focus
  1. Hysterectomy surgical-site infections. Start a bundle review at the 43 hospitals flagged worse than national.
  2. Colon surgery. Flat at 0.87 since 2019; keep it on watch.
Analyst view: national pooled SIR, report years 2019–2025

Six infections, one shared shock and an uneven recovery

Device infections spiked in 2020–21 as COVID-19 stretched intensive care, then fell below their 2019 level. Surgical-site infections never had that spike, and hysterectomy drifted upward instead.

SIR by report year Σ observed ÷ Σ predicted
Infection-prevention view: where to act

Every infection improved since 2019 except hysterectomy surgical-site infections

Flagged worse than national, 2025 Top 6 of 43 · hysterectomy SIR
Where to act
  1. Georgia first. It has the most flagged hospitals (7).
  2. Surgical-site bundle review at all 43 flagged hospitals.
  3. Re-check at the next refresh. This view regenerates automatically.

Every visual explains itself, and anyone can check it by hand.

1

One click on Explain

Every visual carries its own explanation, right next to the chart.

2

How it's calculated

The source, the exact DAX that ran, the rules, and every number the chart plots.

3

Try it yourself

Recalculate by hand, re-run the query in Fabric, or trace it back to CMS's own files.

cms-quality.webapp.fabricapps.net/#infections
Hospital Quality & Safety
01 · The pandemic surge, and the recovery
Fig 1 · Healthcare-associated infections

Six infections, one shared shock

National pooled SIR (Σ observed ÷ Σ predicted), report years 2019–2025.

Explain
Fig 2 · Net change

Where each infection stands vs. 2019

National SIR, 2019 (○) to 2025 (●); ◆ pandemic-era peak.

Fig 3 · Statistical flags

Hospitals flagged vs. benchmark

CLABSI · 95% CI wholly below or above 1.0.

Explain this visual

Fig 1 · How “Six infections, one shared shock” was built

Verified against CMS source files · 42/42 match Model CMS · contoso-quality Table HAI · 7 report years
How it’s calculatedTry this yourself

Each line is the national pooled Standardized Infection Ratio (SIR): every infection hospitals reported, divided by every infection CDC’s risk models predicted for those same hospitals. Below 1.0 means fewer infections than predicted.

  1. 1
    Source

    CMS Care Compare HAI file, loaded into semantic model CMS, table HAI.

  2. 2
    Query

    One DAX query sums observed and predicted cases per infection, by REPORTYEAR.

  3. 3
    Calculate

    Pooled SIR = Σ observed ÷ Σ predicted. No weighting, filtering or smoothing.

  4. 4
    Draw

    One point per report year. Rounded to 2 decimals only when displayed.

The query

Semantic model
CMS · 222a5f01-1ba4-4870-ad84-220a7b1745b0
Workspace
contoso-quality · dec44340-2960-4ab8-8ae9-3a7ddda348a9
API
POST api.powerbi.com/v1.0/myorg/…/executeQueries
Run
Oct 13, 2026 14:10 UTC, signed in with the Azure CLI
DAX · the exact query that ranCopy
EVALUATE
SUMMARIZECOLUMNS (
    HAI[REPORTYEAR],
    "o1", SUM ( HAI[HAI_1_NUMERATOR-Central Line Associated Bloodstream Infection (ICU + select Wards): Observed Cases] ),
    "p1", SUM ( HAI[HAI_1_ELIGCASES-Central Line Associated Bloodstream Infection (ICU + select Wards): Predicted Cases] ),
    "o2", SUM ( HAI[HAI_2_NUMERATOR-Catheter Associated Urinary Tract Infections (ICU + select Wards): Observed Cases] ),
    …
)

The numbers behind the chart

CLABSICAUTISSI · ColonSSI · HysterectomyMRSAC. diff
2025 pooled SIR10,805 ÷ 17,570.315 = 0.614958 → 0.61
Change vs 20190.614958 ÷ 0.684675 − 1 = −10.2% → −10%

Why pooled, not an average of hospitals

CMS only publishes a hospital’s SIR when at least one infection is predicted, so many hospitals have no published SIR but are still in the totals. Pooling counts every infection once, which is how NHSN aggregates SIRs for groups of hospitals.

You don’t have to trust this dashboard, the semantic model, or this panel. Here are four independent checks, quickest first.

CLABSICAUTISSI · ColonSSI · HysterectomyMRSAC. diff
1
Recalculate by hand
≈ 1 minute
  • 2025: 10,805 ÷ 17,570.315 = 0.614958 → 0.61, the big number in the panel.
  • Change: 0.614958 ÷ 0.684675 − 1 = −10.2% → −10%, the label under it.
2
Re-run the query in Fabric
≈ 5 minutes
  1. In the Fabric portal, open workspace contoso-quality and semantic model CMS.
  2. Choose Write DAX queries, paste the query below and select Run.
  3. Observed, predicted and hospital counts should match exactly.
DAX · validation query for CLABSICopy
EVALUATE
SUMMARIZECOLUMNS (
    HAI[REPORTYEAR],
    "Observed", SUM ( HAI[HAI_1_NUMERATOR-…: Observed Cases] ),
    "Predicted", SUM ( HAI[HAI_1_ELIGCASES-…: Predicted Cases] ),
    "Pooled SIR", DIVIDE ( SUM ( HAI[…Observed Cases] ), SUM ( HAI[…Predicted Cases] ) )
)
ORDER BY HAI[REPORTYEAR]
3
Trace it back to CMS’s own files
≈ 15 minutes
  1. Download the report year’s snapshot from the CMS hospitals data archive.
  2. Open Healthcare_Associated_Infections-Hospital.csv in Excel.
  3. Observed: =SUMIFS(L:L, I:I, "HAI_1_NUMERATOR")
  4. Predicted: =SUMIFS(L:L, I:I, "HAI_1_ELIGCASES"), then divide.

An automated check repeats this for every infection and year: all 42 infection-years match exactly.

4
Sanity-check against CDC
optional

CDC’s HAI Progress Report publishes national SIRs from the same NHSN system. Expect the same direction and similar size, not identical values.

Visual-first insights, not a wall of text.

1

Ask in plain language

The answer arrives as a ranked chart and a short narrative, built from governed components.

2

Every visual is a doorway

Click any hospital to open its card, then Ask Copilot to go deeper.

3

A new visual, no new prompt

Copilot queries Fabric again and answers with a fresh chart and narrative.

127.0.0.1:5173
Hospital Quality & Safety
Copilot, live on Fabric data
✓Querying Microsoft Fabric · run_daxCMS semantic model · run_dax · 616 hospitals rated, 43 flagged worse

Hysterectomy surgical-site infections, 2025

SIR, top 6 of the 43 hospitals flagged worse than national1.0 = expected
Northside Hospital CherokeeCanton, GA · CMS 110008
4.60Hysterectomy SIR
15 vs 3.3Infections vs predicted
4★Patient rating
Rank 3 of 43 flagged
95% CI 2.68–7.42
Ask Copilot whyClose

43 of 616 rated hospitals are flagged worse than national, and Georgia has the most (7). Beth Israel Deaconess leads at 5.25: 12 infections where 2.3 were predicted.

Sent from the chart: Ask Copilot why
Why is Northside Hospital Cherokee flagged? Compare all six infections with national.
✓run_daxHAI · six infections · CMS 110008
✓run_daxNational SIR by infection · 2025
✓show_chartHospital vs national

Northside Hospital Cherokee: SIR by infection, 2025

NorthsideNational1.0 = expected

It's the operating room, not the wards. Both surgical-site infections are flagged: hysterectomy 4.60 (15 vs 3.3 predicted) and colon 2.63 (29 vs 11.0).

Ward infections are under control. Central line, catheter, MRSA and C. diff are in line with or below national, and patients still rate it 4 stars.

A rare pattern. Only 3 of the 43 are flagged on both surgeries, and Northside Hospital in Atlanta is another. Start with a surgical-site bundle review.

Compare with Northside Hospital, AtlantaShow the 3 hospitals flagged on both surgeriesTrend since 2019

Thank you. Questions?

ConversationalAutomatic & GovernedGenerative UI

Speaker notes