The following is a simplified look at our mappings in Elastic search
{
"mappings" : {
"properties": {
"userid": { "type": "keyword" },
"yyyy_mm_dd": { "type": "date", "format": "yyyy-MM-dd" },
"ts": { "type": "date"}
}
}
Usecase
eric@cream.com, 2020-03-28, 1585357301265
paul@beatles.com, 2020-03-28, 1585382231269
john@beatles.com, 2020-03-28, 1585383569863
eric@cream.com, 2020-03-28, 1585414906564
paul@beatles.com), 2020-03-29, 1585466637966
ginger@cream.com, 2020-03-29, 1585493882027
george@beatles.com, 2020-03-29, 1585486384984
paul@beatles.com, 2020-03-30, 1585562310061
jackbruce@cream.com, 2020-03-30, 1585571947493
eric@cream.com, 2020-03-30, 1585597746891
john@beatles.com, 2020-03-30, 1585555104127
ginger@cream.com, 2020-03-30, 1585563504459
freddie@queen.com, 2020-03-30, 1585578397198
My desired Visualization for Return Users
2020-03-28 - 4 return users (timeline starts there)
2020-03-29 - 1 return user (paul)
2020-03-30 - 4 return users. (paul, eric, john and ginger)