👥 Total Users: – 🟢 Online Now: –
Home › Dashboard › Clinical Safety & Quality Dashboard
â›¶ Full Screen (No ads)

Healthcare • Power BI

Hospital Patient Safety Dashboard for Power BI: Harm Rate, Near Misses and Clinical Quality

Buy on Gumroad ✉ Ask a question

Hospital quality teams ask the same questions every month. Is patient harm going down once we allow for how busy the wards were? Are we catching hazards as near misses before they become harm? Is the safety activity that should prevent harm, such as rounds, audits, huddles and training, actually happening? Answering them usually means stitching together incident registers, bed-day reports, audit logs and training records by hand.

This dashboard answers them on one data model. It has seven report pages, a star schema built from three CSV files and 164 ready-made measures, and it ships with sample data for a fictional Australian hospital group, Kurrajong Health Network, so you can explore it straight away. This page also walks through how the model is designed and why, so you can reuse the approach for your own data.

1. What was built

Kurrajong Health Network is an invented Australian private hospital group, and the report covers its Moreton Bay Campus inpatient services. Every number is synthetic, generated with a Python script so the patterns look real: weekday and weekend activity, a winter peak in occupancy, rare severe harm events that reset a harm-free streak, and a 2026 year-to-date position that improves on the 2025 full-year benchmark.

The report is built around the two kinds of indicator every patient safety programme tracks. Lagging indicators measure outcomes that have already happened, such as patient harm events at each severity level, falls, pressure injuries, infections and medication errors. Leading indicators measure the activity that prevents harm, such as safety observations, leadership rounds, hand hygiene audits, safety huddles, staff training and surgical safety checklists. Every rate is normalised per 1,000 occupied bed days, so a busy month does not look worse just because there were more patients.

2. What is inside: seven report pages

1. Executive overview

The first page is built for a clinical governance meeting. Twelve cards show occupied bed days, bed days since the last severe harm event, severe harm events, patient harm rate, total reported incidents, near misses, safety observations, clinical training hours, safety rounds, safety huddles, surgical checklists completed and staff recognitions. Each card carries a small line comparing it with the 2025 full year. Below them, a combo chart shows occupied bed days with average daily inpatients, a stacked column chart shows incidents by type and month, and a third chart shows safety observations by source. Three text insights summarise safety, the harm rate and reporting culture in plain sentences.

Hospital patient safety dashboard executive overview page in Power BI
Executive overview: headline cards, bed days, incidents by type and plain-language insights.

2. Lagging indicators

This page shows outcomes. Cards cover minor, moderate, significant and severe harm events, extra bed days caused by harm and near misses, followed by patient harm rate, reportable harm rate, severe harm rate, harm severity rate, severe harm per 100 inpatients and the near miss to harm ratio. Charts show harm events by month, the monthly harm rate against the 2025 benchmark, the mix of incident types and near misses against harm events. A scorecard table lists every lagging KPI with its change against 2025.

Hospital patient safety dashboard lagging indicators page in Power BI
Lagging indicators: harm severity levels, rates per 1,000 bed days and the 2025 benchmark.

3. Leading indicators

The proactive side of safety. Cards and charts cover safety observations by source (nursing, medical, allied and support), executive and ward manager safety rounds, hand hygiene, medication safety and resuscitation equipment checks, safety and multidisciplinary team meetings, staff safety orientations for permanent and agency staff, and clinical training attendees and hours.

Hospital patient safety dashboard leading indicators page in Power BI
Leading indicators: observations, rounds, audits, meetings, orientation and training.

4. Capacity and controls

Activity and the controls that protect patients. It shows occupied bed days with average daily inpatients, surgical safety checklists with the rate per 1,000 bed days, completed risk assessments, emergency code drills, clinical audits, open corrective actions, recognition against patient complaints and the observation rate against 2025.

Hospital patient safety dashboard capacity and controls page in Power BI
Capacity and controls: bed days, checklists, drills, audits and corrective actions.

5. Weekly trends

