Healthcare analytics brief summary.
Source: Dev.to
Connection
- In the Home tab click Get Data.
- Click More → Database → PostgreSQL.
- Click Connect.
- Specify the server and database, then click OK.
- Select the tables you need and click OK.
Cleaning
In Power Query (Transform Data):
-
Rename columns to readable names.
- Double‑click a column title, edit it in Title Case, and press Enter.
-
Set correct data types (e.g., dates → Date, amounts → Decimal Number, IDs → Text).
- Select the column → Home tab → Data Type → choose the appropriate type.
-
Trim/clean text and replace blanks with nulls where appropriate.
- Select the column → Home tab → Replace Values → specify the value to replace and its replacement → OK.
-
Create helper columns (Year, Month, MonthName, YearMonth) for easier visualisation.
- Go to the Add Column tab → Custom Column.
- Use the following formula:
Year = YEAR([AppointmentDate])
Month = MONTH([AppointmentDate])
MonthName = FORMAT([AppointmentDate], "MMMM")
YearMonth = [Year] & "-" & FORMAT([Month], "00")
- Click Close & Apply.
Modeling Choices
-
Create a date table by merging the appointments enriched table with the doctor monthly metrics table.
-
Establish a relationship between the date table and the appointments enriched table:
- Go to the Model view.
- Click the three‑dot menu on the top‑right of the data table and select Manage Relationships.
- Click New.
- Set From Table → Date, choose the date column.
- Set To Table → Appointments Enriched, choose the Appointment Date column.
- Cardinality: Many‑to‑many.
- Cross filter direction: Single.
- Click Save.