Like what you see? Have a play with our trial version.

Error rendering macro 'rw-search'

null

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

 

In this example, we will cover how to create a simple transformation flow that merges data from a database table and a report by joining a common field. Therefore, this transformation will involve setting up two separate input steps (one for each of the data source), combining them by using the merge transformation step, and then storing the merged data into a database. You could always include additional steps in your own transformation flow. 



  1. Click on the Create button in the top-right corner.

  2. Then select Transformation Flow. 

    If you do not see this option, you may not have security access to transformation flows. Learn how to get access here.





  3. You will be taken to the transformation flow builder.

  4. Hover your cursor over the input steps button on the left side. A panel with a list of all data extraction steps will appear.



  5. Drag one of these steps onto the canvas. For this procedure, we will first use the single table step as an example. (Click here to learn about all the different input steps.)

  6. On doing so, a popup will appear to load data from a data source.



  7. Click on the data source that you require.

  8. Then choose the database table, and click on Submit. 



  9. The selected table's fields will appear in the transformation flow panel to be configured. 

  10. Select only the fields that you want data to be extracted from.



  11. You can make further changes to the step, such as renaming it, adding a description, etc.

  12. Once you’re done with the step configuration, click on the Apply button. 

    You must click on the Apply button to save the configuration details. Otherwise, if you click somewhere else first, you will lose the configuration details.



  13. On doing so, the data preview panel will display the data extracted from the configured database table.  



  14. Now follow the below steps to add another input step to import and configure another data source, for example data from a report.

  15. Drag the report step from the input step panel.
  16. Then select a report by providing its name in the popup window.



  17. When the report's fields appear in the next popup, click Add Report.



  18. Click on Apply when configuring the report fields in the transformation flow panel.



  19. The data preview panel will then display the configured report's data. 

  20. When you want to include the merge step in your flow, continue with the procedure below.

  21. Expand the transformation steps panel by hovering on its icon in the step builder, and then drag the Merge step onto the canvas. 



  22. Connect the database input step to the merge step.

     

  23. Similarly, create a connection between the report input step and the merge step.
  24. Next click on the merge step to configure it. The tranformation flow panel will be updated accordingly.



  25. Select a join type.

    Join Type

    Explanation

    Diagram

    Inner Join

    Returns records that have matching values in both tables.

     

    Left Outer Join

    Return all records from the left table, and the matched records from the right table.

     

    Right Outer Join

    Return all records from the right table, and the matched records from the left table.

     

    Note: If no join type is selected, the system will invoke a Cross Join. This joins each row on the left with every row on the right, and hence isn't an ideal option. However, it can be applied to generate test data.



  26. Then map the left field (from the database input step) to its counterpart on the right side (from the report input step).

  27. To add more joins, click on the Add Join button, and repeat the mapping steps.
  28. You can even delete a join field by clicking on its delete icon if required. 

     


  29. Once the joins have been added, click on Apply.



  30. The data preview panel will display the result of the merge step. You will notice the fields are colour-coded according to their input steps to help differentiate between them.



  31. You can continue to transform your data further by adding more transformation steps.

  32. Once you are ready to save your data into a writeable database, follow the steps below.

  33. Extend the output steps panel by hovering on its icon, and drag the SQL database output step onto the canvas.



  34. Connect the merge step (or the previous step in your flow) to the output step by creating a connection.
    Note: By default, the output step will be highlighted as red to signify that it contains errors. This is because it has not been configured yet.



  35. And then configure the output step through the panel on the right-side. Click here to learn more about configuring this step.

  36. You can now execute the draft flow by clicking on the run button in the top header menu. (This does a quick execution of the data rows in the data preview panel.)


  37. Or save the flow for a full execution. To do that, click on the Publish button.




  38. Then provide details in the popup that appears, such as providing a proper name, and selecting rights to access the flow.




  39. Finally, click on the Save button.

 


 

 




 

  • No labels