New Table( "First Value for a Unique ID",
Add Rows( 22 ),
New Column( "ID",
Character,
"Nominal",
Set Values(
{"2k", "2k", "2k", "2k", "2k", "2k", "l5", "l5", "l5", "l5", "l5", "l5",
"l5", "l5", "3s", "3s", "3s", "3s", "3s", "3s", "3s", "3s"}
)
),
New Column( "Value",
Numeric,
"Continuous",
Format( "Best", 12 ),
Set Values(
[., ., 51, 50, 52, 54, ., ., ., 53, 54, 55, 57, 58, ., 49, 48, 50, 52,
56, 58, 60]
)
),
New Column( "Row with First Value with/without missing 2",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula( Col Minimum( Row(), :ID, !Is Missing( :Value ) ) )
),
New Column( "Row with First Value Exclude Missing",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
If( Is Missing( :Value ),
Empty(),
Col Minimum( Row(), :ID, !Is Missing( :Value ) )
)
)
),
New Column( "Row with First Value",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
Col Mean(
If( Is Missing( :Value ),
Empty(),
Col Minimum( Row(), :ID, !Is Missing( :Value ) )
),
:ID
)
)
),
New Column( "First Value",
Numeric,
"Continuous",
Format( "Best", 12 ),
Formula(
:Value[Col Mean(
If( Is Missing( :Value ),
Empty(),
Col Minimum( Row(), :ID, !Is Missing( :Value ) )
),
:ID
)]
)
)
)