How to use MAXROW with Related List instead of the Table ?

How to get MAXROW from Related List instead of the Table ?
I tried this but doesn’t work

Maxrow([Related Dies], “_rownumber”)

You can’t use MAXROW() for that. This should be equivalent:

ANY(
  ORDERBY(
    [Related Dies],
    [_ROWNUMBER],
      true
  )
)
4 Likes

Can we use time stamp instead of row number?

1 Like

Thanks Steve but this will choose a random value instead of the one with maximum row number. I want the row with maximum row number (the latest one) .

Wrong.

Yes, you can use a time stamp instead of the row number.

1 Like

@Steve I am using the following expression to arrange a different table in order to fetch the last value. unfortunately, it says (ORDERBY has invalid inputs). Am i writing it wrong?

ANY(
		ORDERBY(
    		Submittal RevNo[Rev],
        Submittal RevNo[_RowNumber],
        TRUE
    )

)
ANY(
  ORDERBY(
    Submittal RevNo[Rev],
    [_RowNumber],
      TRUE
  )
)

Still giving (ORDERBY has invalid inputs) :disappointed_face:

https://help.appsheet.com/en/articles/2357312-orderby

Thank you. It is comprehensive :folded_hands:

1 Like