...
You can access flows in aggregations in a simple aggregation, in filter or group by, or in a nested flow. You cannot access flows in a /wiki/spaces/ADMIN/pages/1302496836pre-filter.
More information
When you use information from a flow in an aggregation, you are bringing a flow scope property into an event scoped query. For a discussion of scope in Scuba, see Understand scope.