posthog icon indicating copy to clipboard operation
posthog copied to clipboard

Dashboards - filtering by "doesn't contain" does not work.

Open geng0610 opened this issue 1 year ago • 1 comments

Bug Description

Bug description

internal users aren't filtered out from the dashboard by using "Filter out internal and test users" option when using email "contains" as an exclusion criteria.

image

Please describe. If this affects the front-end, screenshots would be of great help.

How to reproduce

  1. Add a filter for email doesn't contain xx
  2. Save and apply the filter
  3. Click on an event to see the list of users and confirm that the those applicable aren't filtered out

Additional context

Seems like a very similar issue as this. https://github.com/PostHog/posthog/issues/23655

Debug info

- [ ] PostHog Cloud, Debug information: [please copy/paste from https://us.posthog.com/settings/project-details#variables or https://eu.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]

geng0610 avatar Aug 16 '24 16:08 geng0610

For me none of the filters work anymore when using a person's property.

ngryman avatar Aug 27 '24 22:08 ngryman

Screenshot 2024-09-25 at 11 27 10 AM

For anyone coming across this from google (like me), they recently added this to their docs which fixed the problem for me.

sdbarrington avatar Sep 24 '24 23:09 sdbarrington

Unfortunately, I don't believe that suggestion works any long, as PostHog no longer lets you update queries using the cohort property, since the property is not calculated by the time the event is created.

RobbieMcKinstry avatar Jun 05 '25 21:06 RobbieMcKinstry

It appears filtering internally does work but inconsistently.

I checked a simple Pageview trend insight that had internal users for several days. There were three days where there was only one internal user, which was properly removed. I had one other day that had 3 internal users, only one was removed and two remained. On an incomplete day (current date) there was 2 internal users and it removed both. Until this last day it did appear it was just removing the first instance of an internal user but keeping all others but the last day seems to disprove that theory.

kyleswank avatar Jul 16 '25 13:07 kyleswank