Forum Discussion
Calucated Columns for Aggregate Values From Another Dataset
- 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.
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.