Hi, and of course βHELP!βΒ π
I need to take some values in a column and create column names from them, taking the associated values with them.
My starting table looks like this (note this is in Excel, but the table exists within an FME workflow, I am just showing it like this to make it easier to understandβ¦Β hopefully!!!!!):
Β

Β
Asset_IDΒ is my unique identifier. You will see there are either 3 or 4 duplicates of that number.
Column B βCHAR_TYPE_CDβ has the values I want to turn into new column headings, combined with the existing column headings in C, D, and E.
This is ultimately what I want it to look like:
Β

Note The values from the original Column B are transposed and combined with the previous column names.Β There are 4 individual attribute values in the original column B, namely:
CM-ELCNT;Β CM-GRPNG;Β CM-VOLVL; andΒ CM-VN
Original column C βEFFDTβ now becomes βEFFDT CM-ELCNTβ
Original column D βCHAR_VALβ now becomes βCHAR_VAL CM-ELCNTβ
Original column EΒ βSRCH_CHAR_VALβ now becomes βSRCH_CHAR_VAL CM-ELCNTβ.
This process is then repeated for the next value in original column B:
New columns created are EFFDT CM-GRPNG; CHAR_VAL CM-GRPNG;Β SRCH_CHAR_VAL CM-GRPNG and so on.
Importantly of course the relevant values of original columns A, C, D, and E all go into the newly named columns.
I have added the spreadsheet with 2 sheets in it, so you can see the data.
Any help warmlyΒ appreciated. ThankΒ you in advance.
Stu




