
Project directors and finance teams ask the same three questions every month. Which projects really make money? How much work has been done but not yet billed? And where are the hours going? Dynamics 365 Finance & Operations (D365 F&O) holds every answer, but spread across four transaction tables, each with its own sales distribution.
This is module 5 of our D365 F&O series. Each module follows the same path: the screens your team already uses, the tables behind them, one T-SQL notebook in Microsoft Fabric, and a Power BI report. Earlier modules covered sales margin and OTIF, inventory value, AP controls and commerce; the platform underneath is covered in D365 F&O to a Power BI board pack in Microsoft Fabric.
Watch: D365 project accounting, from the screen to Power BI
Key takeaways
- Project cost sits on the transaction (
TotalCostAmountCur); revenue sits in the sales distribution tables (ProjEmplTransSale,ProjCostTransSale,ProjRevenueTransSale). TransStatuson the sales distribution decides billing: 4 = Invoiced, 2 = Posted, not yet invoiced, which is unbilled work in progress.- Item transactions have no sales distribution table: take
ProjItemTrans.TotalSalesAmountCuras their revenue. - The demo shows £64.2M of project revenue year to date at a 57.3% margin and £223 per billable hour, across 129.5K hours.
- £36.1M of sales value is posted but not invoiced, including on projects already marked completed: the revenue-leakage review list.
Where projects live in Dynamics 365

Project management and accounting › Projects › All projects lists every project with its contract, customer, type (time and material, or fixed price) and stage. It is the ProjTable table. The demo data lives mainly in Contoso Consulting USA (USSI).
Posted project transactions and Form information

From a project, Manage › Posted transactions lists hours, items, expenses and fees together, with sales value, cost and invoice status (fully invoiced or nonchargeable). Worker names are blurred above. Right-click the sales column and choose Form information: the form is projProjectTransactionsListPage and the control TotalSalesWithIndirectSales. One screen, but several tables and a calculated total behind it.
The screens and their tables

| D365 screen | Table | What we use it for |
|---|---|---|
| All projects | ProjTable | Project, type, stage, contract and customer |
| Posted transactions (hours) | ProjEmplTrans | Hours and cost per worker transaction |
| Posted transactions (expenses) | ProjCostTrans | Expense cost |
| Posted transactions (items, fees) | ProjItemTrans, ProjRevenueTrans | Item cost and sales value; fees |
| (sales distribution) | ProjEmplTransSale, ProjCostTransSale, ProjRevenueTransSale | Revenue and billing status |
| Project invoices | ProjInvoiceJour | Invoice date and amount |
How the tables join

Each transaction joins its sales distribution on TransId (items use ProjTransId), and everything rolls up to the project on ProjId. SRSAnalysisEnums turns type and status numbers into labels such as FixedPrice or Completed. Every join also matches the company (DataAreaId).
Where it lives in Fabric

Fabric Link replicates each table into OneLake, and the Bronze lakehouse exposes it as Lakehouse_Bronze.d365.<table>. ProjEmplTransSale has 40 columns. Look at transstatus: most rows are 4 (invoiced), some are 2 (posted, not yet invoiced).
Three things to get right in Silver

- Revenue is in the distribution. Cost is
TotalCostAmountCuron the transaction; revenue isLineAmounton the matching sales distribution table. - Status 2 is unbilled WIP.
TransStatus4 = Invoiced and 2 = Posted (not yet invoiced). Split revenue by status to get invoiced revenue and unbilled work in progress. - Items have no sale table.
ProjItemTranshas no sales distribution, so take itsTotalSalesAmountCuras revenue.
As in every module, D365’s empty date (1 January 1900) is treated as blank first.
The transformation: one T-SQL notebook

The module runs as a T-SQL notebook in Fabric, attached to a warehouse and reading Bronze with three-part names. The Silver cell stacks the three sales distribution tables, then sums them per transaction: total revenue, revenue with status 4 (invoiced) and revenue with status 2 (unbilled). The rest of the cell attaches that to every hour, expense, item and fee, with its cost. Gold converts to pounds sterling and adds project type, status and group.
What you get in Power BI
Project profitability

Year to date: £64.2M of project revenue, £27.4M of cost and a 57.3% margin, at £223 per billable hour. The top fixed-price projects earn around 68%; the largest time-and-material projects around 36%. The project P&L lists hours, revenue, cost, margin and unbilled WIP per project.
Hours and unbilled WIP

129.5K hours posted this year, and £36.1M of sales value posted but not yet invoiced at the period end. Several of the largest balances sit on projects already marked completed, and many are fixed price, which bill by milestone rather than by the hour. The category table shows where hours, revenue and cost go: QA, ERP development, app development and project management, plus expenses and fees.
What the report shows

Contract type drives margin. Unbilled work in progress is large, including on completed projects, so it is the first list to review at month-end. Billable share reads 100% in the demo because every hour carries a sales value, even the few D365 marks as nonchargeable; on real data, define billable from the line property or invoice status before trusting that KPI.
Prerequisites
- Dynamics 365 Finance with Project management and accounting, linked to Microsoft Fabric with Fabric Link.
- The project tables above selected in Fabric Link (they appear in Bronze automatically through the schema shortcut).
- A Fabric capacity for the warehouse, the T-SQL notebook and the Direct Lake semantic model.
- Power BI Pro for report authors (and for viewers on capacities smaller than F64).
Next in the series
Module 6 covers procurement: spend analysis, purchase order coverage and supplier delivery performance. The last module covers production.
Frequently asked questions
Which D365 tables hold project transactions?
Hours are in ProjEmplTrans, expenses in ProjCostTrans, items in ProjItemTrans and fees in ProjRevenueTrans. Revenue and billing status are in the sales distribution tables ProjEmplTransSale, ProjCostTransSale and ProjRevenueTransSale, and project invoices in ProjInvoiceJour.
Where is project revenue stored in D365?
Not on the transaction itself but in its sales distribution: LineAmount on ProjEmplTransSale, ProjCostTransSale or ProjRevenueTransSale. Items have no sales distribution, so use TotalSalesAmountCur on ProjItemTrans.
How do I calculate unbilled WIP from D365?
Sum the sales distribution LineAmount where TransStatus is 2 (Posted, not yet invoiced). TransStatus 4 is Invoiced.
Why do fixed-price projects show unbilled WIP?
Hours on fixed-price projects carry a sales value that is not invoiced line by line; billing happens by milestone or on account. That value shows as posted but not invoiced until it is billed or recognised.
Can I report project margin without the GL?
Yes. Cost from the project transactions and revenue from the sales distributions give project margin directly, by project, type and category, without going through ledger accounts.
Is this real customer data?
No. It is Microsoft’s Contoso demo data for Dynamics 365, with dates rolled forward nine years for illustration. Worker names are blurred in the screenshots.
Project reporting from your own D365 data
If you run Dynamics 365 project accounting and want margin and unbilled WIP you can act on at month-end, we can give you live access to the demo, share the full project accounting table map (every table, key and join we used), or talk through your own set-up on a no-obligation discovery call.
Business Intelligence Atlas (Atlas BI) is a UK Microsoft Fabric and Power BI consultancy. The demo uses Microsoft’s Contoso sample data for Dynamics 365; company, project and customer names are fictional, worker names are blurred and dates have been rolled forward for illustration.
Related: D365 Commerce · D365 AP controls · D365 inventory value · D365 sales margin and OTIF · D365 F&O to a Power BI board pack.
Comments are closed