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.
![frank_wang_1-1660694727548.png frank_wang_1-1660694727548.png](https://community.jmp.com/t5/image/serverpage/image-id/44819i2516367C1711AA2B/image-size/medium?v=v2&px=400)
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.
![frank_wang_2-1660695559165.png frank_wang_2-1660695559165.png](https://community.jmp.com/t5/image/serverpage/image-id/44820i772C04DDEC0070B3/image-size/medium?v=v2&px=400)
Hope this helps.
Have a good day!
心若止水