모두들 안녕,
반복적으로 각 항목 그룹에 대해 Param 열에있는 "1"의 행 위치를 기반으로 Param2 열에서 데이터를 선택해야합니다 (아래 그림 참조). 나중에 선택한 데이터가 반복적으로 처리됩니다. 어떻게 할 수 있습니까?

친애하는
다음은 샘플 데이터 테이블을 다시 만든 다음 선택하는 작은 스크립트입니다.

Names Default To Here( 1 );
// recreate the example data table
dt = New Table( "Example",
Add Rows( 14 ),
New Column( "Item",
Character,
"Nominal",
Set Values( {"A", "A", "A", "A", "A", "B", "B", "B", "B", "B", "C", "C", "C", "C"} )
),
New Column( "Param",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [0.8, 1, 0.9, 1.1, 1.2, 0.9, 0.8, 1, 0.7, 0.8, 0.5, 1, 0.9, 1.1] ),
Set Display Width( 46 )
),
New Column( "Param2",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values( [2.1, 2, 2.3, 2.4, 2.5, 3.3, 3.2, 3.4, 3, 3.7, 2.5, 5.5, 5.4, 5.6] )
)
);
// select the required rows
Summarize( dt, group = by( :Item ) );
dt << clear select;
For( i = 1, i <= N Items( group ), i++,
theRow = (dt << get rows where( :Item == group[i] & :Param == 1 ))[1];
dt << select where( :Item == group[i] & Row() >= theRow, current selection( "extend" ) );
);