Forum Discussion
alexeisenhart
8 years agoResolver I
Calucated Columns for Aggregate Values From Another Dataset
I'm sure that this is a basic question but I can't find the solution anywhere online. I have two datasets: BoxMovement - This is the set of where boxes are moving through a system BoxID, Movem...
- 8 years ago
Thanks for your response Greg. MAXX might work also but I got it working with a Calculate and Filter. I don't know why it took so long for the use of these functions to sink in.
= CALCULATE(MAX(BoxMovement[Datetime])
, FILTER(BoxMovement, BoxMovement[BoxID] = ShippedBox[BoxID] && LEFT(BoxMovement[From Location], 5) = "ABCDE")
))
I found that LOOKUPVALUE was also useful to find the other fields from the record matching the datetime that was returned.
Greg_Deckler
8 years agoCommunity Champion
I think you want to use the MAXX function.