Need the last Index in my java snippet

Hi guys,
in my simple java snippet, I need to know the Information when the end of my table is reached. I thought that I should count the rows to use that Information but unfortunately with groupby and count, Im not able to include the original columns. Then I have many different count solutions in the new column. Whats the smartest way to get the last Index in the java snippet ?

Kind Regards !

How about ROWCOUNT?

1 Like