Here are 2 similar approaches to solve your issue.
Names Default To Here( 1 );
dt = Current Data Table();
dt << New Column( "Output 2",
formula(
theMax = Col Maximum( :EtOH %, :Batch );
If( theMax == :EtOH %,
:EtOH %,
.
);
)
);
Names Default To Here( 1 );
dt = Current Data Table();
dt << New Column( "Output 3" );
for each row(
theMax = Col Maximum( :EtOH %, :Batch );
If( theMax == :EtOH %,
:Output3 = :EtOH %,
:Output3 = .
);
);
Jim