01Case study
Reporting
Data and reporting for businesses in hospitality services, e-commerce, skincare, property and parking technology
- Status
- Live, in maintenance
- Year
- 2026
- Role
- Data and BI engineering
I build reporting for businesses across a range of industries: I connect the systems they already run, from accounting and payroll to the CRM, the online store and the inbox, into one model, then build the reports people read every week in Power BI and Excel. The deepest one so far is a services business working across around 40 sites, where profitability was reconciled by hand against fortnightly spreadsheets and the live model had errors nobody could see.
The shape of it. Clients anonymised; figures are the real ones unless marked.
01Reporting
The problem
- 01
Each site's weekly profit came from manual workbooks, rebuilt every fortnight.
- 02
The CRM wasn't in the model at all, and a full extract took about ten hours, too slow to schedule.
- 03
Daily operations reports arrived as Excel attachments in email.
02Reporting
What I built
- 01
The SQL hierarchy and measures behind the Weekly P&L, and the page itself, validated to the cent against the live add-in across three site-weeks.
- 02
Income grouped into fixed, variable and ad-hoc: 696 items routed, none left over.
- 03
Commission broken out by name instead of one blended line.
- 04
A combined reporting branch for two sites that share staff, built so it can't double count.
- 05
A CRM to SQL pipeline with a delta load, running daily at 7am.
- 06
An email pipeline: attachments saved by Power Automate trigger a Data Factory load that replaces that day's slice.
- 07
A per-site sort order for the Excel add-in, matched to each site's own workbook. Only the order changes, never a value.
- 08
A fix and a feature contributed upstream to the custom Power BI visual.
03Reporting
How it fits together
- 01
Payroll and timesheets, accounting, rate cards, CRM, emailed reports
- 02
Data Factory, daily
- 03
One Azure SQL model
- 04
Power BI with per-site security, and an Excel add-in
04Reporting
What happened
one site's real gross margin, after the fix
wage rows re-attributed across 5 sites, the same day
a full CRM extract after the delta-load redesign
sites restored to commission calculation
05Reporting
Field notes
Eight sites showed near-100% gross margins
Their payroll feeds had gone dark on 14 different dates, which ruled out one shared outage. I traced it through Data Factory to a key-resolution fallback and re-attributed 8,112 rows the same day. Every count matched the prediction made before the fix ran.
Contractor cost vanished because of a trailing space
LEN() in T-SQL ignores trailing spaces, so the key looked right and never matched.
Rows starting with W disappeared from a visual
Power BI hands a custom visual about 30,000 rows in its first segment, and this one never asked for more. The alphabetical tail fell off. If only late-alphabet rows drop at scale, suspect segment truncation.
The new financial year had no on-cost rates
The live tool would have shown $0 super, payroll tax and workers comp. Found and fixed one week in.
06Reporting
Where AI fits
None in the product. Claude Code agents drafted T-SQL and investigation notes; I ran every SQL change myself, wrapped in a transaction, with the row count predicted first.
07Reporting
Who built what
The founder owns the custom financial grid visual and built the original model and add-in. The pipelines, the Weekly P&L and the fixes above are mine.