From 30cc147cbd4e81652d73e0da19766b4d5057ce8e Mon Sep 17 00:00:00 2001 From: Andres Gregori Altamirano Date: Fri, 12 Jul 2024 18:15:20 +0000 Subject: [PATCH] Change logic --- views/sessions/session_event_packing.view.lkml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/views/sessions/session_event_packing.view.lkml b/views/sessions/session_event_packing.view.lkml index 3770076..aff1e55 100644 --- a/views/sessions/session_event_packing.view.lkml +++ b/views/sessions/session_event_packing.view.lkml @@ -44,13 +44,13 @@ view: session_event_packing { event_dimensions, ecommerce, items - )) OVER (PARTITION BY sl.sl_key ORDER BY sl.event_rank ASC) AS event_data + )) 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) + session_event_count< SAFE_CAST("@{EVENT_COUNT}" AS INT64) END) AND event_name IS NOT NULL AND {% incrementcondition %} session_date {% endincrementcondition %} -ORDER BY sl.sl_key;; +GROUP BY 1,2,3,4,5;; } dimension: session_date{ type: date