How to solve Slowly Changing Dimension

  • How to solve Slowly Changing Dimension

    Posted by DSC Communities on April 10, 2020 at 5:00 am
    • samaran ks

      Member

      April 10, 2020 at 5:00 AM

      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

      ——————————
      samaran ks
      UAE
      ——————————

    DSC Communities replied 5 years, 11 months ago 1 Member · 0 Replies
  • 0 Replies

Sorry, there were no replies found.

The discussion ‘How to solve Slowly Changing Dimension’ is closed to new replies.

Start of Discussion
0 of 0 replies June 2018
Now

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!