BPA data model
Fact - Sales invoice
- Fact
BPA 2.11.3518.3 · F&O reference 10.0.49 · extracted 28 November 2026
One row is one sales invoice line, identified by the sales invoice key and linked to the invoice number, line number, sales order number and sub-ledger number. It belongs to the Order to cash value chain. It holds amounts in transaction and accounting currency, so it helps answer questions about invoiced sales, charges, discounts, tax and quantities by product, customer or category.
Key: Sales invoice key.
- Kind
- Fact
- Value chains
- Order to cash
- Source table
dmo_salesinvoicefact- Columns
- 36
- Measures
- 8
Use it in Power BI and Fabric
- Power BI table
Fact - Sales invoice- Fabric / SQL table
dmo_salesinvoicefact- Column reference
'Fact - Sales invoice'[Amount (Accounting)]
- Date relationships: Accounting date key → Dim - Date (Accounting).
- Other date columns (Date (Cash discount), Date (Document), Date (Due), Date (Sales invoice), 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 (36)
| Column and description | Type | Key and relationships |
|---|---|---|
Accounting date keySource column dmo_accountingdatekeyKey that links the row to the accounting date in the accounting date table. | int64 |
|
Amount (Accounting)Source column dmo_salesinvoiceaccountingamountLine amount in the accounting currency. | decimal | — |
Amount (Charge)Source column dmo_salesinvoicechargeamountCharge amount on the line; currency not stated in the model. | decimal | — |
Amount (Discount)Source column dmo_salesinvoicediscountamountDiscount amount on the line; currency not stated in the model. | decimal | — |
Amount (Transaction)Source column dmo_salesinvoiceamountLine amount in the transaction currency. | decimal | — |
Buying party keySource column dmo_buyingpartykeyKey that links the row to the buying party table. | int64 |
|
Buying party postal address keySource column dmo_buyingpartypostaladdresskeyKey for the postal address of the buying party; no relationship is given in the model. | int64 | — |
CurrencySource column dmo_salesinvoicecurrencyCurrency code stored as text for the invoice line. | string | — |
Date (Cash discount)Source column dmo_salesinvoicecashdiscountdateDate up to which a cash discount applies. | dateTime | — |
Date (Document)Source column dmo_salesinvoicedocumentdateDate of the source document. | dateTime | — |
Date (Due)Source column dmo_salesinvoiceduedateDate on which payment is due. | dateTime | — |
Date (Sales invoice)Source column dmo_salesinvoicedateDate of the sales invoice. | dateTime | — |
Delivery TermSource column dmo_salesinvoicedeliverytermDelivery term that applies to the invoice. | string | — |
DescriptionSource column dmo_salesinvoicedescriptionFree text description of the invoice line. | string | — |
Discount codeSource column dmo_salesinvoicediscountcodeCode for the discount applied. | string | — |
Discount PercentSource column dmo_salesinvoicediscountpercentDiscount given as a percentage. | decimal | — |
Sales invoice keySource column dmo_salesinvoicekeyOwn key of the fact row, one value per invoice line. | int64 | Key |
Ledger keySource column dmo_ledgerkeyKey that links the row to the ledger dimension source table (dmo_ledgerdimension). | int64 |
|
Line number keySource column dmo_salesinvoicelinenumberkeyKey that links the row to the sales invoice line number table. | int64 |
|
Number keySource column dmo_salesinvoicenumberkeyKey that links the row to the sales invoice number table. | int64 |
|
Party keySource column dmo_partykeyKey that links the row to the party table. | int64 |
|
Payment methodSource column dmo_salesinvoicepaymentmethodPayment method set for the invoice. | string | — |
Payment termSource column dmo_salesinvoicepaymenttermPayment term set for the invoice. | string | — |
Primary nameSource column dmo_salesinvoiceprimarynamePrimary name held on the invoice row, for example of the party.low confidence | string | — |
Product keySource column dmo_productkeyKey that links the row to the product table. | int64 |
|
QuantitySource column dmo_salesinvoicequantityInvoiced quantity on the line. | decimal | — |
Sales category keySource column dmo_salescategorykeyKey that links the row to the sales category table. | int64 |
|
Sales order number keySource column dmo_salesordernumberkeyKey that links the row to the sales order number table. | int64 |
|
Storage location keySource column dmo_storagelocationkeyKey that links the row to the storage location table. | int64 |
|
Sub-ledger number keySource column dmo_subledgernumberkeyKey that links the row to the sub-ledger number table. | int64 |
|
Tax amount (Accounting)Source column dmo_salesinvoicetaxaccountingamountTax amount on the line in the accounting currency. | decimal | — |
Tax amount (Transaction)Source column dmo_salesinvoicetaxamountTax amount on the line in the transaction currency. | decimal | — |
TypeSource column dmo_salesinvoicetypeText that gives the type of the invoice line.low confidence | string | — |
Unit of measureSource column dmo_salesinvoiceunitofmeasureUnit of measure used for the invoiced quantity. | string | — |
Unit priceSource column dmo_salesinvoiceunitpricePrice per unit on the line; currency not stated in the model. | decimal | — |
Accounting dateSource column dmo_accountingdateAccounting date of the invoice line. | dateTime | — |
Measures on this table (8)
What each measure calculates, and the columns and measures it uses. All measures
Sales invoice amount (Accounting) metric
Adds up the sales invoice amount in accounting currency.
Folder: Metrics
Sales invoice amount (Charge) metric
Adds up the charge amount on sales invoices.
Folder: Metrics
Sales invoice amount (Discount) metric
Adds up the discount amount on sales invoices.
Folder: Metrics
Sales invoice amount (Transaction) metric
Adds up the sales invoice amount in transaction currency.
Folder: Metrics
Sales invoice amount metric
Adds up the transaction currency invoice amount, the charge amount and the transaction currency tax amount to give a total invoice amount.
Folder: Metrics
Uses: Fact - Sales invoice › Amount (Charge)Fact - Sales invoice › Amount (Transaction)Fact - Sales invoice › Tax amount (Transaction)
Sales invoice amount Tax (Accounting) metric
Adds up the sales invoice tax amount in accounting currency.
Folder: Metrics
Sales invoice amount Tax (Transaction) metric
Adds up the sales invoice tax amount in transaction currency.
Folder: Metrics
Sales invoice quantity metric
Adds up the quantity on sales invoice lines.
Folder: Metrics
Relationships (11)
From this table (11)
| Related table | Columns | Cardinality | Cross-filter | Status |
|---|---|---|---|---|
| Dim - Date (Accounting) | Accounting date key → Date key | Many to one | Single direction | Active |
| Dim - Buying party | Buying party key → Buying party key | Many to one | Single direction | Active |
| Ledger dimension (dmo_ledgerdimension) | Ledger key → dmo_ledgerkey | Many to one | Single direction | Active |
| Dim - Sales invoice line number | Line number key → Sales invoice line number key | Many to one | Single direction | Active |
| Dim - Sales invoice number | Number key → Sales invoice number key | Many to one | Single direction | Active |
| Dim - Party | Party key → Party key | Many to one | Single direction | Active |
| Dim - Product | Product key → Product key | Many to one | Single direction | Active |
| Dim - Sales category | Sales category key → Sales category key | Many to one | Single direction | Active |
| Dim - Sales order number | Sales order number key → Sales order number 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.