Six weekly charts show occupied bed days, average daily inpatients, near misses against harm events, safety observations, safety rounds and surgical checklists. Weeks run Monday to Sunday and are labelled W01, W02 and so on, so a spike is easy to place in time.

6. KPI scorecard

One matrix lists every KPI by category for the selected period, next to the 2025 full year, the rate per 1,000 bed days for both periods and the percentage change. The change is coloured by meaning: for lagging indicators a fall is green, and for leading indicators a rise is green. A Lagging or Leading slicer narrows the list.

Hospital patient safety dashboard KPI scorecard page in Power BI
KPI scorecard: selected period against 2025, normalised per 1,000 bed days.

7. Monthly grid

A monthly clinical safety report in one matrix: every KPI by category across the months of 2026, for the review packs that boards and committees ask for.

A month slicer sits on every page and stays in sync, and a button row at the top of each page switches between pages.

3. The data: three CSV files

The project loads three CSV files from one folder. The folder path is a single Power Query parameter called DataFolder, so moving the project to another machine means changing one text value.

FileOne row isRowsKey columns
kpi_master.csvKPI39KPI ID, name, short name, Lagging or Leading, category, aggregation (Sum or Average), unit, chart group, sort keys, source column
daily_clinical_report_2026.csvDay326Date plus 39 daily KPI columns, such as occupied bed days, harm events by severity, near misses, falls, audits and huddles
annual_summary_2025_2024.csvKPI392025 and 2024 full-year totals, used as the benchmark

Why a wide daily file and a KPI master? Real daily ward reports are wide: one row per day and one column per metric. That is easy for people to read and awkward for analysis, because every new metric means a new column and a new set of measures. Power Query unpivots the daily file into a tall table of date, KPI and value, then joins it to the KPI master on the column name. Adding a metric becomes a new column in the CSV and a new row in the master.

4. Data modeling: the star schema

A star schema puts descriptive attributes in dimension tables and numeric events in fact tables. Dimensions filter and group; facts get summarised. Power BI's engine is optimised for this layout, and DAX stays simple because filters flow one way, from dimensions to facts.

Dim_Date Dim_KPI Fact_Daily Fact_PriorYear Dimensions (blue) filter facts (gold). _Measures holds the 164 measures and has no relationships.
TableTypeWhat it holds
Fact_DailyFactOne row per day per KPI: date, KPI ID and value (12,714 rows for 326 days and 39 KPIs)
Fact_PriorYearFact2025 and 2024 full-year value for each KPI (78 rows)
Dim_DateCalculated dimensionCalendar built in DAX with Australian financial year, Monday to Sunday weeks and weekday flags
Dim_KPIDimension39 KPIs with type (Lagging or Leading), category, unit, aggregation and sort order
_MeasuresMeasure tableAll 164 measures, in seven display folders

Relationships

From (many side)To (one side)Note
Fact_Daily[Date]Dim_Date[Date]Daily grain
Fact_Daily[KPI_ID]Dim_KPI[KPI_ID]Each daily value belongs to one KPI
Fact_PriorYear[KPI_ID]Dim_KPI[KPI_ID]The benchmark shares the same KPI dimension, so the scorecard lines up current and prior values

All relationships are many-to-one with single-direction filtering. The raw value columns in both fact tables are hidden, so report authors use measures and cannot accidentally sum a column that should have been averaged.

Why one tall fact table instead of 39 columns? A KPI scorecard needs to list every metric in rows, group them by category and show current and prior values side by side. With a tall fact and a KPI dimension that is one matrix visual. With a wide table it would be 39 separate measures placed by hand.

5. Calculated table and columns

Calculated table (1)

Dim_Date is built in DAX from the first and last dates in the daily facts, so it grows when new days arrive.

Dim_Date = CALENDAR(MIN(fact_Daily[Date]), MAX(fact_Daily[Date]))

Calculated columns (13)

Everything else in the calendar is a calculated column on that table. Each text column has a hidden sort column, so months and weeks sort in time order rather than alphabetically.

