Greetings,
For analyzing electrical data I want to create new columns with an absolute value formula referring to other columns whose names may be different in different data sets but start with "ID" or "IG". When I apply below the formula for every new column is the absolute value using the last measurement column found, not the column corresponding to different measurement columns. How should I express that each "ABS" formula applies to the measurement column?
cdt = Current Data Table();
ColNames = {};
ColNames=cdt<< Get Column Names(string);
for (i=1, i<= N items(ColNames), i++,
if (Substr(ColNames ,1,2) == "ID" |
Substr(ColNames ,1,2)== "IG" ,
(
col = Column(i);
New Column("ABS " || ColNames , (Formula(Abs(As Column (col)))), format("Scientific", 6, 1));