Model: Sales - Specifications for Fact Table: CUSTOMER ORDER LINE

On this page you will find the specifications regarding the Model: Sales and Fact Table: CUSTOMER ORDER LINE.

This model fact represents customer order lines and it is based on the fact FACT_CUSTOMER_ORDER_LINE in IFS Cloud. All models that refer to this table will have the attributes and hierarchies as described below.

Attributes

Attribute Description (where applicable)
Line StatusState (db value) of the customer order line (STATE)
Invoice BlockedDefined as the description of invoice blocked attribute (INVOICE_BLOCKED_DESC)
Supply CodeDefined as the description of the supply code (SUPPLY_CODE_DESC)
Price SourcePrice Source Type in clear text
Price Source IDPrice Source ID - Agreement number, Campaign ID etc.
Tax CodeDefined as the description of the vat (tax) code (FEE_CODE_DESC)
Demand CodeDefined as the description (client value) of demand code (DEMAND_CODE_DESC)
PriceList NoPrice list number used on order line
RentalRental Indicator TRUE/FALSE
Currency CodeThe currency code for currency based amounts
Agreement NoIf Price Source = AGREEMENT, PRICE_SOURCE_ID is displayed
Campaign IDIf Price Source = CAMPAIGN, PRICE_SOURCE_ID is displayed
Ship Days Early IntervalInterval describing the number of days an order line was shipped too early compared to planned ship date (SHIP_DAYS_EARLY)
Ship Days Late IntervalInterval describing the number of days an order line was shipped too late compared to planned ship date (SHIP_DAYS_LATE)
Ship Days Off Time IntervalInterval describing the number of deviation days an order line was shipped compared to planned ship date (SHIP_DAYS_OFF_TIME)
Customer Order LineDefined as ORDER_NO_KEY + ' - ' + LINE_NO_KEY + ' - ' + REL_NO_KEY + ' - ' + ' - ' + LINE_ITEM_NO_KEY
Sales Price
Sales Incl Tax

Measures (table to be generated as far as possible)

Aggregation of measures is based on SUM if not explicitly noted.

This section describes the basic measures in the cube. These are either measures defined in the core Information Source, in the model itself or in the ETL process. The columns have the following meaning:

