Find most recent key from table

I currently have this formula:

ANY(SELECT(Backup[Batch Number],([Barcode]=(MAXROW("Backup","_ROWNUMBER")))))

This returns me the [batch number] that correlates with the most recent [Barcode] in the Backup table.

I need this formula to return the [Batch Number] that correlates with the most recent [Barcode] that also has the same USEREMAIL() in the [Listed User Email] column.

Something like this, but this is obviously wrong:

ANY(SELECT(Backup[Batch Number],([Barcode]=AND((MAXROW("Backup","_ROWNUMBER")),([Listed User Email]=USEREMAIL()))))

Any help would be greatly appreciated

Solved Solved
0 2 116
1 ACCEPTED SOLUTION

Utilize the third parameter of MAXROW for the useremail matching condition.

View solution in original post

2 REPLIES 2

Utilize the third parameter of MAXROW for the useremail matching condition.

@Marc_Dillon Much appreciated, works a treat. I had seen that on the MAXROW info page but had misunderstood it completely.

For anyone else reading this that wants the solution equation:

ANY(SELECT(Backup[Batch Number],([Barcode]=(MAXROW("Backup","_ROWNUMBER",[Listing User Email]=USEREMAIL())))))

Top Labels in this Space