There are also two easy interactive solutions for this (other will result in same formula as Jim did provide you with).
Option 1
Right click on the column header which you wish to use for grouping (batch number) and go to New Formula Column and select Group By
![jthi_0-1701593184188.png jthi_0-1701593184188.png](https://community.jmp.com/t5/image/serverpage/image-id/59243iEC0677CFF300DE72/image-size/medium?v=v2&px=400)
Next right click on the column header which you wish to perform the calculation from (time_hour) and New Formula Column / Aggregate / Maximum (note that there is Group By [batch number])
![jthi_2-1701593289668.png jthi_2-1701593289668.png](https://community.jmp.com/t5/image/serverpage/image-id/59245i478511EFC374BEA6/image-size/medium?v=v2&px=400)
This will create you a new formula column
![jthi_3-1701593333214.png jthi_3-1701593333214.png](https://community.jmp.com/t5/image/serverpage/image-id/59246i7CD3EF8E8B79B100/image-size/medium?v=v2&px=400)
Option 2
Go to Tables/Summary and use batch number as group and max(time_hour) for statistics
![jthi_4-1701593391781.png jthi_4-1701593391781.png](https://community.jmp.com/t5/image/serverpage/image-id/59248i7F49F3397DD99D66/image-size/medium?v=v2&px=400)
Press OK to create the summary table (I think Link to original data table must be enabled for this).
Select the Max(time_hour) column, then click on it again, wait a bit, move your mouse and you should see that it is being moved (this isn't very intuitive how this works)
![jthi_5-1701594063840.png jthi_5-1701594063840.png](https://community.jmp.com/t5/image/serverpage/image-id/59250iDDD88A9AC83866EF/image-size/medium?v=v2&px=400)
Now drag and drop this column to your original data table and you should have those same maximum values there.
Practicing my "recording skills" so here is a video with both of those options
-Jarmo