Skip to content

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 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.

A Sales table with P&L, Department, Sub-Department, Client, Project Name, Revenue and Start of Month columns, holding four projects for April 2020 and a total.

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.

An April 2020 rate card with Cost % of Standard Rate at 33% and Mark-up % at 200%, a table giving each role’s standard rate, cost per hour and annual cost, and a sense check of annual billable hours based on 45 working weeks, 38 hours a week and 80% billable utilisation.

A good timesheet system can export the hours booked to every project, like this:

A Timesheets table with one row per person and project, giving P&L, department, client, project, user, role, name, date, start of month and hours, followed by coloured columns for Hourly Charge Out, Cost Rate, Value of Time and Cost of Time.

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.

  • Load the three tables into Power Query, so that they can be combined later:

The Queries pane with a folder called Source Data holding the Sales, Timesheets and Rate_Card queries.

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].

  • 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:

The Merge dialog with Client Profitability above and Timesheets Grouped by Project below, the six matching columns numbered 1 to 6 on each side, and Join Kind set to Left Outer.

  • 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.

  • 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:

A worksheet table titled Client Profitability with one row per project, showing revenue, hours, value of time and cost of time, followed by Gross Profit in GBP and per cent, and (Over) / Under Service in GBP and per cent, with a total row.

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.

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:

A Checks sheet that compares the total value of time and the total cost of time in the Client Profitability table with the totals in the Timesheets table, showing a variance of zero for each and a note that it should be nil.

The full workbook is available here: Client Profitability - Excel File