Hi
My understanding is you want to get the "Inspect_TTL "about "Single Count" F.
There is a easy way to do that just need transpose your data table.
Data Table( "jmp example data table" ) << Transpose(
columns( :Inspected_TTL ),
By( :DATE ),
Label( :Name( "SINGLE COUNT?" ) ),
Output Table( "Transpose of jmp example data table" )
);
Then you will get a new table like this. And the column F is the data.
Then Join the dt_tran to original dt.
Data Table( "jmp example data table" ) << Join(
With( Data Table( "Transpose of jmp example data table" ) ),
Select( :Name( "SINGLE COUNT?" ), :DATE, :Inspected_TTL, :Inspected_TTL_New ),
SelectWith( :F ),
By Matching Columns( :DATE = :DATE ),
Drop multiples( 0, 0 ),
Include Nonmatches( 0, 0 ),
Preserve main table order( 1 )
);
final dt like this one.
Hope this helps.
Have a good day!
心若止水