Skip to main content
Solved

how to filer user id by odd and even logic for an event

  • May 23, 2024
  • 1 reply
  • 192 views

how to filer user id by odd and even logic for an event

Best answer by Saish Redkar

@Shubham Wadhwa 

Pretty interesting use case. Curious to know more on what specific insights does odd/even user id might give here, assuming it’s highly subjective to your product setup and user identification.

I don’t think it’s possible to do this accurately in the available filter operators since you can’t compute this logic on the fly.

You can use the Derived properties route and try to see if operations are allowed on the user ID values. If allowed, then you can create a derived flag saying is_even/odd : true/false and use this as event filters.

View original
Did this topic help you find an answer to your question?

1 reply

Saish Redkar
Expert
Forum|alt.badge.img+10
  • Expert
  • 1377 replies
  • Answer
  • May 23, 2024

@Shubham Wadhwa 

Pretty interesting use case. Curious to know more on what specific insights does odd/even user id might give here, assuming it’s highly subjective to your product setup and user identification.

I don’t think it’s possible to do this accurately in the available filter operators since you can’t compute this logic on the fly.

You can use the Derived properties route and try to see if operations are allowed on the user ID values. If allowed, then you can create a derived flag saying is_even/odd : true/false and use this as event filters.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings