Finance - Client Profitability
This page shows how to work out the profitability of each client from sales and timesheet data, and how to present it.
The data
Section titled “The data”The example uses three sets of data.
Revenue is recorded for each project. The example assumes that the data is accurate and detailed, and that no project’s revenue is split across two or more lines, so each line has a unique project name.

Rate card
Section titled “Rate card”The rate card sets an hourly charge-out rate for each role, and puts each role’s cost at a third of its charge-out rate. That is a 200% mark-up on staff costs, which may seem high, but it is normal in many industries, because the mark-up also has to recover other costs such as rent, utilities, insurance and other overheads. Expenses that are recharged to the client do not affect the calculation.

Timesheets
Section titled “Timesheets”A good timesheet system can export the hours booked to every project, like this:

The coloured columns on the right look up each role’s rates from the rate card. Value of Time and Cost of Time multiply those rates by the hours booked.
1. Load the data
Section titled “1. Load the data”- Load the three tables into Power Query, so that they can be combined later:

2. Group the timesheets by project
Section titled “2. Group the timesheets by project”The timesheets record hours by person, but revenue is recorded by project. The hours therefore need adding up by project, so that both sets of data are at the same level.
- Create a reference to the Timesheets query.
- Name the new query Timesheets Grouped by Project.
- Use Group By in Advanced mode. Group by Start of Month, Client, P&L, Department, Sub-Department and Project Name, and sum the Hours, Value of Time [GBP] and Cost of Time [GBP] columns:
![The Group By dialog in Advanced mode, grouping by Start of Month, Client, P&L, Department, Sub-Department and Project Name, with Sum operations on Hours, Value of Time [GBP] and Cost of Time [GBP].](/_astro/finance-client-profitability-5.D0V__XmG_1FhyVS.webp)
3. Build the client profitability query
Section titled “3. Build the client profitability query”- Create a reference to the Sales query.
- Name the new query Client Profitability.
- Use Merge Queries to join it to Timesheets Grouped by Project with a Left Outer join, matching on Start of Month, Client, P&L, Department, Sub-Department and Project Name, selected in the same order in both tables:

- Expand only the Hours, Value of Time [GBP] and Cost of Time [GBP] fields from the merged column, because the other fields are already in the query:
![The expand dialog for Timesheets Grouped by Project, with only Hours, Value of Time [GBP] and Cost of Time [GBP] ticked.](/_astro/finance-client-profitability-7.HVtLJMvd_293OyB.webp)
- Move the Start of Month column to the front.
- Set a data type on every column.
Loaded to a worksheet, the query looks like this:

The Gross Profit and (Over) / Under Service columns are calculated columns added in Excel, not in Power Query. Gross profit is revenue less the cost of time. Over-servicing or under-servicing is revenue less the value of time, so a negative figure shows that more time was spent on a project than its revenue pays for.
The table now tracks the profitability of each client project, and it updates when the queries are refreshed.
4. Add a checks sheet
Section titled “4. Add a checks sheet”A checks sheet is worth adding too, to catch problems such as time booked to a project for which no revenue has been recorded. Here is an example:

5. Download the Excel file
Section titled “5. Download the Excel file”The full workbook is available here: Client Profitability - Excel File