Get latest row based on several criteria

HPS
New Member

I have an asset inspection app and have been using the following expression to get the most recent inspection result for a particular โ€œasset idโ€:

([_THISROW] = MAXROW(โ€œinspectionsโ€, โ€œtimestampโ€, ([Asset_ID] = [_THISROW].[Asset_ID])))

Works perfectly.

Now I have learned that โ€œAsset IDโ€ is not unique, but may be repeated in a different category, e.g.
โ€œasset 5โ€ could appear within different categories as shown below. This is due to a legacy numbering system.

[category][subcategory][asset id]
Electrical > Tools > asset 5
Vehicle > Offroad > asset 5
IT > Laptop > asset 5

So what i would like to do is modify to:

([_THISROW] = MAXROW(โ€œinspectionsโ€, โ€œtimestampโ€, ([category][subcategory][Asset_ID] = [_THISROW].[category][subcategory][Asset_ID])))

but the appsheet help guide says this canโ€™t be done.

Is there a solution to this?

0 2 109
2 REPLIES 2

HPS
New Member

Is the solution to create a computed column, combining all those fields

Steve
Platinum 4
Platinum 4
Top Labels in this Space