Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Split text string and reorder

$
0
0

Hi,

 

I have a column with accumulated time for different statuses and the number of times a ticket have been each statuses.

Each status information is separated with a "|" and the status name, number of times in status and accumulated time is separated with ":"

 

TIME_IN_STATUS
Open : 1 : 6 | In Progress : 2 : 10 | Customer Action Needed : 2 : 4 Enhancement : 1 : 5 | Pending : 1 : 10 | Rejected : 1 : 82 Open : 1 : 8 | Customer Action Needed : 2 : 28 | In Progress : 2 : 30

 

I would like to end up with the amount of columns equal to the maximum number of statuses which can occur (around 18, splited by "|")

Each column header should be the status name e.g. "Open" and the content should be the accumulated time.

 

It will be applied to around 2 million rows so it is important that it is pretty fast.

 

It is no problem to split the text string into multible columns but to create columns with all the "Open", "In Progress" etc. even though they are not placed in the same place in the string for each row.

 

Any help is appriciated


Viewing all articles
Browse latest Browse all 213819

Trending Articles