Colossal8333
2 months agoNew Contributor II
Filter in map after aggregate & group by
Hi,
I am using an Aggregate step with a Group By and I am trying to get a value based on another object's value.
e.g. in the below example, I'd like to return the last_updated value where status = complete i.e. "2025-01-01"
I tried this but it just returns true/false:
$status == "Complete" ? $last_updated : null
```
[
{
"status": "Complete",
"last_updated": "2025-01-01"
},
{
"status": "Pending",
"last_updated": "2025-05-01"
}
]
```
Any help would be much appreciated!
Thanks