Example of add dimension promotion code
- Search table coitem_mst which includes column promotion_code in “All Cube” sheet “Cube Dim Raw Data.xls”, get fact table (View coitem, view co).
-
In extension space, load promotion_code_mst data from Data Lake or SQL or other
sources.
If it is from the Data Lake:
- Add Data Lake column after you create the query-based object in connect VariationNumber,DLDeleteIndicator,lastModified, and criteria “Where lastModified='V{InforCSIPromotionCodeLastExtractDate}'” added after variable {InforCSIPromotionCodeLastExtractDate} is created.
- Add logic, making sure the time converts to local time.
- Add the delete logic.
- Add hierarchy and gain, then publish.
- Add CSI_Promotion_Code lastmodified to source InforCSILastExtractDate.
- Add new variable V{InforCSIPromotionCodeLastExtractDate}, then publish.
- Add dimension source.
If it is from other sources, you only need to add hierarchy and gain in dimension, then publish and add the source to the dimension package. -
In Source space, add new package including:
Dimension tables:
- Src BI link site info
- Src Currate
- Src Currency
- Src Currparms
Fact tables:- Fact_Co Fact
- Fact_Coh Fact
- Fact_Coitem Fact
- Fact_Coitemh Fact
Sources:- Fact_Co
- Fact_Coh
- Fact_Coitem
- Fact_Coitemh
-
In sales model space, add new package including:
Sources:
- View_CO
- View_Coitem
- View_Currate
- View_Domestic_Currency
-
In ConformedDimension space, add new package including:
- Dimension Tables
- Currency Code Currency Code
- Customer Customer
- Product Item
- Sales Channel Sales Channel
- Site Site
- Load package from Source/Sale Model/ConformedDimension space to extension space.
- Create a new fact table based on view coitem/view co.
- Create a new hierarchy on a new fact table, set measures, and dimensions.
- Publish.
- Create a new package about a new fact table and a new dimension.