Icon

Manipulating duration strings on multiple columns - unpivot or loop

Manipulating duration strings on multiple columns

There has been no description set for this workflow's metadata.

sample dataunpivot selected columns(duration columns)regexReplaceon ColumnValues"([0-9]{2}):([0-9]{2}):([0-9]{2})","PT$1H$2m$3s")Pivot backColumnValuesto Durationcclumns returnedto original orderget column orderiteratedurationcolumnsregexReplace $$CURRENTCOLUMN$$"([0-9]{2}):([0-9]{2}):([0-9]{2})","PT$1H$2m$3s")CurrentColumnto DurationOnly allow the "current column"to exit the looppass throughthe durationcolumnsget column ordercclumns returnedto original orderreattach"other" columnsjoin on rowidTable Creator Unpivoting String Manipulation Pivoting String to Duration ReferenceColumn Resorter Extract Table Spec Column ListLoop Start String Manipulation(Multi Column) String to Duration Column Filter Loop End (ColumnAppend) Extract Table Spec ReferenceColumn Resorter Joiner sample dataunpivot selected columns(duration columns)regexReplaceon ColumnValues"([0-9]{2}):([0-9]{2}):([0-9]{2})","PT$1H$2m$3s")Pivot backColumnValuesto Durationcclumns returnedto original orderget column orderiteratedurationcolumnsregexReplace $$CURRENTCOLUMN$$"([0-9]{2}):([0-9]{2}):([0-9]{2})","PT$1H$2m$3s")CurrentColumnto DurationOnly allow the "current column"to exit the looppass throughthe durationcolumnsget column ordercclumns returnedto original orderreattach"other" columnsjoin on rowidTable Creator Unpivoting String Manipulation Pivoting String to Duration ReferenceColumn Resorter Extract Table Spec Column ListLoop Start String Manipulation(Multi Column) String to Duration Column Filter Loop End (ColumnAppend) Extract Table Spec ReferenceColumn Resorter Joiner

Nodes

Extensions

Links