3.2.3. Create Dimensions
For the dimensions, we will use Products and Customers. Each product refers to some product line, that is the type of product, e.g. Ford T belongs to the Vintage Cars product line.
Customers belong to certain cities, they, in turn, refer to some countries, the countries are grouped into territories.
-  
First, create the Product transformation. Drag and drop the Table input node onto the worksheet and define the fields we need for the report: product
id,nameandproduct_line_id.
 
     Figure 3. Product table input -  
Then create an Insert/Update node for products:
 
     Figure 4. Insert/Update Product -  
Create the transformation for product lines:
 
     Figure 5. Product transformation -  
Finalize the first transformation with the Update node:
 
     Figure 6. Update Product -  
Create the Customer transformation in the same way, including City and Territory levels, and add it to the Product one:
 
     Figure 7. Customer transformation -  
When the transformation is ready, wrap it in the corresponding job, using the START and Success nodes and the Abort job exit node in case of an error:
 
     Figure 8. Dimensions job