Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.
SOLVED

Delimit a cell to columns, and then to rows based upon carriage return

mkav9893
8 - Asteroid

Hi All,

 

I am exporting release notes out of jira (Excel/CSV) to import into another system. The field format in jira is exported in the following format:

 

KeyDescription

Affected Data Fields

Ticket-1Ticket 1 was the release of three new fields

|FieldNames|Type|Description|
|CustomerID1|int|unique guest identifier1|

|CustomerID2|int|unique guest identifier2|

|CustomerID3|int|unique guest identifier3|

Ticket-2Ticket 2 was the release of four new fields

|FieldNames|Type|Description|
|ScenarioA|string|Indicates the first scenario|

|ScenarioB|string|Indicates the second scenario|

|ScenarioC|string|Indicates the third scenario|

|ScenarioD|string|Indicates the fourth scenario|

 

In order for the other system to consume the information, I need to delimit column #3 to columns, and then delimit the inner contents to rows while duplicating the key and description fields to have the following output (The header within Affected Data Fields also needs to be removed):

 

KeyDescription

Affected Data Fields

 

 

Ticket-1Ticket 1 was the release of three new fields

CustomerID1

int

unique guest identifier1

Ticket-1Ticket 1 was the release of three new fields

CustomerID2

int

unique guest identifier2

Ticket-1Ticket 1 was the release of three new fields

CustomerID3

int

unique guest identifier3

Ticket-2Ticket 2 was the release of four new fields

ScenarioA

 

string

Indicates the first scenario

Ticket-2Ticket 2 was the release of four new fields

ScenarioB

 

string

Indicates the second scenario

Ticket-2Ticket 2 was the release of four new fields

ScenarioC

 

string

Indicates the third scenario

Ticket-2Ticket 2 was the release of four new fields

ScenarioD

string

INdicates the fourth scenario

 

 

Can someone please advise on what the best approach to solving this would be?

1 REPLY 1
Jonathan-Sherman
15 - Aurora
15 - Aurora

Hi @mkav9893,

 

I think this is what you're trying to achieve? I've split the data to rows using the new row delimiter \n and skipped the first row for each scenario which contains the column headers, finally splitting the data to columns and removing the split field.

 

Jonathan-Sherman_0-1589495673842.png

 

If this solves your issue please mark the answer as correct, if not let me know! I've attached my workflow for you to download if needed.

 

Regards,

Jonathan

 

Labels