## Bug description

When you create a trend with two lines, one of which is say $pageview with a filter of browser = chrome and the other is ALSO $pageview but a different filter.

If you click on any the line you get the same users in the persons modal, even if you switch the trend line toggle in the modal.

## How to reproduce

1. Create a new trend
2. Add a $pageview trendline, and another $pageview trendline with a subfilter
3. Click on any of the lines
4. Open the persons modal and switch between the trend lines in the persons modal

## Environment

- [x] PostHog Cloud
- [ ] self-hosted PostHog (ClickHouse-based), version/commit: _please provide_
- [ ] self-hosted PostHog (Postgres-based, legacy), version/commit: _please provide_

## Additional context



#### *Thank you* for your bug report – we love squashing them!

posthog/api/utils.py
next = auto()
    previous = auto()
def get_target_entity(filter: Union[Filter, StickinessFilter]) -> Entity:
    if not filter.target_entity_id:
        raise ValueError("An entity id and the entity type must be provided to determine an entity")
    entity_math = filter.target_entity_math or "total"  
    possible_entity = retrieve_entity_from(
        filter.target_entity_id, filter.target_entity_type, entity_math, filter.events, filter.actions
    )
    if possible_entity:
        return possible_entity
    elif filter.target_entity_type:
        return Entity({"id": filter.target_entity_id, "type": filter.target_entity_type, "math": entity_math})
    else:
        raise ValueError("An entity must be provided for target entity to be determined")
def retrieve_entity_from(