BPA data model
Fact - Purchase invoice
- Fact
BPA 2.11.3518.3 · F&O reference 10.0.49 · extracted 28 November 2026
One row is one purchase invoice line, linked to an invoice number, a purchase order and a sub-ledger number. It belongs to the Procure to pay value chain. It helps answer questions about invoiced amounts, charges and tax by selling party, product, project or procurement category.
Key: Purchase invoice key.
- Kind
- Fact
- Value chains
- Procure to pay
- Source table
dmo_purchaseinvoicefact- Columns
- 40
- Measures
- 10
Use it in Power BI and Fabric
- Power BI table
Fact - Purchase invoice- Fabric / SQL table
dmo_purchaseinvoicefact- Column reference
'Fact - Purchase invoice'[Amount (Allocated charge)]
- Date relationships: Accounting date key → Dim - Date (Accounting); Date (Discount) → Dim - Date (Accounting) (inactive); Date (Invoice due) → Dim - Date (Accounting) (inactive).
- Other date columns (Date (Invoice), Line entry timestamp UTC, Accounting date) aren't related to a date table — create your own relationship to slice by them.
- Amounts in transaction currency, or with no stated currency, can mix currencies: slice by Currency, or use accounting/reporting amounts for totals.
Columns (40)
| Column and description | Type | Key and relationships |
|---|---|---|
Accounting date keySource column dmo_accountingdatekeyKey that links each row to the accounting date table. | int64 |
|
Amount (Allocated charge)Source column dmo_purchaseinvoiceallocatedchargeamountCharge amount allocated to the invoice line; currency not stated in the model. | decimal | — |
Amount (Allocated tax)Source column dmo_purchaseinvoiceallocatedtaxamountTax amount allocated to the invoice line; currency not stated in the model. | decimal | — |
Amount (Line accounting)Source column dmo_purchaseinvoicelineaccountingamountInvoice line amount in the accounting currency. | decimal | — |
Amount (Line charge)Source column dmo_purchaseinvoicelinechargeamountCharge amount on the invoice line; currency not stated in the model. | decimal | — |
Amount (Line tax)Source column dmo_purchaseinvoicelinetaxamountTax amount on the invoice line; currency not stated in the model. | decimal | — |
Amount (Line)Source column dmo_purchaseinvoicelineamountAmount of the invoice line; currency not stated in the model. | decimal | — |
Asset keySource column dmo_assetkeyKey that links to the asset table. | int64 |
|
CurrencySource column dmo_purchaseinvoicecurrencyCurrency code of the invoice line, linked to the currency table. | string |
|
Date (Discount)Source column dmo_purchaseinvoicediscountdateDiscount date of the invoice; it has an inactive link to the accounting date table. | dateTime |
|
Date (Invoice due)Source column dmo_purchaseinvoiceduedateDue date of the invoice; it has an inactive link to the accounting date table. | dateTime |
|
Date (Invoice)Source column dmo_purchaseinvoicedateDate of the invoice. | dateTime | — |
Invoice number keySource column dmo_purchaseinvoicenumberkeyKey that links to the purchase invoice number table. | int64 |
|
Purchase invoice keySource column dmo_purchaseinvoicekeyUnique key of each purchase invoice row in this table. | int64 | Key |
Ledger keySource column dmo_ledgerkeyKey that links to the ledger dimension table. | int64 |
|
Line descriptionSource column dmo_purchaseinvoicelinedescriptionFree text description of the invoice line. | string | — |
Line discount codeSource column dmo_purchaseinvoicelinediscountcodeCode of the discount applied to the line. | string | — |
Line entry timestamp UTCSource column dmo_purchaseinvoicelineentrytimestamputcDate and time, in UTC, when the line was entered. | dateTime | — |
Line number keySource column dmo_purchaseinvoicelinenumberkeyKey that links to the purchase invoice line number table. | int64 |
|
Line payment statusSource column dmo_purchaseinvoicelinepaymentstatusPayment status of the invoice line. | string | — |
Line payment termSource column dmo_purchaseinvoicelinepaymenttermPayment term set on the invoice line. | string | — |
Line posted statusSource column dmo_purchaseinvoicelinepostedstatusPosting status of the invoice line. | string | — |
Line project categorySource column dmo_purchaseinvoicelineprojectcategoryProject category assigned to the line. | string | — |
Line project line activitySource column dmo_purchaseinvoicelineprojectlineactivityProject activity assigned to the line. | string | — |
Line project line propertySource column dmo_purchaseinvoicelineprojectlinepropertyProject line property assigned to the line. | string | — |
Line unit of measureSource column dmo_purchaseinvoicelineunitofmeasureUnit of measure of the line quantity. | string | — |
Line unit priceSource column dmo_purchaseinvoicelineunitpricePrice per unit on the invoice line; currency not stated in the model. | decimal | — |
Matched document number keySource column dmo_purchasematcheddocumentnumberkeyKey that links to the purchase matched document number table. | int64 |
|
Matching document number keySource column dmo_purchasematchingdocumentnumberkeyKey for the matching document number; the model gives no link for it.low confidence | int64 | — |
Order number keySource column dmo_purchaseordernumberkeyKey that links to the purchase order number table. | int64 |
|
Party keySource column dmo_partykeyKey that links to the party table. | int64 |
|
Postal address keySource column dmo_sellingpartypostaladdresskeyKey that links to the selling party postal address table. | int64 |
|
Procurement category keySource column dmo_procurementcategorykeyKey that links to the procurement category table. | int64 |
|
Product keySource column dmo_productkeyKey that links to the product table. | int64 |
|
Project keySource column dmo_productkeyKey that links to the project table. | int64 |
|
Quantity (Line)Source column dmo_purchaseinvoicelinequantityQuantity invoiced on the line. | decimal | — |
Selling party keySource column dmo_sellingpartykeyKey that links to the selling party table. | int64 |
|
Storage location keySource column dmo_storagelocationkeyKey that links to the storage location table. | int64 |
|
Sub-ledger number keySource column dmo_subledgernumberkeyKey that links to the sub-ledger number table. | int64 |
|
Accounting dateSource column dmo_accountingdateAccounting date of the invoice line. | dateTime | — |
Measures on this table (10)
What each measure calculates, and the columns and measures it uses. All measures
Metrics › Amount
Purchase invoice amount (Allocated charge) metric
Adds up the charge amounts that were allocated to purchase invoice lines.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Fact - Purchase invoice › Amount (Allocated charge)
Used by: Purchase invoice amount (Total charge) metricPurchase invoice amount (Total) metric
Purchase invoice amount (Allocated tax) metric
Adds up the tax amounts that were allocated to purchase invoice lines.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Fact - Purchase invoice › Amount (Allocated tax)
Used by: Purchase Invoice amount (Total tax) metricPurchase invoice amount (Total) metric
Purchase invoice amount (Line charge) metric
Adds up the charge amounts recorded directly on purchase invoice lines.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Fact - Purchase invoice › Amount (Line charge)
Used by: Purchase invoice amount (Total charge) metricPurchase invoice amount (Total) metric
Purchase invoice amount (Line tax) metric
Adds up the tax amounts recorded directly on purchase invoice lines.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Fact - Purchase invoice › Amount (Line tax)
Used by: Purchase Invoice amount (Total tax) metricPurchase invoice amount (Total) metric
Purchase invoice amount (Line) metric
Adds up the line amounts of purchase invoices.
Folder: Metrics › Amount · Format: Set dynamically
Purchase invoice amount (Total charge) metric
Gives the total charge amount by adding the line charge amount and the allocated charge amount.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Purchase invoice amount (Allocated charge) metricPurchase invoice amount (Line charge) metric
Purchase Invoice amount (Total tax) metric
Gives the total tax amount by adding the line tax amount and the allocated tax amount.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Purchase invoice amount (Allocated tax) metricPurchase invoice amount (Line tax) metric
Purchase invoice amount (Total) metric
Gives the overall invoice amount by adding the line amount, line charge, line tax, allocated charge and allocated tax.
Folder: Metrics › Amount · Format: Set dynamically
Uses: Purchase invoice amount (Allocated charge) metricPurchase invoice amount (Allocated tax) metricPurchase invoice amount (Line charge) metricPurchase invoice amount (Line tax) metricPurchase invoice amount (Line) metric
Metrics
Purchase invoice count metric
Counts the distinct purchase invoice numbers.
Folder: Metrics · Format: Whole number
Purchase invoice selling party count metric
Counts the distinct selling parties on purchase invoices.
Folder: Metrics · Format: Whole number
Relationships (18)
From this table (18)
| Related table | Columns | Cardinality | Cross-filter | Status |
|---|---|---|---|---|
| Dim - Date (Accounting) | Accounting date key → Date key | Many to one | Single direction | Active |
| Dim - Asset | Asset key → Asset key | Many to one | Single direction | Active |
| Dim - Currency | Currency → Currency | Many to one | Single direction | Active |
| Dim - Date (Accounting) | Date (Discount) → Date | Many to many | Single direction | InactiveInactive: activate it in a measure (USERELATIONSHIP) |
| Dim - Date (Accounting) | Date (Invoice due) → Date | Many to many | Single direction | InactiveInactive: activate it in a measure (USERELATIONSHIP) |
| Dim - Purchase invoice number | Invoice number key → Purchase invoice number key | Many to one | Single direction | Active |
| Ledger dimension (dmo_ledgerdimension) | Ledger key → dmo_ledgerkey | Many to one | Single direction | Active |
| Dim - Purchase invoice line number | Line number key → Purchase invoice line number key | Many to one | Single direction | Active |
| Dim - Purchase matched document number | Matched document number key → Purchase matched document number key | Many to one | Single direction | Active |
| Dim - Purchase order number | Order number key → Purchase order number key | Many to one | Single direction | Active |
| Dim - Party | Party key → Party key | Many to one | Single direction | Active |
| Dim - Selling party postal address | Postal address key → Selling party postal address key | Many to one | Single direction | Active |
| Dim - Procurement category | Procurement category key → Procurement category key | Many to one | Single direction | Active |
| Dim - Product | Product key → Product key | Many to one | Single direction | Active |
| Dim - Project | Project key → Project key | Many to one | Single direction | Active |
| Dim - Selling party | Selling party key → Selling party key | Many to one | Single direction | Active |
| Dim - Storage location | Storage location key → Storage location key | Many to one | Single direction | Active |
| Dim - Sub-ledger number | Sub-ledger number key → Sub-ledger number key | Many to one | Single direction | Active |
Source F&O entities
Source F&O entities: not determined from the metadata of BPA 2.11.3518.3. The F&O entities BPA reads are listed for the model as a whole.
Building on BPA in Power BI or Fabric? Talk to Dr Dynamics.