Table
MCRSalesStatsCustTable
Sales statistics
Holds sales statistics for each customer, with one record per customer account. It includes invoiced totals, cost, returns, order dates and order frequency. It also holds recency, frequency and monetary scores and a combined RFM score. It links to the customer record.
- Table name
MCRSalesStatsCustTable- Module
Commerce transactions and orders- Table group
TransactionHeader- Table type
Regular- Data per company
Yes- Configuration key
MCRCallCenter- Primary index
CustAccount- Replacement key
CustAccount- Key fields
CustAccount- Model
Foundation
Fields (26)
| Field and description | Type / EDT / enum | Mandatory | References | In public entities |
|---|---|---|---|---|
CustAccountCustomer account these statistics belong to. It points to the customer record. | String (20)CustAccount | Yes | CustTable.AccountNum | None |
AvgInvoiceAmountMSTAverage invoiced amount for the customer, in accounting currency. | RealAmountMST | No | None | |
CreatedByThe user who created the record. System field. | String (20)CreatedBy | No | None | |
CreatedDateTimeThe date and time when the record was created. System field. | UtcDateTimeCreatedDateTime | No | None | |
CustomerCreationDateTimeDate and time when the customer was created. | UtcDateTimeCreatedDateTime | No | None | |
DataAreaIdThe company (legal entity) that the record belongs to. System field. | String (4)DataAreaId | No | None | |
DirtyYes/No flag showing that new transactions exist for this customer. | EnumNoYes (enum) | No | None | |
EndDateEnd date of the period the statistics cover. | DateEndDate | No | None | |
FirstOrderDateDate of the customer's first order. | DateTransDate | No | None | |
FrequencyScoreScore for how often the customer orders, used as part of the RFM rating. | RealMCRScore | No | None | |
LastOrderDateDate of the customer's most recent order. | DateTransDate | No | None | |
MCRRFMCompositeCombined RFM (recency, frequency, monetary) score for the customer, held as a whole number. | IntegerMCRRFMComposite | No | None | |
ModifiedByThe user who last changed the record. System field. | String (20)ModifiedBy | No | None | |
ModifiedDateTimeThe date and time when the record was last changed. System field. | UtcDateTimeModifiedDateTime | No | None | |
MonetaryScoreScore for how much the customer spends, used as part of the RFM rating. | RealMCRScore | No | None | |
OrderFrequencyNumber count describing how often the customer places orders. | IntegerCounter | No | None | |
PartitionA system field for the data partition. In most environments every record has the same value. System field. | Int64Partition | No | None | |
RecencyScoreScore for how recently the customer ordered, used as part of the RFM rating. | RealMCRScore | No | None | |
RecIdA unique number that the system gives to every record. Other tables often use it to point to this record. System field. | Int64RecId | No | None | |
RecVersionA system number that changes each time the record is updated. It is used to detect conflicting updates. System field. | IntegerRecVersion | No | None | |
StartDateStart date of the period the statistics cover. | DateStartDate | No | None | |
StatLastOrderDateLast order date used for the statistics. | DateTransDate | No | None | |
TableIdA system number that identifies the table. System field. | IntegerTableId | No | None | |
TotalInvoiceAmountMSTTotal invoiced amount for the customer, in accounting currency. | RealAmountMST | No | None | |
TotalInvoiceCostAmountMSTTotal cost linked to the customer's invoiced sales, in accounting currency. | RealAmountMST | No | None | |
TotalReturnInvoicedAmountMSTTotal amount of returns invoiced for the customer, in accounting currency. | RealAmountMST | No | None |
Indexes (1)
CustAccountPrimary indexReplacement keyUnique, alternate key.
Relations (1)
Each relation joins MCRSalesStatsCustTable to another table on the fields shown.
CustTable→CustTableJoin on
CustAccount = CustTable.AccountNumZero or one MCRSalesStatsCustTable record → exactly one CustTable record
Get this data out
No public entity reads from MCRSalesStatsCustTable. Its data is only reachable through the application, a custom entity or a database export.
Need help with MCRSalesStatsCustTable in a report, an integration or a migration? Talk to Dr Dynamics.