I cant find a solution to use the value of the current atlas entity in the *aggregate* function in the *filter* expression part.

Example:

```
aggregate('layer_to_aggregate','count',"field_form_layer_to_aggregate_to_aggregate","field_from_layer_to_aggregate_to_filter"="field_from_atlas_layer")

```