Column value changing with sample number and a fixed test condition onlyI searched and couldn't find another question like this. I'm guessing there is a simple solution. I'd like to realize the solution in a column formula if possible.
Please see attached data set.
I have a sample (1st column) on which I measure a critical parameter (3rd column) at varying test conditions (2nd column).
I want to create a new column ("desired column") whose value is set by a formula to be the critical parameter measurement at only one specific test condition (and so is the same for all other rows) but changes by sample. The test condition I'm selecting in the example is 15.
The purpose of "desired column" is to be able to mark/filter certain samples (and their associated other rows at other test conditions) as good or bad or distinguish them from others based on this critical parameter value at the specific test condition.
In the data set, I show I understand I can use a 'conditional if' to set a column ("Crit Param at TC=15") that has a row value of the critical parameter at the target test condition but how do I propagate this value to all other rows for the given sample?
Many thanks in advance.
Re: Column value changing with sample number and a fixed test condition only:Crit Param[Row() + (15 - :Test Condition) / 5]
My solution depends on test condition always having the same format so that my calculation of how far I am from the Test Condition = 15 row works. Curious to see if others have a more general solution. The subscript on the column name points to the row to grab the value from.
Re: Column value changing with sample number and a fixed test condition onlyAs almost always true, there are multiple ways to solve the problem. @KarenC provided a good one, and here is one that does not require the data to be in any order
dt = Current Data Table();
curSample = :Sample( Row() );
Max( :Name( "Crit Param at TC=15" )[dt << get rows where( :Sample == curSample )] );