Measure Calculated Y/N Contains Time Intelligence Y/N Definition/Note (where applicable) Aggregation Type Hidden Y/N Measure Expression
Avg Ship Days EarlyYYSum Ship Days Early/Count Early Order LinesAverageNDIVIDE ( [Sum Ship Days Early], [Count Early Order Lines] )
Avg Ship Days LateYNSum Ship Days Late/Count Late Order LinesAverageNdivide([Sum Ship Days Late],[Count Late Order Lines],0)
Avg Ship Days Off TimeYNSum Ship Days Off Time/(Count Early Order Lines +Count Late Order Lines)AverageNDIVIDE ( [Sum Ship Days Off Time], [Count Early Order Lines] + [Count Late Order Lines] )
Complete Order Lines %YYCount Complete Order Line / Count CO LineAverageNdivide(( [Count CO Line] - [Count Incomplete Order Line] ) , [Count CO Line])
Count Agreement Order LinesNYSumNSUM( 'CUSTOMER ORDER LINE'[COUNT_AGREEMENT_ORDER])
Count CO LineNYSumNSUM([COUNT_ORDER_LINE])
Count Campaign Order LinesNYSumNSUM([COUNT_CAMPAIGN_ORDER])
Count Complete Order LineNYSumN[Count CO Line] - [Count Incomplete Order Line]
Count Delivered Not InvoicedNYSumNSUM([COUNT_DELIVERED_NOT_INVOICED])
Count Delivered Order LineNYSumNSUM([COUNT_DELIVERED_ORDER_LINE])
Count Delivered as PlannedNYSumNSUM([COUNT_DELIVERED_AS_PLANNED])
Count Delivered as PromisedNYSumNSUM([COUNT_DELIVERED_AS_PROMISED])
Count Delivered as RequestedNYSumNSUM([COUNT_DELIVERED_AS_REQUESTED])
Count Early Order LinesNYSumNSUM([COUNT_EARLY_ORDER_LINE])
Count Incomplete Order LineNYSumNSUM([COUNT_INCOMPLETE_ORDER_LINE])
Count Late Order LinesNYSumNSUM([COUNT_LATE_ORDER_LINE])
Count On Time Order LineNYSumNSUM([COUNT_ON_TIME_ORDER_LINE])
Count Perfect Order LineNYSumNSUM([COUNT_PERFECT_ORDER_LINE])
Count PriceList Order LinesNYSumNSUM([COUNT_PRICELIST_ORDER])
Count SalesPart Order LinesNYSumNSUM([COUNT_BASEPRICE_ORDER])
Early Order Lines %YYCount Early Order Lines / Count CO LineAverageNdivide([Count Early Order Lines], [Count CO Line], BLANK())
Incomplete Order Lines %YYCount Incomplete Order Lines / Count CO LineAverageNdivide([Count Incomplete Order Line], [Count CO Line] )
Late Order Lines %YYCount Late Order Lines / Count CO LineAverageNdivide([Count Late Order Lines], [Count CO Line], BLANK())
Net Amount in Base Curr CO LineNYSumNSUM([NET_AMOUNT_BASE])
Net Amount in Order CurrNYSumNSUM([NET_AMOUNT_CURR])
Not Invoiced AmountNNSumNIF ( [Qty Sales CO Line] <> 0, ( [Qty Sales CO Line] - [Qty Invoiced CO Line] ) * ( [Net Amount in Base Curr CO Line] / [Qty Sales CO Line] ), 0 )
Not Invoiced Base Curr CO LineNNSumNSUM([NET_AMOUNT_NOT_INVOICED])
NotInvoiced Base Curr CO LineNNSumN( [Qty Sales CO Line] - [Qty Invoiced CO Line] ) * DIVIDE ( [Net Amount in Base Curr CO Line], [Qty Sales CO Line] )
On time Order Lines %YYCount On Time Order Lines / Count CO LineAverageNDIVIDE([Count On time Order Line],[Count CO Line])
Perfect Order Lines %YYCount Perfect Order Lines / Count CO LineAverageNDIVIDE ( [Count Perfect Order Line], [Count CO Line] )
ProfitYNNet Amount in Base Curr CO Line - Total Cost in Base Curr CO LineSumN[Net Amount in Base Curr CO Line]-[Total Cost in Base Curr CO Line]
Profit Margin %YYProfit Margin in Base Curr/Net Amount in Base CurrAverageNDivide( [Profit Margin in Base Curr], [Net Amount in Base Curr], BLANK())
Profit Margin GoalYNHard coded to 0.1SumN0.1
Qty Assigned CO LineNYSumNSUM([QTY_ASSIGNED])
Qty Invoiced CO LineNYSumNSUM([QTY_INVOICED])
Qty Not Invoice CO LineNYSumNSUM([QTY_NOT_INVOICED])
Qty Picked CO LineNYSumNSUM([QTY_PICKED])
Qty Returned CO LineNYSumNSUM([QTY_RETURNED])
Qty Sales CO LineNYSumNSUM([SALES_QTY])
Qty Shipdiff CO LineNYSumNSUM([QTY_SHIPDIFF])
Qty Shipped CO LineNYSumNSUM([QTY_SHIPPED])
Qty Short CO LineNNSumNSUM([QTY_SHORT])
Total Cost in Base Curr CO LineYYReporting Currency calculationSumNSUM([TOTAL_COST])
Total Order Line DiscountNNSumNSUM([TOTAL_ORDER_LINE_DISCOUNT])
Net Amount CO Line RCYYReporting Currency calculationSumNSUMX ( 'CUSTOMER ORDER LINE', DIVIDE('CUSTOMER ORDER LINE'[REP_CURR_NET_AMOUNT], [Currency Rate]) )
NotInvoiced CO Line RCNNSumN( [Qty Sales CO Line] - [Qty Invoiced CO Line] ) * DIVIDE ( [Net Amount CO Line RC], [Qty Sales CO Line] )
Total Cost CO Line RCYYReporting Currency calculationSumNSUMX ( 'CUSTOMER ORDER LINE', DIVIDE([REP_CURR_TOTAL_COST], [Currency Rate]))
Total Cost RCYYReporting Currency calculationSumN[Total Cost CO Line RC]+[Total Cost CO Charge RC]-[Total Cost RMA Line RC]-[Total Cost RMA Charge RC]
Total Order Line Discount CO Line RCYYReporting Currency calculationSumNSUMX ( 'CUSTOMER ORDER LINE', DIVIDE([TOTAL_ORDER_LINE_DISCOUNT], [Currency Rate]))

Time Intelligence Measures

Time based measures are calculated in the cube with respect to other measures. The table below defines the meaning/definition of  the different time measures. These measures need to be used with a specific time dimension hierarchy [REPORTING_DATE].[RepDateMFHy].

Measure Meaning
YTD Aggregated value for current month in current  year. E.g. for period 202010 Ytd represents sum of periods 202000-202010.
R12 For a given period, the sum all months from one year back up to the previous month. E.g. Rolling 12 for 202010 is the sum of months 201910 - 202009
PY Previous Year
The value of the corresponding month one year back. E.g. for month 202010, the value of month 201910.
YTD PY Year to Date Previous Year
Aggregated value for corresponding month one year back. E.g. for month 202010 YTD Previous Year represents sum of months 201901-201910.
R12 PY Rolling 12 (completed) Months Previous Year
For a given month, first going one year back, then taking the sum of all months from one (more) year back up to the previous month. E.g. for month 202010 the sum of month 201810-201909
Avg XXX Ytd Sum XXX YTD/Count XXX YTD
Avg XXX R12 Sum XXX R12/Count XXX R12
XXX % YTD Count XXX YTD/Count YYY YTD
XXX % R12 Count XXX R12/Count XXX R12

USED BY MODEL(S)

Model Name
CRM

Data source Information

The data source for this object is defined using IFS Developer Tool. Further Transformations are done using Power BI.

Additional information can be found in the online documentation of Information Sources.

Model Table BI Access View Referenced Information Source Recommended Access Type
CUSTOMER ORDER LINEFACT_CUSTOMER_ORDER_LINE_PQ_BIFACT_CUSTOMER_ORDER_LINE_PQOn Line