Skip to content

Commit

Permalink
change session event packing
Browse files Browse the repository at this point in the history
  • Loading branch information
agregori97 committed Jul 12, 2024
1 parent b4c3df0 commit e63ab70
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions views/sessions/session_event_packing.view.lkml
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,12 @@ view: session_event_packing {
event_dimensions,
ecommerce,
items
)) WITHIN GROUP (ORDER BY sl.event_rank ASC) AS event_data
)) OVER (PARTITION BY sl.sl_key ORDER BY sl.event_rank ASC) AS event_data
FROM ${session_list_with_event_history.SQL_TABLE_NAME} AS sl
WHERE sl.sl_key IN (SELECT sl_key FROM ${session_facts.SQL_TABLE_NAME}
WHERE CASE WHEN "@{EVENT_COUNT}" = "" THEN 1=1 WHEN "@{EVENT_COUNT}" != "" THEN
session_event_count< SAFE_CAST("@{EVENT_COUNT}" AS INT64) END)
AND {% incrementcondition %} session_date {% endincrementcondition %}
GROUP BY 1, 2, 3, 4, 5
ORDER BY sl.sl_key;;
}
dimension: session_date{
Expand Down

0 comments on commit e63ab70

Please sign in to comment.