Month Name     = FORMAT([Date], "MMM")                          -- sorted by Month No
Financial Year = "FY" & IF(MONTH([Date]) >= 7, YEAR([Date]) + 1, YEAR([Date]))
Financial Qtr  = "Q" & (INT(MOD(MONTH([Date]) - 7, 12) / 3) + 1)
Week Start     = [Date] - WEEKDAY([Date], 2) + 1               -- Monday
Week No        =
    VAR _jan1      = DATE(YEAR([Date]), 1, 1)
    VAR _firstWeek = _jan1 - WEEKDAY(_jan1, 2) + 1
    RETURN INT(DIVIDE([Week Start] - _firstWeek, 7)) + 1
Week Label     = "W" & FORMAT([Week No], "00")                 -- sorted by Week No
Day Type       = IF(WEEKDAY([Date], 2) > 5, "Weekend", "Weekday")
ColumnWhy it exists
Year, Month No, Month Name, Month YearMonth axis and slicer, with a hidden sort number.
Financial Year, Financial QuarterAustralian July to June reporting, for committees that report by financial year.
Week Start, Week No, Week Label, Week RangeMonday to Sunday weeks for the weekly trend page.
Day No, Day Name, Day TypeWeekday against weekend patterns.

Rule of thumb: use a calculated column for something you slice or group by, which is an attribute. Use a measure for something you total or compare. Week Label is an attribute of a date, so it is a column. Patient harm rate changes with every filter, so it is a measure.

6. DAX measures that matter

The model has 164 measures in one table, grouped into seven display folders: Activity, Lagging Indicators, Leading Indicators, Scorecard, Formatting, Labels and Insights. Most are tiny, and they build on each other.

One base measure per KPI, then ratios

Occupied Bed Days = CALCULATE(SUM(fact_Daily[Value]), dim_KPI[KPI_ID] = 15)
Minor Harm        = CALCULATE(SUM(fact_Daily[Value]), dim_KPI[KPI_ID] = 1)
Severe Harm       = CALCULATE(SUM(fact_Daily[Value]), dim_KPI[KPI_ID] = 4)

Total Harm Events =
    [Minor Harm] + [Moderate Harm] + [Significant Harm]
  + [Severe Harm] + [Permanent Harm] + [Unexpected Deaths]

Patient Harm Rate = DIVIDE([Total Harm Events] * 1000, [Occupied Bed Days])

Each KPI is one filtered sum on the tall fact table. Ratios use DIVIDE instead of the / operator, so a zero denominator returns blank instead of an error. The same pattern gives the reportable harm rate (moderate harm and above), the severe harm rate and the harm severity rate (extra bed days per 1,000 bed days).

The prior-year benchmark

Minor Harm 2025 =
    CALCULATE(SUM(fact_PriorYear[Value]), fact_PriorYear[Year] = 2025, dim_KPI[KPI_ID] = 1)

Insight Rate =
IF(ISBLANK([Patient Harm Rate]), "No occupied bed days in the selected period.",
   "Patient harm rate is " & FORMAT([Patient Harm Rate], "0.00")
   & " per 1,000 bed days vs " & FORMAT([Patient Harm Rate 2025], "0.00") & " in 2025"
   & IF([Patient Harm Rate 2025] > 0, " (" & FORMAT(ABS(DIVIDE([Patient Harm Rate]
   - [Patient Harm Rate 2025], [Patient Harm Rate 2025])), "0%")
   & IF([Patient Harm Rate] <= [Patient Harm Rate 2025], " lower).", " higher)."), "."))

The 2025 figure is a full-year total while 2026 is a year to date, so the report compares rates per 1,000 bed days, never raw totals. The insight cards are measures that return sentences, so they update with every slicer change.

The harm-free streak

Last Severe Harm Date =
    MAXX(FILTER(ALL(dim_Date), [Severe Harm] > 0), dim_Date[Date])

Bed Days Since Last Severe Harm =
    VAR _last = [Last Severe Harm Date]
    RETURN IF(ISBLANK(_last), [PTD Bed Days],
              CALCULATE([Occupied Bed Days], ALL(dim_Date), dim_Date[Date] > _last))

