How can sum of sales amount with Slowly Changing dimension by employee (Sales person) from the below data model.
Below is the requirement and table structure.
My Data Model
Ā
Fact Table:
SalesOrderHeaser : Contains the information about OrderId, Order Date , ship method and Territory History ID
ShipMethod = 1 ā Sales by WebSite
Shipmetnod = 5 ā Sales by Employee (Sales Person)
Key point is to create measure for sum of totals if the Shipmethod = 5 then employee and shipmethd=1 then Website.
SalesOrderID is the relation ship key of lookup table SalesOrderDetail
SalesTerritoryHistory is Slowly changing dimension by Employee and Territory. Employee will be mapped to single territory by start date and end date over the period.
Employee table contains sales person id and connected to Sales Territory History(SCD table)
Employee Business Entity Id is primary key of Employee table
SalesOrderDetails : Contains Totals Sales Column and relationship with SalesOrderHeader table by SalesOrderId
Table structure
SalesOrderHeader
Ā
SalesOrderDetails
Ā
Employee
Ā
SalesTerritoryHistory
Ā
SalesTerritory
Ā
Ā
Final Output
Ā
Ā
Anybody can help on this slowly changing dimension
Please note:
This action will also remove this member from your connections and send a report to the site admin.
Please allow a few minutes for this process to complete.
Report
You have already reported this .
Welcome to our new site!
Here you will find a wealth of information created for peopleĀ that are on a mission to redefine business models with cloud techinologies, AI, automation, low code / no code applications, data, security & more to compete in the Acceleration Economy!