Guest User

Untitled

a guest
Jan 22nd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.72 KB | None | 0 0
  1. Sample data
  2.  
  3. Group1 - B-1234
  4. Group2 - B-1234, B-2345, B-5678
  5. Venue1 - B-5678, 1234
  6.  
  7.  
  8. with interval
  9. -----------------
  10. Groupbys: []
  11. Response: no of days * (1 record with sums of common triggers for selected locations)
  12. | date | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum |
  13. |:-----------|:-------------|:---------|:------|:------------------|:---------------|:--------------|
  14. | 2017-09-01 | 3137 | 3311 | 5000 | 3000 | 40 | 400 |
  15. | 2017-09-02 | 3137 | 3311 | 5000 | 3000 | 40 | 400 |
  16.  
  17.  
  18.  
  19. Groupbys : [GROUP, VENUE, TRIGGER]
  20. Response: No of records = (no of days) * (sum of all triggers) = 2*6 = 12
  21.  
  22. | date | group | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | venue | trigger | identifier | origin |
  23. |:-----------|:-------|:-------------|:---------|:------|:------------------|:--------------|:-----------|:-----------|:----------|:----------|:---------|
  24. | 2017-09-01 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  25. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  26. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-2345 | 2345 | beacons |
  27. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-5678 | 5678 | beacons |
  28. | 2017-09-01 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | B-5678 | 5678 | beacons |
  29. | 2017-09-01 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | 1234 | 1234 | geofences|
  30. | 2017-09-02 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  31. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  32. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-2345 | 2345 | beacons |
  33. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-5678 | 5678 | beacons |
  34. | 2017-09-02 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | B-5678 | 5678 | beacons |
  35. | 2017-09-02 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | 1234 | 1234 | geofences|
  36.  
  37. Groupbys : [GROUP, VENUE]
  38. Response: No of records = no of days * (no of locations) = 2*3=6
  39.  
  40. | date | group | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | venue |
  41. |:-----------|:-------|:-------------|:---------|:------|:------------------|:--------------|:-----------|:-----------|
  42. | 2017-09-01 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  43. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  44. | 2017-09-01 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 |
  45. | 2017-09-02 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  46. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  47. | 2017-09-02 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 |
  48.  
  49.  
  50. Groupbys : [GROUP, TRIGGER]
  51. Response: No of records = no of days * (sum of all triggers for the groups) = 2*4=8
  52.  
  53. | date | group | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | venue | trigger | identifier | origin |
  54. |:-----------|:-------|:-------------|:---------|:------|:------------------|:--------------|:-----------|:-----------|:------------|:-----------|:---------|
  55. | 2017-09-01 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  56. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  57. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-2345 | 2345 | beacons |
  58. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-5678 | 5678 | beacons |
  59. | 2017-09-02 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  60. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-1234 | 1234 | beacons |
  61. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-2345 | 2345 | beacons |
  62. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | | B-5678 | 5678 | beacons |
  63.  
  64. CASE 4
  65. Groupbys : [VENUE, TRIGGER]
  66. Response: No of records = no of days * (sum of all triggers for the venue) = 2*2=4
  67. | date | group | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | venue | trigger | identifier | origin |
  68. |:-----------|:-------|:-------------|:---------|:------|:------------------|:--------------|:-----------|:-----------|:----------|:----------|:---------
  69. | 2017-09-01 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | B-5678 | 5678 | beacons |
  70. | 2017-09-01 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | 1234 | 1234 | geofences|
  71. | 2017-09-02 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | B-5678 | 5678 | beacons |
  72. | 2017-09-02 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 | 1234 | 1234 | geofences|
  73.  
  74. CASE 5
  75. Groupbys : [TRIGGER]
  76. Response: No of records = no of days * (sum of all distinct triggers) = 2*4=8
  77. | date | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | trigger | identifier | origin |
  78. |:-----------|:-------------|:---------|:------|:------------------|:--------------|:----------|:---------|:-----------|:---------|
  79. | 2017-09-01 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | B-1234 | 1234 | beacons |
  80. | 2017-09-01 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | B-2345 | 2345 | beacons |
  81. | 2017-09-01 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | B-5678 | 5678 | beacons |
  82. | 2017-09-01 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | 1234 | 1234 | geofences|
  83. | 2017-09-02 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | B-1234 | 1234 | beacons |
  84. | 2017-09-02 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | B-2345 | 2345 | beacons |
  85. | 2017-09-02 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | B-5678 | 5678 | beacons |
  86. | 2017-09-02 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | 1234 | 1234 | geofences|
  87.  
  88. CASE 6
  89. Groupbys : [GROUP]
  90. Response: No of records =no of days * (no of groups)
  91. | date | group | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | venue |
  92. |:-----------|:-------|:-------------|:---------|:------|:------------------|:--------------|:-----------|:-----------|
  93. | 2017-09-01 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  94. | 2017-09-01 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  95. | 2017-09-02 | Group1 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  96. | 2017-09-02 | Group2 | 3137 | 3311 | 5000 | 3000 | 40 | 400 | |
  97.  
  98. CASE 7
  99. Groupbys : [VENUE]
  100. Response: No of records = no of days * (no of venues)
  101. | date | group | new_visitors | visitors | visits| recurring_visitor | dwell_average | dwell_sum | venue |
  102. |:-----------|:-------|:-------------|:---------|:------|:------------------|:--------------|:-----------|:-----------|
  103. | 2017-09-01 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 |
  104. | 2017-09-02 | | 3137 | 3311 | 5000 | 3000 | 40 | 400 | Venue1 |
Add Comment
Please, Sign In to add comment