cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for our Discovery Summit 2024 conference, Oct. 21-24, where you’ll learn, connect, and be inspired.
Choose Language Hide Translation Bar
Fruit325
Level III

Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

Hello, I want to get some advice for splitting table. Thank you!

 

I have two columns A and B

A: Temperature 

B: Step 1 / Step2 / Step3

I split column "temperature" by column "steps". The final column names are "Temperature Step1", "Temperature Step2"...

How could I make final column name starts with suffix steps? like "Step1 Temperature", "Step2 Temperature"? I got a lot of columns so it is difficult to edit manually. 

Thanks! 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

You can edit your B column (or create new) in your original data table before split (change formula to "Temperature " || :B)

jthi_3-1727185691442.png

jthi_4-1727185700546.png

 

Or you can use recode column names with regex for example

jthi_0-1727185539471.png

jthi_1-1727185569797.png

With ^ you can "replace" start of the string and then replacement text is "Temperature "

jthi_5-1727185770755.png

 

Or you can write a script

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

You can edit your B column (or create new) in your original data table before split (change formula to "Temperature " || :B)

jthi_3-1727185691442.png

jthi_4-1727185700546.png

 

Or you can use recode column names with regex for example

jthi_0-1727185539471.png

jthi_1-1727185569797.png

With ^ you can "replace" start of the string and then replacement text is "Temperature "

jthi_5-1727185770755.png

 

Or you can write a script

-Jarmo
Fruit325
Level III

Re: Table Split: how to move the suffix before the original column names? Temperaruer Step 1 vs. Step 1 Temperature

@jthi  Thanks! That's exactly what I am looking for and it works very well!