{"id":34,"date":"2026-09-30T05:43:58","date_gmt":"2026-09-30T05:43:58","guid":{"rendered":"https:\/\/www.datascientist.ca\/blog\/?p=34"},"modified":"2026-10-01T03:52:44","modified_gmt":"2026-10-01T03:52:44","slug":"build-a-complete-healthcare-analytics-dashboard-in-power-bi-from-scratch","status":"publish","type":"post","link":"https:\/\/www.datascientist.ca\/blog\/build-a-complete-healthcare-analytics-dashboard-in-power-bi-from-scratch\/","title":{"rendered":"Build a Complete Healthcare Analytics Dashboard in Power BI (From Scratch)"},"content":{"rendered":"\n<iframe loading=\"lazy\" title=\"Health Performance Dashboard\" width=\"600\" height=\"373.5\" src=\"https:\/\/app.powerbi.com\/view?r=eyJrIjoiZjZhZWVjZmUtZjY5NC00MzI2LTljMjMtZGYwYTUyZjQzMDhlIiwidCI6IjRhNjk1YWI3LWViNzktNDViZS05NTg2LWQ4NTA4ODUwYTY1NSJ9\" frameborder=\"0\" allowFullScreen=\"true\"><\/iframe>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe loading=\"lazy\" title=\"From Data to Insights: Healthcare Dashboard in Power BI (Full Guide)\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/DCJMGnu4gHw?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Case study overview: clinical insight and financial performance in one project<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">This Power BI healthcare analytics project turns raw patient data into two dashboards: a Clinical Operations dashboard and a Billing and Financial Overview dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The business problem.<\/strong> Clinical teams and finance teams look at the same patients through different lenses. Clinicians ask about conditions, admissions and length of stay, while finance asks about billing and revenue. When the two live in separate spreadsheets, leaders cannot see how clinical activity drives cost.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>The solution.<\/strong> One data model feeds both dashboards. Clinical Operations covers patients, medical conditions and stays, and the Billing and Financial Overview covers billing amounts, insurers and cost drivers. Matrix and tree visuals support deeper exploration.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Who it is for.<\/strong> Data analysts, Power BI developers, healthcare managers and finance teams, and students learning to design a professional multi-dashboard report.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The data: patient and billing records<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The source is a single file of healthcare records, with one row per patient admission. A typical layout includes patient name or ID, age, gender, medical condition, admission and discharge dates, admission type, doctor, hospital, insurance provider, billing amount, medication and test results. <em>[Adjust this list to the columns in your file, and state the number of records.]<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Data quality issues to handle<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Names and categories can have inconsistent capitalization and spacing.<\/li>\n\n\n\n<li>Dates arrive as text and must be converted before length of stay can be calculated.<\/li>\n\n\n\n<li>Duplicate rows and unusual billing values, such as negatives, need checking.<\/li>\n\n\n\n<li>Free-text fields should be grouped into consistent categories.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">A published tutorial should use synthetic or anonymized data, and the report should not show real patient names.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Data preparation, calculated columns and layout<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Preparation in Power Query<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Import the file and set the correct data types.<\/li>\n\n\n\n<li>Trim and standardize text columns, and remove duplicate rows.<\/li>\n\n\n\n<li>Check billing values and flag or fix negatives.<\/li>\n\n\n\n<li>Load the cleaned table, then split out dimensions such as condition, doctor and insurer if you want a star schema.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Calculated columns.<\/strong> Use calculated columns for row-level attributes that slicers and axes need, and measures for everything that aggregates.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Length of Stay =\nDATEDIFF ( Admissions&#91;AdmissionDate], Admissions&#91;DischargeDate], DAY )\n\nAge Group =\nSWITCH (\n    TRUE (),\n    Admissions&#91;Age] &lt; 18, \"Under 18\",\n    Admissions&#91;Age] &lt; 40, \"18 to 39\",\n    Admissions&#91;Age] &lt; 65, \"40 to 64\",\n    \"65 and over\"\n)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Professional layout<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Put KPI cards across the top, trends in the middle and detail at the bottom.<\/li>\n\n\n\n<li>Use a consistent grid, margins, fonts and colour palette across both dashboards.<\/li>\n\n\n\n<li>Give every visual a clear title, and keep each page to one purpose.<\/li>\n\n\n\n<li>Use a navigation bar to move between Clinical Operations and Billing.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Measures and KPI cards<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Table and column names are examples, so match them to your model.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Clinical measures<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Total Patients = DISTINCTCOUNT ( Admissions&#91;PatientID] )\n\nTotal Admissions = COUNTROWS ( Admissions )\n\nAvg Length of Stay = AVERAGE ( Admissions&#91;Length of Stay] )\n\nAvg Patient Age = AVERAGE ( Admissions&#91;Age] )\n\nEmergency Admissions % =\nDIVIDE (\n    CALCULATE ( &#91;Total Admissions], Admissions&#91;AdmissionType] = \"Emergency\" ),\n    &#91;Total Admissions]\n)<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Financial measures<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Total Billing = SUM ( Admissions&#91;BillingAmount] )\n\nAvg Billing per Admission = DIVIDE ( &#91;Total Billing], &#91;Total Admissions] )\n\nBilling per Day of Stay =\nDIVIDE ( &#91;Total Billing], SUM ( Admissions&#91;Length of Stay] ) )\n\nBilling Share % =\nDIVIDE ( &#91;Total Billing], CALCULATE ( &#91;Total Billing], ALLSELECTED () ) )\n\nBilling Prior Year =\nCALCULATE ( &#91;Total Billing], SAMEPERIODLASTYEAR ( 'Date'&#91;Date] ) )<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The KPI cards use these measures, so they respond to every slicer. Clinical Operations shows patients, admissions, average stay and emergency share. Billing and Financial Overview shows total billing, average billing per admission and billing per day of stay.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Dashboard walkthrough<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><tbody><tr><th>Dashboard<\/th><th>Audience<\/th><th>Main visuals<\/th><\/tr><tr><td>Clinical Operations<\/td><td>Clinical leaders and managers<\/td><td>KPI cards, admissions by month, conditions ranking, admission type split, age group and gender breakdown, average stay by condition<\/td><\/tr><tr><td>Billing and Financial Overview<\/td><td>Finance and executives<\/td><td>KPI cards, billing by month, billing by condition and insurer, average billing per admission, matrix of billing by condition and age group<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Matrix visual.<\/strong> Put condition on rows and age group or admission type on columns, with billing or average stay as the value. Add gradient formatting, so high-cost or long-stay cells stand out.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Tree visuals.<\/strong> Use a decomposition tree to break total billing down by condition, insurer or admission type, and to explore which factors sit behind high or low billing. Treat the ranking as a lead to check, since it shows association rather than cause.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Design choices that help readers<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clinical and financial dashboards share slicers for date, condition and hospital, so a selection carries across both.<\/li>\n\n\n\n<li>Consistent colours mean the same thing on both pages.<\/li>\n\n\n\n<li>Drill-through from a condition on the clinical page opens its billing detail.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Insights, business value and lessons learned<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What the dashboards reveal<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><em>[Clinical: give total patients, admissions and average length of stay.]<\/em><\/li>\n\n\n\n<li><em>[Conditions: name the most common condition and the one with the longest average stay.]<\/em><\/li>\n\n\n\n<li><em>[Financial: give total billing and average billing per admission.]<\/em><\/li>\n\n\n\n<li><em>[Cost drivers: name the condition or insurer with the highest billing, and its share of the total.]<\/em><\/li>\n\n\n\n<li><em>[Demographics: describe the age group with the highest billing or most admissions.]<\/em><\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Replace each prompt with the figure shown in your dashboard.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Business value<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Clinical and finance teams work from one model and one set of numbers.<\/li>\n\n\n\n<li>Managers can link conditions and stay length to cost.<\/li>\n\n\n\n<li>The matrix and tree visuals make it quick to find where billing concentrates.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Lessons for Power BI builders<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Use calculated columns for row attributes and measures for aggregation.<\/li>\n\n\n\n<li>Plan the layout before building visuals, then reuse it across dashboards.<\/li>\n\n\n\n<li>Share slicers between dashboards so users keep their context.<\/li>\n\n\n\n<li>Validate measures against a hand-checked sample before publishing.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Frequently asked questions<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is a healthcare analytics dashboard?<\/strong> It is an interactive report that summarizes patient, clinical and financial data, so managers can track activity, outcomes and cost.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What is the difference between a measure and a calculated column?<\/strong> A calculated column stores a value for each row, such as length of stay. A measure calculates an aggregate on the fly, such as total billing, and responds to filters.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>How do I build KPI cards in Power BI?<\/strong> Create a measure for each KPI, then add a card visual and place the measure in it.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>When should I use a matrix instead of a table?<\/strong> Use a matrix when you want to compare a measure across two categories, such as condition by age group, with totals and drill-down.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>What does a decomposition tree do?<\/strong> It breaks a measure into categories one level at a time, and can rank the factors linked to high or low values.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Try it yourself<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Watch the full tutorial, then download the <a target=\"_blank\" rel=\"noopener\" href=\"https:\/\/drive.google.com\/file\/d\/1fUrB3VfQ_lojjBXsqUMs2mkLpWt4wKuB\/view?usp=sharing\">project data<\/a> and build the dashboards yourself. Need a clinical or financial analytics dashboard for your organization? Contact datascientist.ca.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Case study overview: clinical insight and financial performance in one project This Power BI healthcare analytics project turns raw patient [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[21],"tags":[],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-power-bi-projects"],"_links":{"self":[{"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/comments?post=34"}],"version-history":[{"count":2,"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":78,"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/posts\/34\/revisions\/78"}],"wp:attachment":[{"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/media?parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/categories?post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.datascientist.ca\/blog\/wp-json\/wp\/v2\/tags?post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}