Hospitals often display a count of days since the last serious event. This measure counts the occupied bed days after the last severe harm event instead, which accounts for how busy the campus was. Because it removes the date filter with ALL, selecting a month on the slicer does not reset the streak.

One scorecard measure for 39 KPIs

KPI Value =
    VAR _id = SELECTEDVALUE(dim_KPI[KPI_ID])
    RETURN IF(ISBLANK(_id), BLANK(),
        IF(SELECTEDVALUE(dim_KPI[Aggregation]) = "Average",
           AVERAGE(fact_Daily[Value]), SUM(fact_Daily[Value])))

Rate Change Color =
    VAR _chg = [Rate Change %]
    VAR _lagging = SELECTEDVALUE(dim_KPI[KPI Type]) = "Lagging"
    RETURN IF(ISBLANK(_chg), "#919295", IF(_chg = 0, "#919295",
              IF((_chg < 0) = _lagging, "#2E9E5B", "#C8102E")))

The scorecard matrix uses a single value measure. For each row it reads the KPI's aggregation type from the dimension, so average daily inpatients are averaged while counts are summed. The colour measure turns a change into green or red according to whether the KPI is lagging (lower is better) or leading (higher is better).

Measures patient safety teams actually use

MeasureMeaning
Patient harm rateHarm events at every severity level per 1,000 occupied bed days
Reportable harm rateModerate, significant, severe and permanent harm and unexpected deaths per 1,000 bed days
Severe harm per 100 inpatientsSevere harm events relative to average daily inpatients
Harm severity rateExtra bed days caused by harm, per 1,000 bed days
Near miss to harm ratioNear misses reported for every harm event. A high ratio suggests a healthy reporting culture.
Observations per 1,000 bed daysSafety observations raised, adjusted for activity
Surgical checklists per 1,000 bed daysChecklist completion adjusted for activity
Bed days since last severe harmOccupied bed days since the last severe harm event
Rate change against 2025Change in rate per 1,000 bed days against the 2025 full year, colour-coded by meaning

7. Modeling pitfalls and how they are handled

PitfallHow the model handles it
A wide daily CSV is hard to analyse and every new metric breaks the model.Power Query unpivots it into a tall fact table and joins to the KPI master on the source column name. A new metric is a new column and a new master row.
Busy months look worse because there were more patients.Every rate is divided by occupied bed days, and the scorecard compares rates per 1,000 bed days.
Totals from a year to date cannot be compared with a full year.The benchmark is shown as a rate, and totals are labelled "2025 full year".
Some KPIs should be averaged and others summed.An Aggregation column in the KPI dimension drives the scorecard measure.
Exposure KPIs, such as bed days, should not be divided by bed days.The scorecard rate measure returns blank for the activity KPIs.
A month slicer should not reset the harm-free streak.The streak measures remove the date filter with ALL(dim_Date).
Total reported incidents could double count.The incident register uses one primary class per incident, so the 13 classes are mutually exclusive and can be added up.
Months and weeks sorting alphabetically.Hidden sort columns (Month No, Week No, Day No) set as the sort-by column.

8. PBIP, TMDL and the DataFolder parameter

The project is saved as a Power BI Project (PBIP). Instead of one binary file, the report and the semantic model are plain-text folders. The model uses TMDL, one readable file per table, and the report uses the PBIR format, one JSON file per visual. You can read and compare the model in a text editor, track changes in Git, and even generate whole projects from code.

Kurrajong_PatientSafety/
  Kurrajong_PatientSafety.pbip
  Kurrajong_PatientSafety.SemanticModel/definition/
      model.tmdl  relationships.tmdl  expressions.tmdl
      tables/  fact_Daily.tmdl  dim_Date.tmdl  _Measures.tmdl ...
  Kurrajong_PatientSafety.Report/definition/pages/...
  Data/  kpi_master.csv  daily_clinical_report_2026.csv  annual_summary_2025_2024.csv

Every CSV query reads from the same parameter, so there are no hard-coded paths inside the queries. The daily file is unpivoted and joined to the KPI master like this:

