PostHog / posthog

🦔 PostHog provides open-source product analytics, session recording, feature flagging and A/B testing that you can self-host.
https://posthog.com
Other
21.15k stars 1.25k forks source link

Why are numeric property filters limited to `>` and `<`, not also `>=` and `>=`? #24772

Open aseemk opened 3 weeks ago

aseemk commented 3 weeks ago

Feature request

Is your feature request related to a problem?

We frequently want to set numeric filters based on >= or <=. But the UI only supports < and > today:

Screenshot 2024-09-03 at 8 59 48 PM

Why is this? This is especially problematic for floats/decimals, where if you want e.g. >= 2, you have to do > 1.9999 or w/e today. Tedious, error-prone, distracting, etc.

Describe the solution you'd like

Let me filter by <= and >= as well.

Ideally for both event properties and person properties.

And ideally for strings too. 😇 https://github.com/PostHog/posthog/issues/24771

Describe alternatives you've considered

The only workaround I'm aware of today and can think of is > 1.9999 etc.

Additional context

Sorry if an issue already exists for this. Hard to search for. On that note, keywords for future searchers: "greater than or equal to", "less than or equal to", "gte", "lte".

Debug info

No response

Shree7676 commented 2 weeks ago

I would like to work upon it