Data entity
RetailTransactionDiscountTransBIEntity
Entity for BI and analytics that holds discount lines applied to retail transaction sales lines. Records include discount code, origin type, customer and manual discount types, percentages, amounts, offer and bundle IDs. The key is the transaction, sales line, discount line and channel.
- Entity name
RetailTransactionDiscountTransBIEntity- Public entity name
RetailTransactionDiscountTransBIEntity- OData collection
RetailTransactionDiscountTransBIEntities- Category
Transaction- Module
Other (no module in the metadata)- Read-only
No- Data management enabled
No- Configuration key
Retail- Keys
StoreId, TerminalId, TransactionId, SaleLineNum, LineNum, Channel- Staging table
None
Use it in Power BI and Power Platform
- OData URL
https://<environment>/data/RetailTransactionDiscountTransBIEntities- Dataverse virtual table
mserp_retailtransactiondiscounttransbientity. Listed in the virtual-table catalogue. An administrator must make the virtual table visible before you can use it.- Data management
- Not enabled for import and export projects.
Data sources
RetailTransactionDiscountTrans· root
Fields (25)
| Field and description | Type / EDT / enum | Mandatory | OData / Dataverse | References | Lineage root |
|---|---|---|---|---|---|
AmountFull amount of the discount. | RealRetailDiscAmount | No | Yes | RetailTransactionDiscountTrans.Amount | |
ChannelRetail channel the transaction belongs to, pointing to the channel record. | Int64RefRecId | No | Yes | RetailChannelTable.RecId | RetailTransactionDiscountTrans.Channel |
CustomerDiscountTypeKind of customer discount, such as line, multiline or total discount. | Enum
| No | Yes | RetailTransactionDiscountTrans.CustomerDiscountType | |
DealPriceDeal price value linked to the discount. | RealRetailDealPriceValue | No | Yes | RetailTransactionDiscountTrans.DealPrice | |
DiscountAmountCash discount amount. | RealDiscAmount | No | Yes | RetailTransactionDiscountTrans.DiscountAmount | |
DiscountCostCost of the discount. | RealRetailDiscountCost | No | Yes | RetailTransactionDiscountTrans.DiscountCost | |
DiscountCodeCode that identifies the discount. | String (60)RetailDiscountCodeId | No | Yes | RetailTransactionDiscountTrans.DiscountCode | |
DiscountOriginTypeWhere the discount came from, such as customer, periodic, manual, loyalty points or tender discount. | Enum
| No | Yes | RetailTransactionDiscountTrans.DiscountOriginType | |
LineNumLine number of the discount line. | RealLineNum | Yes | Yes | RetailTransactionDiscountTrans.LineNum | |
ManualDiscountTypeKind of manual discount, such as an amount or a percentage on a line or on the total. | Enum
| No | Yes | RetailTransactionDiscountTrans.ManualDiscountType | |
OriginNumber of the location where the record originated. | String (50)RetailConnDistributionLocationId | No | Yes | RetailTransactionDiscountTrans.Origin | |
PercentageDiscount percentage. | RealDiscPct | No | Yes | RetailTransactionDiscountTrans.Percentage | |
PeriodicDiscountOfferIdID of the periodic discount offer, pointing to the periodic discount record. | String (20)RetailOfferIdEx3 | No | Yes | RetailPeriodicDiscount.OfferId | RetailTransactionDiscountTrans.PeriodicDiscountOfferId |
ReplicationCounterFromOriginCounter used to track replication of the record from where it was created. | IntegerRetailReplicationCounter | No | Yes | RetailTransactionDiscountTrans.ReplicationCounterFromOrigin | |
SaleLineNumLine number of the sales line that the discount applies to. | RealRetailTransactionSalesLineNum | No | Yes | RetailTransactionDiscountTrans.SaleLineNum | |
StoreIdNumber of the store where the transaction took place. | StringRetailStoreId | No | Yes | RetailStoreTable.StoreNumber | RetailTransactionDiscountTrans.StoreId |
TerminalIdNumber of the POS register that handled the transaction. | StringRetailTerminalId | No | Yes | RetailTerminalTable.terminalId | RetailTransactionDiscountTrans.TerminalId |
TransactionIdNumber of the retail transaction that the discount belongs to. | String (44)RetailTransactionId | Yes | Yes | RetailTransactionDiscountTrans.TransactionId | |
BundleIdID of the discount bundle that the discount is part of. | IntegerRetailDiscountBundleId | No | Yes | RetailTransactionDiscountTrans.BundleId | |
AppliedDiscountLineNumLine number of the applied discount.low confidence | RealLineNum | No | Yes | RetailTransactionDiscountTrans.AppliedDiscountLineNum | |
DiscountLineRecIdSystem record ID of a referenced discount line.low confidence | Int64RefRecId | No | Yes | RetailTransactionDiscountTrans.DiscountLineRecId | |
SysDataAreaIdThe company (legal entity) that the record belongs to. | String (4)DataAreaId | No | Yes | RetailTransactionDiscountTrans.DataAreaId | |
SourceKeyA unique number that the system gives to every record. Other tables often use it to point to this record. | Int64RecId | No | Yes | RetailTransactionDiscountTrans.RecId | |
EffectivePercentageEffective discount percentage. | RealDiscPct | No | Yes | RetailTransactionDiscountTrans.EffectivePercentage | |
CalculatedPricingPriorityNumberPriority number of the pricing, stored as a number. | IntegerRetailPricingPriorityNumber | No | Yes | RetailTransactionDiscountTrans.CalculatedPricingPriorityNumber |
Foreign keys (4)
Each field below points to the key of another table. Join on it in Power BI, or follow the link to an entity that exposes that table.
Channel→RetailChannelTable.RecId(key of RetailChannelTable)Many RetailTransactionDiscountTrans records → zero or one RetailChannelTable record
RetailChannelTable details: see RetailChannelEntity, RetailCallCenterEntity, RetailOnlineChannelEntity
PeriodicDiscountOfferId→RetailPeriodicDiscount.OfferId(key of RetailPeriodicDiscount)Many RetailTransactionDiscountTrans records → exactly one RetailPeriodicDiscount record
RetailPeriodicDiscount details: see GUPRetailDiscountEntity, GUPRetailDiscountV2Entity, RetailDiscountEntity
StoreId→RetailStoreTable.StoreNumber(key of RetailStoreTable)Many RetailTransactionDiscountTrans records → exactly one RetailStoreTable record
RetailStoreTable details: see RetailChannelEntity, RetailStoreEntity, RetailTerminalEntity
TerminalId→RetailTerminalTable.terminalId(key of RetailTerminalTable)Many RetailTransactionDiscountTrans records → exactly one RetailTerminalTable record
RetailTerminalTable details: see RetailTerminalEntity, DimAttributeRetailTerminalEntity
Need help with RetailTransactionDiscountTransBIEntity in Power BI, Power Automate or a migration? Talk to Dr Dynamics.