Source    = Csv.Document(File.Contents(DataFolder & "\daily_clinical_report_2026.csv"), [Delimiter=",", Encoding=65001]),
Promoted  = Table.PromoteHeaders(Source, [PromoteAllScalars = true]),
Unpivoted = Table.UnpivotOtherColumns(Promoted, {"Date"}, "Source Column", "Value"),
Joined    = Table.NestedJoin(Unpivoted, {"Source Column"}, KPI_Master, {"Source Column"}, "K", JoinKind.Inner),
Expanded  = Table.ExpandTableColumn(Joined, "K", {"KPI_ID"})

Lesson from building it: this project started as a rebrand of an existing construction safety report. When the source columns changed, one query step in a dimension still removed a column by its old name, and Power BI blocked the load with "The column of the table wasn't found". When you change a source file, search every query step for the old column names, not only the first query.

9. About the sample data

The report uses synthetic data for a fictional hospital campus. It was built to show realistic patterns: weekday and weekend activity, a winter occupancy peak, near misses far more common than harm, and rare severe harm events. Data runs from 1 January to 22 November 2026, so 2026 is a year to date set against the 2025 full year. In the sample, 2026 has 99,187 occupied bed days and 88 patient harm events, a rate of 0.89 per 1,000 bed days against 1.03 in 2025. There were 2 severe harm events, the latest on 19 August 2026, and no unexpected deaths. The figures are illustrative and not real hospital results.

Note: Harm severity levels follow the idea of an incident severity rating (ISR 1 to 4) but the dashboard is a reporting and learning tool, not a clinical or regulatory system. Check the definitions your own organisation and state health service use before you map your data.

10. Using it with your own data

  1. Open the project in Power BI Desktop, which is free to download.
  2. Set the DataFolder parameter to the folder that holds your CSV files, then refresh.
  3. Edit kpi_master.csv to list your own KPIs. Each row's source column must match a column header in your daily file exactly.
  4. Export your daily counts in the same wide layout, one row per day. Add the previous year's totals to the annual summary.
  5. Refresh, check a few totals against a report you already trust, then publish.

Need practice data first? Try the free Docynx Sample Data Generator.

Who it is for

  • Clinical governance, quality and patient safety teams who need a ready reporting layer.
  • Hospital managers and executives who review safety each month.
  • Power BI developers building healthcare reporting for clients who want a solid model to start from.
  • Students and career changers who want to see how lagging and leading KPIs are modelled.

11. Frequently asked questions

What is the difference between lagging and leading indicators?

Lagging indicators measure outcomes after the fact, such as harm events. Leading indicators measure the preventive activity that should reduce them, such as audits, rounds and training. A good safety programme watches both.

Why divide by occupied bed days?

A busy month has more patients and so more chances for something to go wrong. Rates per 1,000 occupied bed days let you compare months, wards and years fairly.

Why one tall fact table instead of one column per KPI?

It lets one matrix list every KPI by category, with current and prior values side by side. Adding a KPI becomes a data change, not a model change.

Do I need a paid Power BI license?

You can open and explore the project in Power BI Desktop for free. Sharing reports in the Power BI service needs the licenses your organisation already uses for that.

Is the data real?

No. Real patient safety data is confidential, so this is synthetic data that shows how the report behaves. It contains no patient information. You connect your own data to use it for real decisions.

Can I change the design or add pages?

Yes. It is a standard Power BI project (PBIP), so you can change visuals, colours and pages, and add your own measures.

What if I need it adapted to my organisation?

Email contact@docynx.com and describe your data and the questions you need answered, or see our custom dashboard service.

Get the Clinical Safety & Quality Dashboard

The Power BI project, the data model, the CSV files and the sample data are available on Gumroad. Check the Gumroad page for the current price and the full list of what is included.

Get it on Gumroad → ✉ Ask a question

A note on interpretation: This dashboard is a reporting and learning tool. The sample figures are fictional, and Kurrajong Health Network is an invented organisation. It is not clinical, legal or regulatory advice, and any numbers you produce from your own data should be reviewed by qualified clinical governance staff before they are used for decisions.

Explore Free Online PDF & Image Tools by Docynx