You are on page 1of 18

Row-denormaliser & Row-normaliser

In this document we will see how to convert rows to columns and vice-versa. Will use “Row denormaliser” step
to convert rows to columns and “Row normaliser” step to convert columns to rows.

Scenario of Workflow

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Building workflow (Row-denormaliser: Converting rows to
columns)
1. In process studio, create a new workflow and save it as shown in below images:

2. Create one input excel files (RowData.xls) as shown in below image:

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Note: We have data in key-value pair format in input file. Our key column is “Col1” and value column is
“Col2”.

Read the input file (RowData.xls)

3. Drag and drop a “Microsoft Excel input” step to read “RowData.xls” file. Double click on it to configure it as
follows:

“Files” tab:
• Rename the step as “INF_RowData”
• In “Spread sheet type (engine)” field, select file extension as “Excel 97-2003 XLS (JXL)”
• Browse the file “RowData.xls”
• Click on “Add” button and it will added to “Selected Files” section
• Click on “Show filename(s)” button to ensure about the path and extension of the input file.

“Sheets” tab:

• Click on “Get sheetname(s)” button

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
• Select sheet as “Sheet1” from which we want to read data

“Fields” tab:

• Get fields from header row: Click on this button to fetch all the columns from the input file.
Note: You can select “Format” also if required for any column.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Click on “Preview rows” button to ensure that it is reading all the data from input file or not.

Click on “Close” >> “OK” button to complete the configuration.

4. Drag and drop “Row denormaliser” step to convert rows to columns and connect it with “INF_RowData”
step.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Double-click on it to configure its properties as shown in below images:

Before starting with the configuration of the step, please take a

Note: We have data in key-value pair format in input file (RowData.xls). Our key column is “Col1” and value
column is “Col2”.

Select “The key field” as “Col1”.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Give “Target fieldname” as shown below:

You can give any name according to your requirement. These are the fieldnames which will be available in your
output file.

Next, mention “Value fieldname” as “Col2”.

Note: We have data in key-value pair format in input file (RowData.xls). Our key column is “Col1” and value
column is “Col2”.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Now, mention the key names in “key value” column:

Note: These names should be exactly the same as available in the input file (RowData.xls).

Select “Type” as “String” from the drop-down:

Click on “OK”>> “I understand” button to complete the configuration.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
5. Now, drag & drop “Microsoft Excel Output” step and connect it with “Row denormaliser” step as shown in
below image:

Double-click on it to configure its properties as shown in below images:

“File” tab:

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
“Fields” tab:

Click on “Get Fields” button to get all the fields listed. Refer below images:

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Click “OK” button.

6. Save & Run the workflow.

You can also check the output file:

---------*-------------*---------------*---------------

Building workflow (Row-normaliser: Converting columns to rows)


1. In process studio, create a new workflow and save it as shown in below images:

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
2. Consider the output file “RowDenormalizerFile.xls” created in previous workflow (WF_RowDenormalizerDemo)
as input file for this workflow as shown in below image:

Read the input file (RowDenormalizerFile.xls)

3. Drag and drop a “Microsoft Excel input” step to read “RowDenormalizerFile.xls” file. Double click on it to
configure it as follows:

“Files” tab:
• Rename the step as “INF_RowDenormalizerFileData”
© 2018 AutomationEdge Inc. All Rights Reserved.
This document is for your company’s internal use only and may not be distributed to any third party.
• In “Spread sheet type (engine)” field, select file extension as “Excel 97-2003 XLS (JXL)”
• Browse the file “RowDenormalizerFile.xls”
• Click on “Add” button and it will added to “Selected Files” section
• Click on “Show filename(s)” button to ensure about the path and extension of the input file.

“Sheets” tab:

• Click on “Get sheetname(s)” button


• Select sheet as “Sheet1” from which we want to read data

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
“Fields” tab:

• Get fields from header row: Click on this button to fetch all the columns from the input file.
Note: You can select “Format” also if required for any column.

Click on “OK” button to complete the configuration.

4. Drag and drop “Row Normaliser” step to convert columns to rows and connect it with
“INF_RowDenormalizerFileData” step.

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Double-click on it to configure its properties as shown in below images:

Before starting with the configuration of the step, please take a

Note: The output file will contain data in key-value pair format. Our key column will be “col1” and value
column will be “col2”.

Type field: mention “col1”


Fieldname: Select all the fields from the drop-down (this drop-down is populated with the fields coming from
the input file)
Type: Mention key names as shown in image
New field: mention ‘col2’

Note: For values in “Type field”, “Type” & “new field” can be provided according to you

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Click on “OK” button to complete the configuration.

5. Now, drag & drop “Microsoft Excel Output” step and connect it with “Row Normaliser” step as shown in below
image:

Double-click on it to configure its properties as shown in below images:

“File” tab:

“Fields” tab:

Click on “Get Fields” button to get all the fields listed. Refer below images:

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
Click “OK” button.

6. Save & Run the workflow.

You can also check the output file:

© 2018 AutomationEdge Inc. All Rights Reserved.


This document is for your company’s internal use only and may not be distributed to any third party.
© 2018 AutomationEdge Inc. All Rights Reserved.
This document is for your company’s internal use only and may not be distributed to any third party.

You might also like