diff --git a/generator/views/funnel_analysis_view.py b/generator/views/funnel_analysis_view.py index 4bb6a501..1ea376ca 100644 --- a/generator/views/funnel_analysis_view.py +++ b/generator/views/funnel_analysis_view.py @@ -182,6 +182,7 @@ def _event_types_lookml(self) -> List[Dict[str, Any]]: WHERE {{% condition category %}} category {{% endcondition %}} AND {{% condition event %}} event {{% endcondition %}} + AND {{% condition event_name %}} category || ' - ' || event {{% endcondition %}} AND {{% condition property_name %}} properties.key {{% endcondition %}} AND {{% condition property_value %}} property_value.key {{% endcondition %}} """ @@ -194,6 +195,7 @@ def _event_types_lookml(self) -> List[Dict[str, Any]]: "type": "string", "suggest_explore": "event_names", "suggest_dimension": "event_names.category", + "hidden": "yes", }, { "name": "event", @@ -201,6 +203,14 @@ def _event_types_lookml(self) -> List[Dict[str, Any]]: "type": "string", "suggest_explore": "event_names", "suggest_dimension": "event_names.event", + "hidden": "yes", + }, + { + "name": "event_name", + "description": "The full name of the category and event.", + "type": "string", + "suggest_explore": "event-names", + "suggest_dimension": "event_names.event_name", }, { "name": "property_name", @@ -240,6 +250,7 @@ def _event_types_lookml(self) -> List[Dict[str, Any]]: "sql": ( "SELECT category, " " event, " + " category || ' - ' || event AS event_name, " " property.key AS property_name, " " property_value.key AS property_value, " " property_value.index as property_index " @@ -259,6 +270,11 @@ def _event_types_lookml(self) -> List[Dict[str, Any]]: "type": "string", "sql": "${TABLE}.event", }, + { + "name": "event_name", + "type": "string", + "sql": "${TABLE}.event_name" + }, { "name": "property_name", "type": "string",