3.2.4. Create Facts
For the Facts measure we will take the Orders and Order Lines.
-
First, create the Order Line transformation. Drag and drop the Table input node onto the worksheet and define the fields we need for the report:
id
,product_id
,quantity
andorder_id
: -
Then create an Insert/Update node for order lines:
-
Create the transformation for orders:
-
Finally, update the customers IDs in the table:
-
The Facts transformation is now ready:
-
Wrap the transformation in the corresponding job: