At a glance
- Role
- Custody Operations Specialist, U.S. Bank Global Fund Services
- Team
- Built for the trades team, who defined the causes and the key figures
- Tools
- Excel, VBA, Power BI, Power Automate
- Timeline
- 2025
- Status
- Handed over to the trades team
What it shows
- Spotting a problem outside my own team
- Normalising messy data from ten sources
- A Power BI report built around the client’s questions
- Automation end to end: from saved files to a refreshed report
Highlights
- 10 → 1 report layouts, normalised into one table
- ~2 h of copy and paste a week, replaced by one macro run
- ~100 h of manual work a year it could replace
Discover
It started over a coffee. A colleague on the trades team told me one of their largest clients wanted a weekly report on its manual trade failures: how many failed, and why.
Someone on his team copied the details from 10 differently formatted reports into an email by hand. It took about two hours every week, and the figures were easy to get wrong.
- Open 10 reportsEach with a different layout
- Copy and pasteEvery failure, by hand
- Line them upMatch columns named differently
- Add up the totalsCounted by hand
- Write the emailA block of figures for the client
5 steps · 1 milestone
- Step
- Milestone
A conversation over coffee
A colleague described the weekly report.
What the client needed
The trades team set out the causes and key figures.
The macro workbook
Ten layouts, normalised into one table.
The Power BI report
Summary, failures and successes pages.
Automatic refresh
Power Automate refreshes it when the data changes.
In the trades team’s hands
Current figures for the client at any time.
Define
The report had to answer the client’s questions:
- How many trades failed, as a share of all manual trades, and is that improving?
- Why they failed, and how many trades each cause hit.
- Which kinds of trade each failure was linked to.
- What went right: the same view for trades that settled.
The trades team defined the causes and key figures, so the report used their language. The hard part was the input: ten reports describing the same things in ten ways.
Design
Every week
- 10 source reportsSaved into a dated folder
Excel
- Macro workbookReads every file in the folder
- Helper tablesMap each layout and label to one standard
Shared cloud folder
- One clean tableEvery failure and success, in the same shape
Power BI
- Power AutomateRefreshes the report when the data changes
- The reportSummary, Failures and Successes pages
Trades team
- Client conversationsCurrent figures, on demand
How it flows
- The trades team saves the week’s 10 reports into a folder and runs the macro.
- The macro uses the helper tables to translate each layout and label into one standard.
- It writes one clean table to a shared cloud folder.
- Power Automate sees the change and refreshes the Power BI report.
- The trades team opens or shares the report whenever they need it.
Each report named its columns and causes differently. I kept those differences in helper tables built with the trades team, not hard-coded in the macro.
The report has three pages: a summary of key figures, failures by cause and trade type, and the same view for successes.
- Manual trades1,240
- Failure rate6.9%▼ 0.9 pts on last week
- Failed trades86
- Top causeSettlement instructions27 trades · 31.4% of failures
Failure rate, last 12 weeks
Key figures
| Settled | 1,154 |
|---|---|
| Settled on time | 95.1% |
| Failed | 86 |
| Highest failure rate | Corporate action, 8.3% |
| Causes logged | 6 |
Failures by cause
Failure rate by trade type
Bar length: 0–10%
Which trade types each cause hits
| Cause | Equity DVP | Bond DVP | Free of payment | Repo | Corporate action | Total |
|---|---|---|---|---|---|---|
| Settlement instructions | 9 | 7 | 7 | 2 | 2 | 27 |
| Insufficient securities | 9 | 6 | 2 | 1 | 1 | 19 |
| Unmatched at depository | 6 | 4 | 2 | 1 | 1 | 14 |
| Cash shortfall | 5 | 3 | 1 | 2 | – | 11 |
| Incorrect trade details | 3 | 2 | 2 | 1 | 1 | 9 |
| Missed cut-off | 2 | 2 | 1 | 1 | – | 6 |
- Settled1,154
- Success rate93.1%
- Settled on time1,09895.1% of settled
- Settled late561.4 days late on average
Settled late, by trade type
Deliver
This wasn’t an official project. I built it alongside my own work, then handed it to the trades team. I moved on to other projects, so I didn’t track how they used it.
Next time I’d make it more formal: agree who owns the workbook, write a guide for when a source report changes, and check in after a month.
Outcome
The two-hour weekly copy and paste became one macro run, roughly 100 hours a year. Every week’s figures now come from the same logic. The trades team could show the client causes, not just counts, whenever asked.
A second, smaller Power BI build
My own team couldn’t see how many tickets each of us resolved. With my manager’s approval, I built a Power BI dashboard showing individual and team throughput.
What’s next?
I’ve since left U.S. Bank. If I were carrying the work on, I would:
- Move the cleaning into Power Query, so the rules are easier to see and check.
- Go to the source. Settlement-instruction failures, for example, could be cut by checking instructions before trades go out.
- Track it over time, so the client sees whether each fix worked.
