Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation operator ">" and custom variables of type numeric #4879

Closed
anonymous-matomo-user opened this issue Mar 20, 2014 · 2 comments
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.
Milestone

Comments

@anonymous-matomo-user
Copy link

I use custom variables of type numeric (i.e. age). Segmentation operators <, >, <=, >= assume that numeric variables are always of type string, so when I try to create a segment "age>=18" I'm getting wrong results because string "8" is considered bigger than "18".

It would be nice to have different operators for strings and numbers so user can force comparison method.

(note: as a workaround I started padding numbers with 0s so "8" now is "08". This only works for new visits but I still can't segment historic data).
Keywords: segmentation

@gaumondp
Copy link

Is this why segments for including/excluding IP is taking forever to generate?

Example Segment "Internal IP only":

visitIp>=111.222.3.0;visitIp<=111.222.4.0

and Segment "External IP only":

visitIp<111.222.3.0,visitIp>111.222.3.255

Dali

@anonymous-matomo-user anonymous-matomo-user added this to the 2.5.0 - Piwik 2.5.0 milestone Jul 8, 2014
@mattab mattab modified the milestones: Short term, Mid term Apr 7, 2015
@mattab
Copy link
Member

mattab commented Jul 14, 2016

please see: #5372

@mattab mattab closed this as completed Jul 14, 2016
@mattab mattab added the duplicate For issues that already existed in our issue tracker and were reported previously. label Jul 14, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. duplicate For issues that already existed in our issue tracker and were reported previously.
Projects
None yet
Development

No branches or pull requests

3 participants