This content has been marked as final. Show 4 replies
One way to go is to build a 2 stage flow:
First a view with a time window. Some thing like:
select myField as field, count(*) as count .....
from myChannel [range 7 days slide 1 hour]
group by userID
Then a query that uses the view:
select field, .....
where count = 3
This will give every hour a list of user ID (events) that in the last 7 days
Please note that the events will continue to be created every 1 hour until the window will slide to such a place that count < 3.
If you want to have the event output only 1 time and not every hour you can also put it in a cache (the output of the query) and add it to where clause in the query. Something like
where count = 3 and filed not in cache.
Hope this helps