diff --git a/scripts/demo/d3-data.sql b/scripts/demo/d3-data.sql index ba98a601..e54843a0 100644 --- a/scripts/demo/d3-data.sql +++ b/scripts/demo/d3-data.sql @@ -254,7 +254,7 @@ INSERT INTO public.revisions (data, meta, created_by, created_at, updated_by, up ('{"rls": [], "name": null, "revision_id": "Mib8wzee3WzJKir4k5yjbP", "result_schema": [{"cast": "string", "guid": "metric", "type": "DIMENSION", "title": "metric", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "string", "value": "sales"}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "float", "guid": "ILS-USD", "type": "DIMENSION", "title": "ILS-USD", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "float", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "float", "value": 0.25}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "float", "has_auto_aggregation": false}, {"cast": "float", "guid": "ILS-EUR", "type": "DIMENSION", "title": "ILS-EUR", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "float", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "float", "value": 0.27}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "float", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "4ba1cd00-34ea-11ed-8623-bd85e3266c4f", "type": "DIMENSION", "title": "Order date (scale)", "valid": true, "hidden": false, "source": "", "formula": "DATETRUNC([Order date],[scale])", "avatar_id": null, "calc_mode": "formula", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "DATETRUNC([3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7],[scale])", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "float", "guid": "f24e7f30-34e1-11ed-af5f-633861cdac17", "type": "MEASURE", "title": "Shipping time", "valid": true, "hidden": false, "source": "", "formula": "IF [order_order_status]=\"DELIVERED\"\r\nTHEN [Delivery date and time] - [Order date and time]\r\nELSE NULL\r\nEND", "avatar_id": null, "calc_mode": "formula", "data_type": "float", "managed_by": "user", "aggregation": "avg", "description": "", "guid_formula": "IF [order_order_status]=\"DELIVERED\"\r\nTHEN [cddd9cad-52a2-4232-8898-ade9a972c864] - [60ed95e3-8c1e-4003-9d93-817e20dca1c2]\r\nELSE NULL\r\nEND", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "float", "has_auto_aggregation": false}, {"cast": "integer", "guid": "mavg-value", "type": "DIMENSION", "title": "mavg-value", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "integer", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "integer", "value": 7}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": false}, {"cast": "string", "guid": "dimension", "type": "DIMENSION", "title": "dimension", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "string", "value": "Region"}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "currency", "type": "DIMENSION", "title": "currency", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "string", "value": "ILS"}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "integer", "guid": "ago-period", "type": "DIMENSION", "title": "ago-period", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "integer", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "integer", "value": 1}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": false}, {"cast": "string", "guid": "scale", "type": "DIMENSION", "title": "scale", "valid": true, "hidden": false, "source": "", "formula": "", "avatar_id": null, "calc_mode": "parameter", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": {"type": "string", "value": "month"}, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "848f5000-0eef-11ec-bc14-6de0c4d5d690", "type": "DIMENSION", "title": "Order month", "valid": true, "hidden": false, "source": "", "formula": "Datetrunc([Order date], \"month\")", "avatar_id": null, "calc_mode": "formula", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "Datetrunc([3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7], \"month\")", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "integer", "guid": "9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2", "type": "DIMENSION", "title": "Order year", "valid": true, "hidden": false, "source": "", "formula": "YEAR([Order date])", "avatar_id": null, "calc_mode": "formula", "data_type": "integer", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "YEAR([3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7])", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": false}, {"cast": "geopolygon", "guid": "960c06a0-e3bf-11e9-9ba9-493ddd35c259", "type": "DIMENSION", "title": "Neighbourhood Polygon", "valid": true, "hidden": false, "source": "order_buyer_region_province_polygon", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "geopolygon", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "float", "guid": "a6b94410-e219-11e9-a279-0b30c0a74ab7", "type": "MEASURE", "title": "Delivered, %", "valid": true, "hidden": false, "source": "", "formula": "COUNTD(IF([order_order_status]=\"DELIVERED\",[Order ID],NULL)) / [Orders]", "avatar_id": null, "calc_mode": "formula", "data_type": "float", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "COUNTD(IF([order_order_status]=\"DELIVERED\",[52808089-ec9b-41e1-bc7c-697221f5727e],NULL)) / [c81b1fa0-e207-11e9-a279-0b30c0a74ab7]", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "float", "has_auto_aggregation": true}, {"cast": "string", "guid": "52808089-ec9b-41e1-bc7c-697221f5727e", "type": "DIMENSION", "title": "Order ID", "valid": true, "hidden": false, "source": "order_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "c81b1fa0-e207-11e9-a279-0b30c0a74ab7", "type": "MEASURE", "title": "Orders", "valid": true, "hidden": false, "source": "order_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "integer", "managed_by": "user", "aggregation": "countunique", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "56bb64a1-d220-416f-9453-5f11e1b84444", "type": "DIMENSION", "title": "Client ID", "valid": true, "hidden": false, "source": "user_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "ebfc90c0-e31f-11e9-b6c9-fbe8a8ac5350", "type": "MEASURE", "title": "Clients", "valid": true, "hidden": false, "source": "user_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "integer", "managed_by": "user", "aggregation": "countunique", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "60ed95e3-8c1e-4003-9d93-817e20dca1c2", "type": "DIMENSION", "title": "Order date and time", "valid": true, "hidden": false, "source": "order_creation_date", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7", "type": "DIMENSION", "title": "Order date", "valid": true, "hidden": false, "source": "order_creation_date", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "cddd9cad-52a2-4232-8898-ade9a972c864", "type": "DIMENSION", "title": "Delivery date and time", "valid": true, "hidden": false, "source": "order_delivery_datetime", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "cfe4a4f0-e314-11e9-9730-e7d592294dab", "type": "DIMENSION", "title": "Delivery date", "valid": true, "hidden": false, "source": "order_delivery_datetime", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "integer", "guid": "5ab73893-e624-4ac2-b3fd-28f86098388d", "type": "MEASURE", "title": "Quantity", "valid": true, "hidden": false, "source": "quantity", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "integer", "managed_by": "user", "aggregation": "sum", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": false}, {"cast": "string", "guid": "08ce262b-34ec-4123-b5cc-1c0ecac39f70", "type": "DIMENSION", "title": "Delivery service", "valid": true, "hidden": false, "source": "order_delivery_attribute_delivery_service_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "38e0b1f4-d46b-48a0-8905-6a6d1e61900d", "type": "DIMENSION", "title": "Payment type", "valid": true, "hidden": false, "source": "order_delivery_attribute_delivery_service_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "float", "guid": "fce88220-0b2e-11ec-bd48-b9e839be43ee", "type": "MEASURE", "title": "Sales", "valid": true, "hidden": false, "source": "amount", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "float", "managed_by": "user", "aggregation": "sum", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "float", "has_auto_aggregation": false}, {"cast": "string", "guid": "4664cc4f-6a50-44cc-8dfb-b76fc814a159", "type": "DIMENSION", "title": "Neighbourhood", "valid": true, "hidden": false, "source": "", "formula": "''Afeka''", "avatar_id": null, "calc_mode": "formula", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "''Afeka''", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "87a44c2c-d33e-462e-b5ad-9c5637458173", "type": "DIMENSION", "title": "User ID", "valid": true, "hidden": false, "source": "user_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "b76344a2-2cc1-4f65-bb40-f81035853bf2", "type": "DIMENSION", "title": "Platform", "valid": true, "hidden": false, "source": "order_platform", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "type": "DIMENSION", "title": "Product category 1", "valid": true, "hidden": false, "source": "category_name_level_1", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "0483c778-3a9a-4f65-8168-1beb8818580f", "type": "DIMENSION", "title": "Product category 2", "valid": true, "hidden": false, "source": "category_name_level_2", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "9fe8a3e7-b30a-49be-b75a-b54b96e87adc", "type": "DIMENSION", "title": "Product category 3", "valid": true, "hidden": false, "source": "category_name_level_3", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "b9e8f031-bbc8-4f35-ab4e-59d89208185a", "type": "DIMENSION", "title": "Product name", "valid": true, "hidden": false, "source": "model_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "bfad2733-c716-4850-a133-7311a606eed2", "type": "DIMENSION", "title": "ProductID", "valid": true, "hidden": false, "source": "model_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "float", "guid": "amount", "type": "DIMENSION", "title": "amount", "valid": true, "hidden": false, "source": "amount", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "float", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "float", "has_auto_aggregation": false}, {"cast": "string", "guid": "category_name_level_1", "type": "DIMENSION", "title": "category_name_level_1", "valid": true, "hidden": false, "source": "category_name_level_1", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "category_name_level_2", "type": "DIMENSION", "title": "category_name_level_2", "valid": true, "hidden": false, "source": "category_name_level_2", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "category_name_level_3", "type": "DIMENSION", "title": "category_name_level_3", "valid": true, "hidden": false, "source": "category_name_level_3", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "model_name", "type": "DIMENSION", "title": "model_name", "valid": true, "hidden": false, "source": "model_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_buyer_region_name", "type": "DIMENSION", "title": "Region", "valid": true, "hidden": false, "source": "order_buyer_region_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_buyer_region_population_group", "type": "DIMENSION", "title": "Population group", "valid": true, "hidden": false, "source": "order_buyer_region_population_group", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_buyer_region_province_name", "type": "DIMENSION", "title": "order_buyer_region_province_name", "valid": true, "hidden": false, "source": "", "formula": "''Afeka''", "avatar_id": null, "calc_mode": "formula", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "''Afeka''", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_buyer_region_province_polygon", "type": "DIMENSION", "title": "order_buyer_region_province_polygon", "valid": true, "hidden": false, "source": "order_buyer_region_province_polygon", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "order_creation_date", "type": "DIMENSION", "title": "order_creation_date", "valid": true, "hidden": false, "source": "order_creation_date", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_delivery_attribute_delivery_se", "type": "DIMENSION", "title": "order_delivery_attribute_delivery_service_name", "valid": true, "hidden": false, "source": "order_delivery_attribute_delivery_service_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "order_delivery_datetime", "type": "DIMENSION", "title": "order_delivery_datetime", "valid": true, "hidden": false, "source": "order_delivery_datetime", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_delivery_region_province_name", "type": "DIMENSION", "title": "order_delivery_region_province_name", "valid": true, "hidden": false, "source": "order_delivery_region_province_name", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_id", "type": "DIMENSION", "title": "order_id", "valid": true, "hidden": false, "source": "order_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "integer", "guid": "order_multiorder_order_count", "type": "DIMENSION", "title": "order_multiorder_order_count", "valid": true, "hidden": false, "source": "order_multiorder_order_count", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "integer", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_order_status", "type": "DIMENSION", "title": "order_order_status", "valid": true, "hidden": false, "source": "order_order_status", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_payment_method", "type": "DIMENSION", "title": "order_payment_method", "valid": true, "hidden": false, "source": "order_payment_method", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_payment_type", "type": "DIMENSION", "title": "order_payment_type", "valid": true, "hidden": false, "source": "order_payment_type", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_platform", "type": "DIMENSION", "title": "order_platform", "valid": true, "hidden": false, "source": "order_platform", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "integer", "guid": "quantity", "type": "DIMENSION", "title": "quantity", "valid": true, "hidden": false, "source": "quantity", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "integer", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": false}, {"cast": "boolean", "guid": "sku_is_seasonal_flag", "type": "DIMENSION", "title": "sku_is_seasonal_flag", "valid": true, "hidden": false, "source": "sku_is_seasonal_flag", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "boolean", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "boolean", "has_auto_aggregation": false}, {"cast": "string", "guid": "user_id", "type": "DIMENSION", "title": "user_id", "valid": true, "hidden": false, "source": "user_id", "formula": "", "avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "category_name_level_1_1", "type": "DIMENSION", "title": "category_name_level_1 (1)", "valid": true, "hidden": false, "source": "category_name_level_1", "formula": "", "avatar_id": "e90effb0-5365-11ed-a72f-1901cbf3c62a", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "manager", "type": "DIMENSION", "title": "manager", "valid": true, "hidden": false, "source": "manager", "formula": "", "avatar_id": "e90effb0-5365-11ed-a72f-1901cbf3c62a", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}], "source_avatars": [{"id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "title": "opensource-demo.orders", "valid": true, "is_root": true, "source_id": "5101db00-8ad4-11ee-a37c-41a7e3a6b924", "managed_by": "user"}, {"id": "e90effb0-5365-11ed-a72f-1901cbf3c62a", "title": "opensource-demo.managers", "valid": true, "is_root": false, "source_id": "54ecd0d0-8ad4-11ee-a37c-41a7e3a6b924", "managed_by": "user"}], "avatar_relations": [{"id": "e90effb1-5365-11ed-a72f-1901cbf3c62a", "valid": true, "join_type": "inner", "conditions": [{"operator": "eq", "left_part": {"source": "category_name_level_1", "calc_mode": "direct"}, "right_part": {"source": "category_name_level_1", "calc_mode": "direct"}, "condition_type": "binary"}], "managed_by": "user", "left_avatar_id": "33810c50-e1e0-11e9-a279-0b30c0a74ab7", "right_avatar_id": "e90effb0-5365-11ed-a72f-1901cbf3c62a"}], "component_errors": {"items": []}, "result_schema_aux": {"inter_dependencies": {"deps": [{"dep_field_id": "a6b94410-e219-11e9-a279-0b30c0a74ab7", "ref_field_ids": ["order_order_status", "52808089-ec9b-41e1-bc7c-697221f5727e", "c81b1fa0-e207-11e9-a279-0b30c0a74ab7"]}, {"dep_field_id": "9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2", "ref_field_ids": ["3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7"]}, {"dep_field_id": "848f5000-0eef-11ec-bc14-6de0c4d5d690", "ref_field_ids": ["3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7"]}, {"dep_field_id": "f24e7f30-34e1-11ed-af5f-633861cdac17", "ref_field_ids": ["order_order_status", "cddd9cad-52a2-4232-8898-ade9a972c864", "60ed95e3-8c1e-4003-9d93-817e20dca1c2"]}, {"dep_field_id": "4ba1cd00-34ea-11ed-8623-bd85e3266c4f", "ref_field_ids": ["3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7", "scale"]}]}}, "obligatory_filters": [], "source_collections": [{"id": "5101db00-8ad4-11ee-a37c-41a7e3a6b924", "type": "collection", "title": "orders", "valid": true, "origin": {"parameters": {"db_version": "PostgreSQL 13.12 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit", "table_name": "orders", "schema_name": "opensource-demo"}, "raw_schema": [{"name": "amount", "type": "float", "title": "amount", "nullable": false, "description": "", "native_type": {"name": "numeric", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "category_name_level_1", "type": "string", "title": "category_name_level_1", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "category_name_level_2", "type": "string", "title": "category_name_level_2", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "category_name_level_3", "type": "string", "title": "category_name_level_3", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "model_name", "type": "string", "title": "model_name", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_buyer_region_name", "type": "string", "title": "order_buyer_region_name", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_buyer_region_population_group", "type": "string", "title": "order_buyer_region_population_group", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_delivery_region_province_name", "type": "string", "title": "order_delivery_region_province_name", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_buyer_region_province_polygon", "type": "string", "title": "order_buyer_region_province_polygon", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_creation_date", "type": "genericdatetime", "title": "order_creation_date", "nullable": false, "description": "", "native_type": {"name": "timestamp", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_delivery_attribute_delivery_service_name", "type": "string", "title": "order_delivery_attribute_delivery_service_name", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_delivery_datetime", "type": "genericdatetime", "title": "order_delivery_datetime", "nullable": false, "description": "", "native_type": {"name": "timestamp", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_id", "type": "string", "title": "order_id", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_multiorder_order_count", "type": "integer", "title": "order_multiorder_order_count", "nullable": false, "description": "", "native_type": {"name": "integer", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_order_status", "type": "string", "title": "order_order_status", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_payment_method", "type": "string", "title": "order_payment_method", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_payment_type", "type": "string", "title": "order_payment_type", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_platform", "type": "string", "title": "order_platform", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "quantity", "type": "integer", "title": "quantity", "nullable": false, "description": "", "native_type": {"name": "integer", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "sku_is_seasonal_flag", "type": "boolean", "title": "sku_is_seasonal_flag", "nullable": false, "description": "", "native_type": {"name": "boolean", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "user_id", "type": "string", "title": "user_id", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}], "created_from": "PG_TABLE", "connection_id": "p8b94zefktpke"}, "sample": null, "managed_by": "user", "materialization": null}, {"id": "54ecd0d0-8ad4-11ee-a37c-41a7e3a6b924", "type": "collection", "title": "managers", "valid": true, "origin": {"parameters": {"db_version": "PostgreSQL 13.12 on aarch64-unknown-linux-musl, compiled by gcc (Alpine 12.2.1_git20220924-r10) 12.2.1 20220924, 64-bit", "table_name": "managers", "schema_name": "opensource-demo"}, "raw_schema": [{"name": "category_name_level_1", "type": "string", "title": "category_name_level_1", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "manager", "type": "string", "title": "manager", "nullable": false, "description": "", "native_type": {"name": "text", "nullable": false, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}], "created_from": "PG_TABLE", "connection_id": "p8b94zefktpke"}, "sample": null, "managed_by": "user", "materialization": null}]}', '{"geocoding_enabled": 0}', 'uid:systemId', '2023-11-24 14:19:09.073514+00', 'uid:systemId', '2023-11-24 14:19:09.073514+00', 1560965172305069060, 1507164769826639651, '{"5101db00-8ad4-11ee-a37c-41a7e3a6b924": "p8b94zefktpke", "54ecd0d0-8ad4-11ee-a37c-41a7e3a6b924": "p8b94zefktpke"}'), ('{"rls": [], "name": "", "revision_id": "5iNgg6iJznN44EvZ4mT7Lm", "result_schema": [{"cast": "integer", "guid": "72ed6ed0-17e7-11ec-9e8f-356072e14374", "type": "MEASURE", "title": "COUNTS", "valid": true, "hidden": false, "source": "", "formula": "COUNTD([ClientID])", "avatar_id": null, "calc_mode": "formula", "data_type": "integer", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "COUNTD([6cb039f6-05ac-4899-abfa-14bf93ddbdfd])", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "integer", "has_auto_aggregation": true}, {"cast": "string", "guid": "6cb039f6-05ac-4899-abfa-14bf93ddbdfd", "type": "DIMENSION", "title": "ClientID", "valid": true, "hidden": false, "source": "user_id", "formula": "", "avatar_id": "c221e500-14c8-11ee-8d76-3b5eb2be9b3d", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "user_id", "type": "DIMENSION", "title": "user_id", "valid": true, "hidden": false, "source": "user_id", "formula": "", "avatar_id": "c221e500-14c8-11ee-8d76-3b5eb2be9b3d", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "string", "guid": "order_platform", "type": "DIMENSION", "title": "order_platform", "valid": true, "hidden": false, "source": "order_platform", "formula": "", "avatar_id": "c221e500-14c8-11ee-8d76-3b5eb2be9b3d", "calc_mode": "direct", "data_type": "string", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "string", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "6fd23eb8-1f52-4df8-a700-7c97675a9ac8", "type": "DIMENSION", "title": "FirstOrderDate", "valid": true, "hidden": false, "source": "FirstOrderDate", "formula": "", "avatar_id": "c221e500-14c8-11ee-8d76-3b5eb2be9b3d", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}, {"cast": "genericdatetime", "guid": "7c6a8ac0-7474-4eb0-aeb6-b2e1ac5a5696", "type": "DIMENSION", "title": "OrderDate", "valid": true, "hidden": false, "source": "OrderDate", "formula": "", "avatar_id": "c221e500-14c8-11ee-8d76-3b5eb2be9b3d", "calc_mode": "direct", "data_type": "genericdatetime", "managed_by": "user", "aggregation": "none", "description": "", "guid_formula": "", "default_value": null, "lock_aggregation": false, "value_constraint": null, "initial_data_type": "genericdatetime", "has_auto_aggregation": false}], "source_avatars": [{"id": "c221e500-14c8-11ee-8d76-3b5eb2be9b3d", "title": "Custom SQL", "valid": true, "is_root": true, "source_id": "56eb3842-5302-11ee-85f5-aba80832f682", "managed_by": "user"}], "avatar_relations": [], "component_errors": {"items": []}, "result_schema_aux": {"inter_dependencies": {"deps": [{"dep_field_id": "72ed6ed0-17e7-11ec-9e8f-356072e14374", "ref_field_ids": ["6cb039f6-05ac-4899-abfa-14bf93ddbdfd"]}]}}, "obligatory_filters": [], "source_collections": [{"id": "56eb3842-5302-11ee-85f5-aba80832f682", "type": "collection", "title": "Custom SQL", "valid": true, "origin": {"parameters": {"subsql": "SELECT\n t1.user_id,\n t1.order_platform,\n date_trunc(''day'', t2.FirstDate) as \"FirstOrderDate\",\n date_trunc(''day'', t1.order_creation_date) as \"OrderDate\"\nFROM\n \"opensource-demo\".orders as t1,\n (SELECT\n user_id,\n MIN(order_creation_date) as FirstDate\n FROM \"opensource-demo\".orders\n GROUP BY user_id) as t2\nWHERE t1.user_id = t2.user_id"}, "raw_schema": [{"name": "user_id", "type": "string", "title": "user_id", "nullable": true, "description": "", "native_type": {"name": "text", "nullable": true, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "order_platform", "type": "string", "title": "order_platform", "nullable": true, "description": "", "native_type": {"name": "text", "nullable": true, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "FirstOrderDate", "type": "genericdatetime", "title": "FirstOrderDate", "nullable": true, "description": "", "native_type": {"name": "timestamp", "nullable": true, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}, {"name": "OrderDate", "type": "genericdatetime", "title": "OrderDate", "nullable": true, "description": "", "native_type": {"name": "timestamp", "nullable": true, "conn_type": "postgres", "native_type_class_name": "common_native_type"}, "lock_aggregation": false, "has_auto_aggregation": false}], "created_from": "PG_SUBSELECT", "connection_id": "p8b94zefktpke"}, "sample": null, "managed_by": "user", "materialization": null}]}', '{"geocoding_enabled": 0}', 'uid:systemId', '2023-11-24 14:19:50.718692+00', 'uid:systemId', '2023-11-24 14:19:50.718692+00', 1560965520767845382, 1507164767695933207, '{"56eb3842-5302-11ee-85f5-aba80832f682": "p8b94zefktpke"}'), ('{"salt": "0.5828470246218467", "tabs": [{"id": "7g", "items": [{"id": "OgN", "data": {"text": "># **Marketplace Sales**"}, "type": "text", "namespace": "default"}, {"id": "Mge", "data": {"text": "# \n\n```\nUse selectors to filter \nand modify charts\n```"}, "type": "text", "namespace": "default"}, {"id": "jvG", "data": {"size": "l", "text": "Main KPIs", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "vnv", "data": {"title": "Region", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "order_buyer_region_name", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"order_buyer_region_name": ""}, "namespace": "default"}, {"id": "ag6", "data": {"title": "Neighbourhood", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "4664cc4f-6a50-44cc-8dfb-b76fc814a159", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"4664cc4f-6a50-44cc-8dfb-b76fc814a159": ""}, "namespace": "default"}, {"id": "OgL", "data": {"title": "Scale", "source": {"fieldName": "scale", "showTitle": true, "elementType": "select", "defaultValue": "month", "acceptableValues": [{"title": "month", "value": "month"}, {"title": "week", "value": "week"}, {"title": "day", "value": "day"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"scale": "month"}, "namespace": "default"}, {"id": "JBj", "data": {"title": "Order Date", "source": {"isRange": true, "datasetId": "qvnkqz8s0wdqf", "fieldType": "date", "showTitle": true, "elementType": "date", "defaultValue": "__interval_2019-01-01T00:00:00.000Z_2020-02-13T00:00:00.000Z", "datasetFieldId": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7": "__interval_2019-01-01T00:00:00.000Z_2020-02-13T00:00:00.000Z"}, "namespace": "default"}, {"id": "ag1", "data": {"tabs": [{"id": "vnn", "title": "Title 1", "params": {}, "chartId": "lqifl0t8hhrga", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "K89", "data": {"tabs": [{"id": "G8J", "title": "Title 1", "params": {}, "chartId": "mrjgm1522opyb", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Zg5", "data": {"tabs": [{"id": "L4l", "title": "Title 1", "params": {}, "chartId": "kphekyrgzony9", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "4aO", "data": {"tabs": [{"id": "82B", "title": "Title 1", "params": {}, "chartId": "8d528ok4io2ax", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "QjG", "data": {"size": "l", "text": "Regions & Neighbourhoods", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "onD", "data": {"text": "#\n```\nDrill-down with click to row\nand switch charts with tabs"}, "type": "text", "namespace": "default"}, {"id": "23L", "data": {"tabs": [{"id": "0AZ", "title": "By region", "params": {}, "chartId": "otlio209vg4md", "isDefault": true, "autoHeight": false, "description": ""}, {"id": "gA8", "title": "by population", "params": {}, "chartId": "nskhn3dhudj0c", "isDefault": false, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "Pk3", "data": {"size": "l", "text": "Products", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "BW5", "data": {"text": "#\n```\nDrill-down by click on ⊞\nand download data clicking on …"}, "type": "text", "namespace": "default"}, {"id": "b08", "data": {"tabs": [{"id": "R1Z", "title": "Table by products", "params": {}, "chartId": "gldagp2ekyge5", "isDefault": true, "autoHeight": false, "description": "#\n```\nⓘ Add descriptions for widgets and metrics "}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "V4y", "data": {"text": "#\n```\nGo to links to other business systems\nand dashboards with predefined filters"}, "type": "text", "namespace": "default"}, {"id": "9Qk", "data": {"tabs": [{"id": "YL9", "title": "Top products by Sales", "params": {}, "chartId": "tyqnt9bovid8i", "isDefault": true, "autoHeight": false, "description": "```\nUse built-in pagination for tables"}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "rXo", "data": {"size": "l", "text": "Clients & Cohorts", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "nOP", "data": {"text": ""}, "type": "text", "layout": {"h": 2, "w": 12}, "orderId": 28, "namespace": "default", "defaultOrderId": 28}, {"id": "1R4", "data": {"text": "#\n```\nFilter data from different sources\nusing global selectors"}, "type": "text", "namespace": "default"}, {"id": "WzG", "data": {"title": "Platform", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "b76344a2-2cc1-4f65-bb40-f81035853bf2", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"b76344a2-2cc1-4f65-bb40-f81035853bf2": ""}, "namespace": "default"}, {"id": "k3a", "data": {"title": "First Order", "source": {"isRange": true, "datasetId": "infciq1c89je7", "fieldType": "date", "showTitle": true, "elementType": "date", "defaultValue": "__interval_2019-04-01T00:00:00.000Z_2020-02-29T00:00:00.000Z", "datasetFieldId": "6fd23eb8-1f52-4df8-a700-7c97675a9ac8", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"6fd23eb8-1f52-4df8-a700-7c97675a9ac8": "__interval_2019-04-01T00:00:00.000Z_2020-02-29T00:00:00.000Z"}, "namespace": "default"}, {"id": "dLA", "data": {"tabs": [{"id": "eG3", "title": "Cohorts based on Google Analytics", "params": {}, "chartId": "27zw2juwp5emr", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "gvY", "data": {"tabs": [{"id": "0Yd", "title": "Regions and Neighbourhoods shipping time", "params": {}, "chartId": "16yxd7gojiacq", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}], "title": "Overview", "layout": [{"h": 2, "i": "OgN", "w": 13, "x": 0, "y": 0}, {"h": 4, "i": "Mge", "w": 23, "x": 13, "y": 0}, {"h": 2, "i": "jvG", "w": 13, "x": 0, "y": 2}, {"h": 2, "i": "vnv", "w": 6, "x": 0, "y": 4}, {"h": 2, "i": "ag6", "w": 7, "x": 6, "y": 4}, {"h": 2, "i": "OgL", "w": 6, "x": 13, "y": 4}, {"h": 2, "i": "JBj", "w": 17, "x": 19, "y": 4}, {"h": 5, "i": "ag1", "w": 9, "x": 0, "y": 6}, {"h": 5, "i": "K89", "w": 10, "x": 9, "y": 6}, {"h": 5, "i": "Zg5", "w": 9, "x": 19, "y": 6}, {"h": 5, "i": "4aO", "w": 8, "x": 28, "y": 6}, {"h": 4, "i": "QjG", "w": 9, "x": 0, "y": 11}, {"h": 4, "i": "onD", "w": 10, "x": 9, "y": 11}, {"h": 13, "i": "23L", "w": 19, "x": 0, "y": 15}, {"h": 4, "i": "Pk3", "w": 4, "x": 0, "y": 28}, {"h": 4, "i": "BW5", "w": 15, "x": 4, "y": 28}, {"h": 18, "i": "b08", "w": 19, "x": 0, "y": 32}, {"h": 4, "i": "V4y", "w": 17, "x": 19, "y": 28}, {"h": 18, "i": "9Qk", "w": 17, "x": 19, "y": 32}, {"h": 4, "i": "rXo", "w": 7, "x": 0, "y": 50}, {"h": 2, "i": "nOP", "w": 18, "x": 18, "y": 50}, {"h": 4, "i": "1R4", "w": 11, "x": 7, "y": 50}, {"h": 2, "i": "WzG", "w": 6, "x": 18, "y": 52}, {"h": 2, "i": "k3a", "w": 12, "x": 24, "y": 52}, {"h": 20, "i": "dLA", "w": 36, "x": 0, "y": 54}, {"h": 17, "i": "gvY", "w": 17, "x": 19, "y": 11}], "aliases": {"default": [["b76344a2-2cc1-4f65-bb40-f81035853bf2", "order_platform"]]}, "connections": [{"to": "vnn", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "vnn", "kind": "ignore"}, {"to": "G8J", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "G8J", "kind": "ignore"}, {"to": "vnv", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "vnv", "kind": "ignore"}, {"to": "ag6", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "ag6", "kind": "ignore"}, {"to": "OgL", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "OgL", "kind": "ignore"}, {"to": "JBj", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "JBj", "kind": "ignore"}, {"to": "L4l", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "L4l", "kind": "ignore"}, {"to": "82B", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "82B", "kind": "ignore"}, {"to": "0AZ", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "0AZ", "kind": "ignore"}, {"to": "gA8", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "gA8", "kind": "ignore"}, {"to": "R1Z", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "R1Z", "kind": "ignore"}, {"to": "YL9", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "YL9", "kind": "ignore"}, {"to": "k3a", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "k3a", "kind": "ignore"}, {"to": "k3a", "from": "JBj", "kind": "ignore"}, {"to": "JBj", "from": "k3a", "kind": "ignore"}, {"to": "OgL", "from": "JBj", "kind": "ignore"}, {"to": "JBj", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "vnv", "kind": "ignore"}, {"to": "vnv", "from": "OgL", "kind": "ignore"}, {"to": "k3a", "from": "vnv", "kind": "ignore"}, {"to": "vnv", "from": "k3a", "kind": "ignore"}, {"to": "vnv", "from": "JBj", "kind": "ignore"}, {"to": "ag6", "from": "JBj", "kind": "ignore"}, {"to": "ag6", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "ag6", "kind": "ignore"}, {"to": "vnn", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "vnn", "kind": "ignore"}, {"to": "G8J", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "G8J", "kind": "ignore"}, {"to": "L4l", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "L4l", "kind": "ignore"}, {"to": "82B", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "82B", "kind": "ignore"}, {"to": "0AZ", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "0AZ", "kind": "ignore"}, {"to": "gA8", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "gA8", "kind": "ignore"}, {"to": "R1Z", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "R1Z", "kind": "ignore"}, {"to": "YL9", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "YL9", "kind": "ignore"}]}, {"id": "LoG", "items": [{"id": "2RQ", "data": {"size": "l", "text": "Column chart", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "g20", "data": {"tabs": [{"id": "08y", "title": "Stacked by dimension", "params": {}, "chartId": "mrjgmvxq6yo2b", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "ynW", "data": {"tabs": [{"id": "2j7", "title": "Grouped by dimension", "params": {}, "chartId": "05xu0e1so1o6p", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "Edn", "data": {"tabs": [{"id": "58e", "title": "Title 1", "params": {}, "chartId": "ch96cs0b54by1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "epA", "data": {"size": "l", "text": "Pie chart", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "7KE", "data": {"size": "l", "text": "KPIs", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "AWA", "data": {"tabs": [{"id": "NPY", "title": "Total", "params": {}, "chartId": "tyqntb2nacawi", "isDefault": true, "autoHeight": false, "description": "for the whole period"}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "3zr", "data": {"tabs": [{"id": "M91", "title": "Title 1", "params": {}, "chartId": "05xu0bafozgep", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "abX", "data": {"tabs": [{"id": "v06", "title": "Title 1", "params": {}, "chartId": "491y4iy424wmt", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "JbE", "data": {"tabs": [{"id": "OPe", "title": "Title 1", "params": {}, "chartId": "y3vsy9b5iv86n", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "31r", "data": {"text": "># **Charts types**"}, "type": "text", "namespace": "default"}, {"id": "Jol", "data": {"tabs": [{"id": "OQz", "title": "Title 1", "params": {}, "chartId": "ch96cpyzl3hm1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "pvR", "data": {"size": "l", "text": "Pivot table", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "E1D", "data": {"tabs": [{"id": "5LK", "title": "Simpe table", "params": {}, "chartId": "x2urxes3f5vwm", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "e64", "data": {"size": "l", "text": "Table", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "74n", "data": {"tabs": [{"id": "KdO", "title": "Title 1", "params": {}, "chartId": "gldagxhlpx4q5", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "N91", "data": {"size": "l", "text": "Scatter plot", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "AXP", "data": {"tabs": [{"id": "N9B", "title": "One measure", "params": {}, "chartId": "y3vsyf3u2yaan", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "65e", "data": {"tabs": [{"id": "lY4", "title": "Table with formating and hierarchy", "params": {}, "chartId": "nskhn4ak09vwc", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}], "title": "Chart types", "layout": [{"h": 2, "i": "2RQ", "w": 36, "x": 0, "y": 3}, {"h": 15, "i": "g20", "w": 12, "x": 24, "y": 5}, {"h": 15, "i": "ynW", "w": 12, "x": 12, "y": 5}, {"h": 14, "i": "Edn", "w": 12, "x": 0, "y": 23}, {"h": 3, "i": "epA", "w": 12, "x": 0, "y": 20}, {"h": 3, "i": "7KE", "w": 36, "x": 0, "y": 37}, {"h": 6, "i": "AWA", "w": 9, "x": 18, "y": 40}, {"h": 6, "i": "3zr", "w": 9, "x": 9, "y": 40}, {"h": 6, "i": "abX", "w": 9, "x": 0, "y": 40}, {"h": 6, "i": "JbE", "w": 9, "x": 27, "y": 40}, {"h": 3, "i": "31r", "w": 36, "x": 0, "y": 0}, {"h": 12, "i": "Jol", "w": 36, "x": 0, "y": 69}, {"h": 3, "i": "pvR", "w": 36, "x": 0, "y": 66}, {"h": 17, "i": "E1D", "w": 18, "x": 0, "y": 49}, {"h": 3, "i": "e64", "w": 36, "x": 0, "y": 46}, {"h": 20, "i": "74n", "w": 18, "x": 0, "y": 84}, {"h": 3, "i": "N91", "w": 18, "x": 0, "y": 81}, {"h": 15, "i": "AXP", "w": 12, "x": 0, "y": 5}, {"h": 17, "i": "65e", "w": 18, "x": 18, "y": 49}], "aliases": {}, "connections": []}, {"id": "MNb", "items": [{"id": "yzR", "data": {"text": "Examples of using drill-down and tree features in DataLens"}, "type": "text", "namespace": "default"}, {"id": "Dj2", "data": {"tabs": [{"id": "znn", "title": "Title 1", "params": {}, "chartId": "mrjgmyu6wn56b", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "b10", "data": {"text": "The hierarchy can be created in charts. To create one, click on the \"+\" button on the top panel of the chart.\n\nAfter adding a hierarchy to the chart, you can interactively drill down on it. Example:\n**Product category 1 → Product category 2 → … → Product name**\n\nUsing \"bread crumbs\" you can return to the desired level or open the entire level."}, "type": "text", "namespace": "default"}, {"id": "BJD", "data": {"tabs": [{"id": "PJW", "title": "Title 1", "params": {}, "chartId": "sxpms78wdpaqh", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "V0K", "data": {"text": "You can add Hierarchy to different section, for example in X. "}, "type": "text", "namespace": "default"}, {"id": "AgL", "data": {"tabs": [{"id": "Nkz", "title": "Title 1", "params": {}, "chartId": "gldagp2ekyge5", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "M4e", "data": {"text": "The tree is created using the TREE() function\n\n1. You need create an array describing the tree, with the full path for each node.\nThe sequence of values in the array determines the sequence of tree expansion.\n\nYou can use built-in function or create array at database.\n`TREE( ARRAY([Product category 1],[Product category 2],[Product category 3])`\n\n\n\n2. After the array is created based on it, you can create a tree using the formula: `TREE()''.\n\n\n##### Limitations of the current version\n- Only in flat tables\n- Without pagination\n- Without totals\n- Without remembering the state of disclosure\n- One tree/hierarchy per chart\n- No trees in selectors\n- Intermediate nodes of the tree must be stored in the source, even those for which there is no data"}, "type": "text", "namespace": "default"}, {"id": "kjW", "data": {"text": "># **Hierarchy**"}, "type": "text", "namespace": "default"}], "title": "Hierarchy", "layout": [{"h": 2, "i": "yzR", "w": 36, "x": 0, "y": 3}, {"h": 18, "i": "Dj2", "w": 17, "x": 0, "y": 5}, {"h": 18, "i": "b10", "w": 19, "x": 17, "y": 5}, {"h": 13, "i": "BJD", "w": 17, "x": 0, "y": 53}, {"h": 13, "i": "V0K", "w": 19, "x": 17, "y": 53}, {"h": 17, "i": "AgL", "w": 17, "x": 0, "y": 23}, {"h": 17, "i": "M4e", "w": 19, "x": 17, "y": 23}, {"h": 3, "i": "kjW", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "3p5", "items": [{"id": "9kY", "data": {"size": "l", "text": "Header L", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "rdR", "data": {"size": "s", "text": "Header S", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "1ZA", "data": {"text": "# **Headers**\nHeaders are used to separate different sections of dashboards and for navigation in Content panel."}, "type": "text", "namespace": "default"}, {"id": "noj", "data": {"text": "**You can add Emojis to charts and dashboards:**\nRise and Fall ▲ ● ▼ 🔺 🔻 ↗️ ↘️\nInfo and links 🔗 ⓘ 🗯️ 🗯 ❔\nWarning ⚠ ⚠️ ❗ ❕ 📛 🔔 ⚡ 🚨\nTrue/False ✅ / ❌ ⊞ ⊟\nSearch 🔍 \nCompetitors and partners ⚔️ 🤍 ⭐\nChart type legend 📊 📈 💹\nText legend: ■ ● — ◻︎\n🟥 🟧 🟨 🟩 🟦 🟪 🟫 ⬛ ⬜\n🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫ ⚪\n"}, "type": "text", "namespace": "default"}, {"id": "kJv", "data": {"size": "l", "text": "Emoji", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "eD4", "data": {"text": "You can add various types of objects to a dashboard and format them using formatting functions and markdown."}, "type": "text", "namespace": "default"}, {"id": "dYz", "data": {"text": "**Bold text**\n_Italic text_\n**_Italic Bold text_**\n\n**Lists**\n* Point 1\n* Point 2\n* Point 3"}, "type": "text", "namespace": "default"}, {"id": "vLn", "data": {"size": "l", "text": "Links and formating functions", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "aJ1", "data": {"text": "You can use```URL()``` to create links to other applications or dashboards.\n ``URL(\"https://www.google.com/search$116q=\" + [Product name], [Product name])`` — link to Google\nAlso you can format text by formating functions such as BOLD(), ITALIC() and MARKUP()"}, "type": "text", "namespace": "default"}, {"id": "JAv", "data": {"tabs": [{"id": "O2N", "title": "Click row to go to url", "params": {}, "chartId": "z4wtzhsv4vxko", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "3ey", "data": {"text": "**Code**\n\n```kotlin\n val a: Int = 1\n```\n\n#### **Foldable sections**\n{% cut \"Show text\" %}\n\nHidden text\n\n{% endcut %}"}, "type": "text", "namespace": "default"}, {"id": "Jv7", "data": {"text": "># **Formating**"}, "type": "text", "namespace": "default"}, {"id": "p42", "data": {"size": "m", "text": "Header M", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "jpB", "data": {"size": "xs", "text": "Header XS", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "ZbQ", "data": {"text": "# **Text objects**\nText objects allow you to create various types of content: text with formating, images. links, code, list, foldable sections and tables "}, "type": "text", "namespace": "default"}, {"id": "8Ez", "data": {"text": "**Tables**\n\n#|\n|| **⚠ Status** | **Condition** ||\n|| Golden| more than 10 purchases||\n|| Silver | up to 10 purchases||\n|| Basic | 1 purchase per year||\n|#\n\n"}, "type": "text", "namespace": "default"}, {"id": "ljW", "data": {"text": "1. Point 1\n2. Point 2\n3. Point 3"}, "type": "text", "namespace": "default"}, {"id": "6N1", "data": {"text": ""}, "type": "text", "namespace": "default"}, {"id": "ozN", "data": {"text": "#\nYou can use emojis and utf symbols to create conditional formating. And you can use formating fields options in tables for color formating and bar charts."}, "type": "text", "namespace": "default"}, {"id": "XXa", "data": {"text": "⌚ 📱 📲 💻 ⌨ 🖥 🖨 🖱 🖲 🕹 🗜 💽 💾 💿 📀 📼 📷 📸 📹 🎥 📽 🎞 📞 ☎ 📟 📠 📺 📻 🎙 🎚 🎛 ⏱ ⏲ ⏰ 🕰 ⏳ ⌛ 🧮 📡 🔋 🔌 💡 🔦 🕯 🧯 🗑 🛢 🛒 💸 💵 💴 💶 💷 💰 🪙 💳 🧾 💎 ⚖ 🦯 🧰 🔧 🪛 🔨 ⚒ 🛠 ⛏ 🪓 🪚 🔩 ⚙ ⛓ 🧱 🔫 🧨 💣 🔪 🗡 ⚔ 🛡 🚬 ⚰ 🪦 ⚱ 🏺 🔮 🪄 📿 🧿 💈 🧲 ⚗ 🧪 🧫 🧬 🔭 🔬 🕳 💊 💉 🩸 🩹 🩺 🌡 🏷 🔖 🚽 🪠 🚿 🛁 🛀 🪥 🪒 🧴 🧻 🧼 🧽 🧹 🧺 🪣 🔑 🗝 🪤 🛋 🪑 🛌 🛏 🚪 🪞 🪟 🧳 🛎 🖼 🧭 🗺 ⛱ 🗿 🛍 🎈 🎏 🎀 🧧 🎁 🎊 🎉 🪅 🪆 🎎 🎐 🏮 🪔 ✉ 📩 📨 📧 💌 📮 📪 📫 📬 📭 📦 📯 📥 📤 📜 📃 📑 📊 📈 📉 📄 📅 📆 🗓 📇 🗃 🗳 🗄 📋 🗒 📁 📂 🗂 🗞 📰 🪧 📓 📕 📗 📘 📙 📔 📒 📚 📖 🔗 📎 🖇 ✂ 📐 📏 📌 📍 🧷 🪡 🧵 🧶 🪢 🔐 🔒 🔓 🔏 🖊 🖋 ✒ 📝 ✏ 🖍 🖌 🔍 🔎 👚 👕 🥼 🦺 🧥 👖 👔 👗 👘 🥻 🩱 👙 🩲 🩳 💄 💋 👣 🧦 🩴 👠 👡 👢 🥿 👞 👟 🩰 🥾 🧢 👒 🎩 🎓 👑 ⛑ 🪖 🎒 👝 👛 👜 💼 👓 🕶 🥽 🧣 🧤 💍 🌂 ☂\n\n😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 🥰 😘 😗 😙 😚 😋 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🥸 🤩 🥳 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 🥺 😢 😭 😮‍💨 😤 😠 😡 🤬 🤯 😳 🥵 🥶 😱 😨 😰 😥 😓 😶‍🌫️ 😐 😑 😬 🙄 😯 😦 😧 😮 😲 🥱 😴 🤤 😪 😵 😵‍💫 🫥 🤐 🥴 🤢 🤮 🤧 😷 🤒\n\n👋 🤚 🖐 ✋ 🖖 👌 🤏 ✌️ 🤞 🤟 🤘 🤙 👈 👉 👆 🖕 👇 ☝️ 👍 👎 ✊ 👊 🤛 🤜 👏 🙌 👐 🤲 🤝 🙏 ✍️ 💅 🤳 💪 🦾 🦵 🦿 🦶 👣 👂 🦻 👃 🧠 🦷 🦴 👀 👁 👅 👄 💋 🩸\n\n👶 👧 🧒 👦 👩 🧑 👨 👩‍🦱 🧑‍🦱 👨‍🦱 👩‍🦰 🧑‍🦰 👨‍🦰 👱‍♀️ 👱 👱‍♂️ 👩‍🦳 🧑‍🦳 👨‍🦳 👩‍🦲 🧑‍🦲 👨‍🦲 🧔‍♀️ 🧔 🧔‍♂️ 👵 🧓 👴 👲 👳‍♀️ 👳 👳‍♂️ 🧕 👮‍♀️ 👮 👮‍♂️ 👷‍♀️ 👷 👷‍♂️ 💂‍♀️ 💂 💂‍♂️ 🕵️‍♀️ 🕵️ 🕵️‍♂️ 👩‍⚕️ 🧑‍⚕️ 👨‍⚕️ 👩‍🌾 🧑‍🌾 👨‍🌾 👩‍🍳 🧑‍🍳 👨‍🍳 👩‍🎓 🧑‍🎓 👨‍🎓 👩‍🎤 🧑‍🎤 👨‍🎤 👩‍🏫 🧑‍🏫 👨‍🏫 👩‍🏭 🧑‍🏭 👨‍🏭 👩‍💻 🧑‍💻 👨‍💻 👩‍💼 🧑‍💼 👨‍💼 👩‍🔧 🧑‍🔧 👨‍🔧 👩‍🔬 🧑‍🔬 👨‍🔬 👩‍🎨 🧑‍🎨 👨‍🎨 👩‍🚒 🧑‍🚒 👨‍🚒 👩‍✈️ 🧑‍✈️ 👨‍✈️ 👩‍🚀 🧑‍🚀 👨‍🚀 👩‍⚖️ 🧑‍⚖️ 👨‍⚖️ 👰‍♀️ 👰 👰‍♂️ 🤵‍♀️ 🤵 🤵‍♂️ 👸 🤴 🦸‍♀️ 🦸 🦸‍♂️ 🦹‍♀️ 🦹 🦹‍♂️ 🤶 🧑‍🎄 🎅 🧙‍♀️ 🧙 🧙‍♂️ 🧝‍♀️ 🧝 🧝‍♂️ 🧛‍♀️ 🧛 🧛‍♂️ 🧟‍♀️ 🧟 🧟‍♂️ 🧞‍♀️ 🧞 🧞‍♂️ 🧜‍♀️ 🧜 🧜‍♂️ 🧚‍♀️ 🧚 🧚‍♂️ 🧌 👼 🤰 🫄 🫃 🤱 👩‍🍼 🧑‍🍼 👨‍🍼 🙇‍♀️ 🙇 🙇‍♂️ 💁‍♀️ 💁 💁‍♂️ 🙅‍♀️ 🙅 🙅‍♂️ 🙆‍♀️ 🙆 🙆‍♂️ 🙋‍♀️ 🙋 🙋‍♂️ 🧏‍♀️ 🧏 🧏‍♂️ 🤦‍♀️ 🤦 🤦‍♂️ 🤷‍♀️ 🤷 🤷‍♂️ 🙎‍♀️ 🙎 🙎‍♂️ 🙍‍♀️ 🙍 🙍‍♂️ 💇‍♀️ 💇 💇‍♂️ 💆‍♀️ 💆 💆‍♂️ 🧖‍♀️ 🧖 🧖‍♂️ 💅 🤳 💃 🕺 👯‍♀️ 👯 👯‍♂️ 🕴 👩‍🦽 🧑‍🦽 👨‍🦽 👩‍🦼 🧑‍🦼 👨‍🦼 🚶‍♀️ 🚶 🚶‍♂️ 👩‍🦯 🧑‍🦯 👨‍🦯 🧎‍♀️ 🧎 🧎‍♂️ 🏃‍♀️ 🏃 🏃‍♂️ 🧍‍♀️ 🧍 🧍‍♂️ 👭 🧑‍🤝‍🧑 👬 👫 👩‍❤️‍👩 💑 👨‍❤️‍👨 👩‍❤️‍👨 👩‍❤️‍💋‍👩 💏 👨‍❤️‍💋‍👨 👩‍❤️‍💋‍👨 👪 👨‍👩‍👦 👨‍👩‍👧 👨‍👩‍👧‍👦 👨‍👩‍👦‍👦 👨‍👩‍👧‍👧 👨‍👨‍👦 👨‍👨‍👧 👨‍👨‍👧‍👦 👨‍👨‍👦‍👦 👨‍👨‍👧‍👧 👩‍👩‍👦 👩‍👩‍👧 👩‍👩‍👧‍👦 👩‍👩‍👦‍👦 👩‍👩‍👧‍👧 👨‍👦 👨‍👦‍👦 👨‍👧 👨‍👧‍👦 👨‍👧‍👧 👩‍👦 👩‍👦‍👦 👩‍👧 👩‍👧‍👦 👩‍👧‍👧 🗣 👤 👥\n\n🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐼 🐻‍❄️ 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵 🙈 🙉 🙊 🐒 🐔 🐧 🐦 🐤 🐣 🐥 🦆 🦅 🦉 🦇 🐺 🐗 🐴 🦄 🐝 🪱 🐛 🦋 🐌 🐞 🐜🦟 🦗 🕷 🕸 🦂 🐢 🐍 🦎 🦖 🦕 🐙 🦑 🦐 🦞 🦀 🪸 🐡 🐠 🐟 🐬 🐳 🐋 🦈 🐊 🐅 🐆 🦓 🦍 🦧 🦣 🐘 🦛 🦏 🐪 🐫 🦒 🦘 🦬 🐃 🐂 🐄 🐎 🐖 🐏 🐑 🦙 🐐 🦌 🐕 🐩 🦮 🐕‍🦺 🐈 🐈‍⬛ 🐓 🦃 🦤 🦚 🦜 🦢 🦩 🕊 🐇 🦝 🦨 🦡 🦫 🦦 🦥 🐁 🐀 🐿 🦔 🐾 🐉 🐲 🌵 🎄 🌲 🌳 🌴 🌱 🌿 ☘️ 🍀 🎍 🪴 🎋 🍃 🍂 🍁 🍄 🐚 🪨 🌾 💐 🌷 🪷 🌹 🥀 🌺 🌸 🌼 🌻 🌞 🌝 🌛 🌜 🌚 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔 🌙 🌎 🌍 🌏 🪐 💫 ⭐️ 🌟 ✨ ⚡️ ☄️ 💥 🔥 🌪 🌈 ☀️ 🌤 ⛅️ 🌥 ☁️ 🌦 🌧 ⛈ 🌩 🌨 ❄️ ☃️ ⛄️ 🌬 💨 💧 💦 🫧 ☔️ ☂️ 🌊 🌫\n\n🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓🍈 🍒 🍑 🥭 🍍 🥥 🥝 🍅 🍆 🥑 🥦 🥬 🥒 🌶 🌽 🥕 🧄 🧅 🥔 🍠 🥐 🥯 🍞 🥖 🥨 🧀 🥚 🍳 🧈 🥞 🧇 🥓 🥩 🍗 🍖 🦴 🌭 🍔 🍟 🍕 🥪 🥙 🧆 🌮 🌯 🥗 🥘 🥫 🍝 🍜 🍲 🍛 🍣 🍱 🥟 🦪 🍤 🍙 🍚 🍘 🍥 🥠 🥮 🍢 🍡 🍧 🍨 🍦 🥧 🧁 🍰 🎂 🍮 🍭 🍬 🍫 🍿 🍩 🍪 🌰 🥜 🍯 🥛 🍼 ☕️ 🍵 🧃 🥤 🍶 🍺 🍻 🥂 🍷 🫗 🥃 🍸 🍹 🧉 🍾 🧊 🥄 🍴 🍽 🥣 🥡 🥢 🧂\n\n⚽️ 🏀 🏈 ⚾️ 🥎 🎾 🏐 🏉 🥏 🎱 🪀 🏓 🏸 🏒 🏑 🥍 🏏 🪃 🥅 ⛳️ 🪁 🏹 🎣 🤿 🥊 🥋 🎽 🛹 🛼 🛷 ⛸ 🥌 🎿 ⛷ 🏂 🪂 🏋️‍♀️ 🏋️ 🏋️‍♂️ 🤼‍♀️ 🤼 🤼‍♂️ 🤸‍♀️ 🤸 🤸‍♂️ ⛹️‍♀️ ⛹️ ⛹️‍♂️ 🤺 🤾‍♀️ 🤾 🤾‍♂️ 🏌️‍♀️ 🏌️ 🏌️‍♂️ 🏇 🧘‍♀️ 🧘 🧘‍♂️ 🏄‍♀️ 🏄 🏄‍♂️ 🏊‍♀️ 🏊 🏊‍♂️ 🤽‍♀️ 🤽 🤽‍♂️ 🚣‍♀️ 🚣 🚣‍♂️ 🧗‍♀️ 🧗 🧗‍♂️ 🚵‍♀️ 🚵 🚵‍♂️ 🚴‍♀️ 🚴 🚴‍♂️ 🏆 🥇 🥈 🥉 🏅 🎖 🏵 🎗 🎫 🎟 🎪 🤹 🤹‍♂️ 🤹‍♀️ 🎭 🩰 🎨 🎬 🎤 🎧 🎼 🎹 🥁 🪘 🎷 🎺 🪗 🎸 🪕 🎻 🎲 ♟ 🎯 🎳 🎮 🎰 🧩\n\n🡣\t🡫\t🡳\t🡻\t🢃\t⇓\t⇩\t⬇\n🡩\t🡡\t🡱\t🡹\t🢁\t⇑\t⇧\t⬆\n🡮\t🡦\t🡶\t🡾\t🢆\t⇘\t⬂\t⬊\n🡢\t🡪\t🡲\t🡺\t🢂\t⇒\t⇨\t⬇\n🡥\t🡭\t🡵\t🡽\t🢅\t⇗\t⬀\t⬈\n🡧\t🡯\t🡷\t🡿\t🢇\t⇙\t⬃\t⬋\n🡠\t🡨\t🡰\t🡸\t🢀\t⇐\t⇦\t⬅\n🡤\t🡬\t🡴\t🡼\t🢄\t⇖\t⬁\t⬉"}, "type": "text", "namespace": "default"}], "title": "Formating", "layout": [{"h": 4, "i": "9kY", "w": 5, "x": 0, "y": 9}, {"h": 4, "i": "rdR", "w": 7, "x": 5, "y": 13}, {"h": 4, "i": "1ZA", "w": 12, "x": 0, "y": 5}, {"h": 9, "i": "noj", "w": 10, "x": 0, "y": 49}, {"h": 2, "i": "kJv", "w": 36, "x": 0, "y": 47}, {"h": 2, "i": "eD4", "w": 36, "x": 0, "y": 3}, {"h": 8, "i": "dYz", "w": 4, "x": 12, "y": 9}, {"h": 3, "i": "vLn", "w": 36, "x": 0, "y": 17}, {"h": 4, "i": "aJ1", "w": 25, "x": 0, "y": 20}, {"h": 23, "i": "JAv", "w": 36, "x": 0, "y": 24}, {"h": 8, "i": "3ey", "w": 7, "x": 21, "y": 9}, {"h": 3, "i": "Jv7", "w": 36, "x": 0, "y": 0}, {"h": 4, "i": "p42", "w": 7, "x": 5, "y": 9}, {"h": 4, "i": "jpB", "w": 5, "x": 0, "y": 13}, {"h": 4, "i": "ZbQ", "w": 24, "x": 12, "y": 5}, {"h": 8, "i": "8Ez", "w": 8, "x": 28, "y": 9}, {"h": 4, "i": "ljW", "w": 5, "x": 16, "y": 13}, {"h": 4, "i": "6N1", "w": 5, "x": 16, "y": 9}, {"h": 4, "i": "ozN", "w": 11, "x": 25, "y": 20}, {"h": 9, "i": "XXa", "w": 26, "x": 10, "y": 49}], "aliases": {}, "connections": []}, {"id": "Zyd", "items": [{"id": "Q94", "data": {"text": "The parameters allow to configure calculated fields.On the dashboard, parameter values are set with selectors. Selectors should be created not based on the dataset, but using \"manual input\" tab, using the name of the parameter. \n\n**⚠ Important!** After adding a manual selector to the dashboard disconnect this selector from all other selectors on the dashboard tab. If the connection is not set to ignore the drop-down list of available values of other selectors will be empty."}, "type": "text", "namespace": "default"}, {"id": "BXL", "data": {"title": "ago-period", "source": {"fieldName": "ago-period", "showTitle": true, "elementType": "input", "defaultValue": "2"}, "sourceType": "manual"}, "type": "control", "defaults": {"ago-period": "2"}, "namespace": "default"}, {"id": "RRK", "data": {"title": "Группировка", "source": {"fieldName": "scale", "operation": null, "showTitle": true, "elementType": "select", "defaultValue": "month", "multiselectable": false, "acceptableValues": [{"title": "day", "value": "day"}, {"title": "week", "value": "week"}, {"title": "month", "value": "month"}, {"title": "year", "value": "year"}]}, "sourceType": "manual"}, "type": "control", "layout": {"h": 2, "w": 6}, "defaults": {"scale": "month"}, "namespace": "default"}, {"id": "Krb", "data": {"size": "l", "text": "Dimensions ane Measures controls", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "A9O", "data": {"tabs": [{"id": "NlO", "title": "Title 1", "params": {}, "chartId": "491y4ewqzvbut", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Mrv", "data": {"title": "Dimension", "source": {"fieldName": "dimension", "showTitle": true, "elementType": "select", "defaultValue": "Region", "acceptableValues": [{"title": "Population group", "value": "Population group"}, {"title": "Region", "value": "Region"}, {"title": "Neighbourhood", "value": "Neighbourhood"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"dimension": "Region"}, "namespace": "default"}, {"id": "3WW", "data": {"text": "Create a parameter `dimension` and `metric` at dataset\n\nAdd calculated fileds:\n```\nCASE([dimension],\n ''Region'', [Region],\n ''Neighbourhood'',[Neighbourhood],\n ''Population group'',[Population group],\n null)\n```\n\n\n```\nIF [metric]= \"sales\" THEN INT(SUM([amount]))\nELSEIF [metric]=\"quantity\" THEN SUM([quantity])\nEND\n```\n\nMesures with same type can only be used in that case."}, "type": "text", "namespace": "default"}, {"id": "1Jl", "data": {"title": "Metric", "source": {"fieldName": "metric", "showTitle": true, "elementType": "select", "defaultValue": "quantity", "acceptableValues": [{"title": "quantity", "value": "quantity"}, {"title": "sales", "value": "sales"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"metric": "quantity"}, "namespace": "default"}, {"id": "n46", "data": {"text": "> # **Parameters**"}, "type": "text", "namespace": "default"}], "title": "Parameters", "layout": [{"h": 6, "i": "Q94", "w": 36, "x": 0, "y": 3}, {"h": 2, "i": "BXL", "w": 6, "x": 0, "y": 17}, {"h": 2, "i": "RRK", "w": 6, "x": 0, "y": 15}, {"h": 2, "i": "Krb", "w": 36, "x": 0, "y": 9}, {"h": 14, "i": "A9O", "w": 15, "x": 6, "y": 11}, {"h": 2, "i": "Mrv", "w": 6, "x": 0, "y": 11}, {"h": 14, "i": "3WW", "w": 15, "x": 21, "y": 11}, {"h": 2, "i": "1Jl", "w": 6, "x": 0, "y": 13}, {"h": 3, "i": "n46", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": [{"to": "NlO", "from": "RRK", "kind": "ignore"}, {"to": "RRK", "from": "NlO", "kind": "ignore"}, {"to": "NlO", "from": "BXL", "kind": "ignore"}, {"to": "BXL", "from": "NlO", "kind": "ignore"}, {"to": "BXL", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "BXL", "kind": "ignore"}, {"to": "RRK", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "RRK", "kind": "ignore"}, {"to": "Mrv", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "Mrv", "kind": "ignore"}]}, {"id": "GD4", "items": [{"id": "6B5", "data": {"title": "Order date", "source": {"isRange": true, "datasetId": "qvnkqz8s0wdqf", "showTitle": true, "elementType": "date", "defaultValue": "__interval___relative_-7y___relative_-0d", "datasetFieldId": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7"}, "sourceType": "dataset"}, "type": "control", "defaults": {"3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7": "__interval___relative_-7y___relative_-0d"}, "namespace": "default"}, {"id": "oZJ", "data": {"text": "In order to work with dates its important to set data type of fileds to date at datasource. If format you are using is not recognized automatically you can convert the data type using the functions: DATETIME(), DATE(), DATETIME_PARSE(), DATE_PARSE()."}, "type": "text", "namespace": "default"}, {"id": "XEj", "data": {"text": "Date type fields support calendars as selectors and flexible automatic relative dates selections like: last year, last 7 days, last and next 3 months and so on. "}, "type": "text", "namespace": "default"}, {"id": "jPL", "data": {"tabs": [{"id": "p15", "title": "Title 1", "params": {}, "chartId": "ejb8ep80pi163", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "L3R", "data": {"text": "**Rows**:\nMonth - `DATETRUNC([Order date], \"month\")`\nWeek number - `if( week([Order date])>51 and MONTH([Order date])=1, 0, week([Order date]))` -- if statement to get right result at the end of a year\n\n**Columns**:\nDay oof Week - `CASE(DAYOFWEEK([Order date]),1,\"1-Mn\",2,\"2-Tu\",3,\"3-We\",4,\"4-Th\",5,\"5-Fr\",6,\"6-St\",7,\"7-Sn\",\"NA\")`\n\n**Cell**:\nDay - `max(DAY([Order date]))` -- Max is needed to convert it to Measure\n\n**Color**:\n`Sales - SUM([amount])` -- Metric for heatmap"}, "type": "text", "namespace": "default"}, {"id": "e3E", "data": {"size": "m", "text": "Month over Month and AGO()", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "GAX", "data": {"tabs": [{"id": "dMV", "title": "Title 1", "params": {}, "chartId": "27zw2f553fpqr", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Ka4", "data": {"text": "Add calculated field `AGO([Sales], [Date Month], ''month'', 1)`. \\[Documentation link\\](https://cloud.yandex.ru/docs/datalens/function-ref/AGO\n\nTo calculate MoM,% create a calculated field `([Sales] - [Ago 1 Month Sales]) / ABS([Ago 1 Month Sales])`\n\nAlso you can use functions LAG() or AT_DATE() for different cases. For example `AT_DATE([Sales],[Date], DATETRUNC([Date],''week''))` will give you Sales at the first date of the week."}, "type": "text", "namespace": "default"}, {"id": "7Ea", "data": {"text": "># **Date functions**"}, "type": "text", "namespace": "default"}, {"id": "Npo", "data": {"size": "m", "text": "Heatmap calendar", "showInTOC": true}, "type": "title", "namespace": "default"}], "title": "Date functions", "layout": [{"h": 4, "i": "6B5", "w": 7, "x": 29, "y": 3}, {"h": 4, "i": "oZJ", "w": 17, "x": 0, "y": 3}, {"h": 4, "i": "XEj", "w": 12, "x": 17, "y": 3}, {"h": 17, "i": "jPL", "w": 18, "x": 0, "y": 30}, {"h": 17, "i": "L3R", "w": 18, "x": 18, "y": 30}, {"h": 3, "i": "e3E", "w": 36, "x": 0, "y": 7}, {"h": 17, "i": "GAX", "w": 18, "x": 0, "y": 10}, {"h": 17, "i": "Ka4", "w": 18, "x": 18, "y": 10}, {"h": 3, "i": "7Ea", "w": 36, "x": 0, "y": 0}, {"h": 3, "i": "Npo", "w": 36, "x": 0, "y": 27}], "aliases": {}, "connections": [{"to": "p15", "from": "6B5", "kind": "ignore"}, {"to": "6B5", "from": "p15", "kind": "ignore"}]}, {"id": "Are", "items": [{"id": "evd", "data": {"tabs": [{"id": "EB3", "title": "Title 1", "params": {}, "chartId": "sxpms3pgygm6h", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "GBp", "data": {"tabs": [{"id": "dWP", "title": "Title 1", "params": {}, "chartId": "af74aq6s79dez", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "7gg", "data": {"tabs": [{"id": "KQn", "title": "Title 1", "params": {}, "chartId": "tyqnt5kbstbsi", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "AMe", "data": {"tabs": [{"id": "d6z", "title": "Title 1", "params": {}, "chartId": "ch96cl4boozy1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "3g5", "data": {"tabs": [{"id": "MXb", "title": "Title 1", "params": {}, "chartId": "8d528nx6xy7ix", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "OO2", "data": {"size": "l", "text": "Top 5", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "J5Z", "data": {"size": "l", "text": "Top 3 for each category", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "pDn", "data": {"size": "m", "text": "Percent of total", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "GB1", "data": {"size": "l", "text": "Percent of total by years and regions", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "KQY", "data": {"size": "m", "text": "Running sum", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "NRY", "data": {"text": "To filter top 5 create calculated filed with `rank([Sales])` function and drug this filed to Filter section.\n\nYou can find additional info about `RANK` in documentation."}, "type": "text", "namespace": "default"}, {"id": "AMA", "data": {"text": "Add calculated field `rank([Sales] WITHIN [Category])` and drag it to Filter section,\n\nYou can find additional info about `RANK` in documentation."}, "type": "text", "namespace": "default"}, {"id": "MX1", "data": {"text": "Add calculated filed `[Sales] / sum([Sales] Total) `.\n\nYou can find additional info about `SUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "3gr", "data": {"text": "Add calculated filed `[Sales] / sum([Sales] WITHIN [Year])`.\n\nYou can find additional info about `SUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "v26", "data": {"text": "Add calculated filed `RSUM([Sales])`.\n\nUsing `RSUM()` requires sort by dimension in Sort section.\n\nYou can find additional info about `RSUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "n7p", "data": {"text": "Calculated fields are created at the dataset level or at the chart level (will be available only for this chart). In the examples, calculated fields are created at the chart level. You can edit them quickly and immediately see the result on the visualization.\n\nFor a general description of window functions, see documentation."}, "type": "text", "namespace": "default"}, {"id": "9YE", "data": {"text": "># **Window functions**"}, "type": "text", "namespace": "default"}], "title": "Window functions", "layout": [{"h": 10, "i": "evd", "w": 17, "x": 0, "y": 9}, {"h": 12, "i": "GBp", "w": 17, "x": 0, "y": 21}, {"h": 12, "i": "7gg", "w": 17, "x": 0, "y": 40}, {"h": 15, "i": "AMe", "w": 17, "x": 0, "y": 51}, {"h": 12, "i": "3g5", "w": 17, "x": 0, "y": 68}, {"h": 2, "i": "OO2", "w": 36, "x": 0, "y": 7}, {"h": 2, "i": "J5Z", "w": 36, "x": 0, "y": 19}, {"h": 2, "i": "pDn", "w": 36, "x": 0, "y": 38}, {"h": 2, "i": "GB1", "w": 36, "x": 0, "y": 49}, {"h": 2, "i": "KQY", "w": 36, "x": 0, "y": 66}, {"h": 10, "i": "NRY", "w": 19, "x": 17, "y": 9}, {"h": 17, "i": "AMA", "w": 19, "x": 17, "y": 21}, {"h": 4, "i": "MX1", "w": 19, "x": 17, "y": 40}, {"h": 6, "i": "3gr", "w": 19, "x": 17, "y": 51}, {"h": 4, "i": "v26", "w": 19, "x": 17, "y": 68}, {"h": 4, "i": "n7p", "w": 36, "x": 0, "y": 3}, {"h": 3, "i": "9YE", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "457", "items": [{"id": "lGA", "data": {"tabs": [{"id": "4Q8", "title": "FIXED", "params": {}, "chartId": "qvnkq5oj2gy2f", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "64y", "data": {"size": "l", "text": "Percent of total for COUNTD()", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "QLY", "data": {"text": "Create a calculated field `COUNTD([Client ID]) / COUNTD([Client ID] FIXED)`."}, "type": "text", "namespace": "default"}, {"id": "o6l", "data": {"size": "l", "text": "Double aggregation", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "0a8", "data": {"tabs": [{"id": "XaZ", "title": "INCLUDE", "params": {}, "chartId": "rwolr3bej5gwg", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "grL", "data": {"text": "Calculated field `AVG(COUNT([client ID] INCLUDE [Application date]))` allows you to perform double aggregation: first we count the number of unique buyers by day, then we count the average of them across a month. In this example, the average is calculated by month (see chart measurement). Thus, we got the \"average clients per day\"."}, "type": "text", "namespace": "default"}, {"id": "PGJ", "data": {"text": "Examples of using Level of Detail (LOD) or double aggregation functions in calculated fields. In some cases, LODs are similar to regular window functions. An important difference between LOD functions is the support of the `COUNTD` function."}, "type": "text", "namespace": "default"}, {"id": "Wod", "data": {"text": "># **Level of Details functions**"}, "type": "text", "namespace": "default"}], "title": "Level of detail functions", "layout": [{"h": 17, "i": "lGA", "w": 19, "x": 0, "y": 10}, {"h": 2, "i": "64y", "w": 36, "x": 0, "y": 8}, {"h": 17, "i": "QLY", "w": 17, "x": 19, "y": 10}, {"h": 2, "i": "o6l", "w": 36, "x": 0, "y": 27}, {"h": 16, "i": "0a8", "w": 19, "x": 0, "y": 29}, {"h": 16, "i": "grL", "w": 17, "x": 19, "y": 29}, {"h": 5, "i": "PGJ", "w": 20, "x": 0, "y": 3}, {"h": 3, "i": "Wod", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "71g", "items": [{"id": "J9l", "data": {"tabs": [{"id": "Obz", "title": "This chart is linked only to the selecot above", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "jn0", "data": {"tabs": [{"id": "p6R", "title": "Title 1", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "ZG6", "data": {"tabs": [{"id": "LbN", "title": "Title 1", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "84v", "data": {"title": "Main category", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"45bdfbb6-1dd9-41bd-9871-b011efd8ec6b": ""}, "namespace": "default"}, {"id": "4Z8", "data": {"title": "Category to compare", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"45bdfbb6-1dd9-41bd-9871-b011efd8ec6b": ""}, "namespace": "default"}, {"id": "l6A", "data": {"text": "The page provides an example of setting up links between selectors and charts. To change the settings in the dashboard editing mode, click on the \"links\" button on the top panel. This page uses only one chart added multiple times."}, "type": "text", "namespace": "default"}, {"id": "6dy", "data": {"title": "Year", "source": {"datasetId": "qvnkqz8s0wdqf", "showTitle": true, "elementType": "select", "datasetFieldId": "9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2", "multiselectable": true}, "sourceType": "dataset"}, "type": "control", "defaults": {"9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2": ""}, "namespace": "default"}, {"id": "QKY", "data": {"text": "This is the selector that linked to all charts at the tab."}, "type": "text", "namespace": "default"}, {"id": "ojl", "data": {"text": "You can create comparison panels using that approach. "}, "type": "text", "namespace": "default"}, {"id": "XMZ", "data": {"text": " "}, "type": "text", "namespace": "default"}, {"id": "voX", "data": {"size": "l", "text": "The same chart is filtered independently by different selectors ", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "5Y0", "data": {"text": "># **Selectors**"}, "type": "text", "namespace": "default"}], "title": "Selectors", "layout": [{"h": 15, "i": "J9l", "w": 22, "x": 0, "y": 7}, {"h": 15, "i": "jn0", "w": 11, "x": 0, "y": 26}, {"h": 15, "i": "ZG6", "w": 11, "x": 11, "y": 26}, {"h": 2, "i": "84v", "w": 11, "x": 0, "y": 24}, {"h": 2, "i": "4Z8", "w": 11, "x": 11, "y": 24}, {"h": 2, "i": "l6A", "w": 36, "x": 0, "y": 3}, {"h": 2, "i": "6dy", "w": 6, "x": 0, "y": 5}, {"h": 2, "i": "QKY", "w": 30, "x": 6, "y": 5}, {"h": 17, "i": "ojl", "w": 14, "x": 22, "y": 24}, {"h": 15, "i": "XMZ", "w": 14, "x": 22, "y": 7}, {"h": 2, "i": "voX", "w": 36, "x": 0, "y": 22}, {"h": 3, "i": "5Y0", "w": 36, "x": 0, "y": 0}], "aliases": {"default": [["0483c778-3a9a-4f65-8168-1beb8818580f", "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b"]]}, "connections": [{"to": "84v", "from": "Obz", "kind": "ignore"}, {"to": "Obz", "from": "84v", "kind": "ignore"}, {"to": "4Z8", "from": "Obz", "kind": "ignore"}, {"to": "Obz", "from": "4Z8", "kind": "ignore"}, {"to": "4Z8", "from": "p6R", "kind": "ignore"}, {"to": "p6R", "from": "4Z8", "kind": "ignore"}, {"to": "84v", "from": "LbN", "kind": "ignore"}, {"to": "LbN", "from": "84v", "kind": "ignore"}, {"to": "4Z8", "from": "84v", "kind": "ignore"}, {"to": "84v", "from": "4Z8", "kind": "ignore"}]}, {"id": "PoW", "items": [{"id": "bdQ", "data": {"tabs": [{"id": "Ral", "title": "Data", "params": {}, "chartId": "491y4hy1jw5yt", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "9Kn", "data": {"tabs": [{"id": "Y1g", "title": "Title 1", "params": {}, "chartId": "sxpmsao0sscqh", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "1kE", "data": {"tabs": [{"id": "roE", "title": "Title 1", "params": {}, "chartId": "fkc9fu79zvxg4", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "W15", "data": {"tabs": [{"id": "nde", "title": "Title 1", "params": {}, "chartId": "27zw2juwp5emr", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "k76", "data": {"text": "Cohorts analysis is a common analysis type in product analytics. You can create this type of analysis in DataLens. We need to get a dataset with three fields:\n— Client ID\n— Order date\n— First Order date or Activation date\n\nYou can create such dataset on a database level or using custom SQL in dataset like that:\n```sql\nSELECT \n\tt1.user_id,\n\tt1.order_platform, \n\ttoDate(date_trunc(''day'', t2.FirstDate)) as FirstOrderDate, \n\ttoDate(date_trunc(''day'', t1.order_creation_date)) as OrderDate\nFROM\n\tsamples.orders t1,\n\t(SELECT \n\t\tuser_id, \n\t\tMIN(order_creation_date) as FirstDate\n\tFROM samples.orders\n\tGROUP BY user_id) as t2\nWHERE t1.user_id =t2.user_id\n```\n\nThat will result data like on the right side."}, "type": "text", "namespace": "default"}, {"id": "EL4", "data": {"text": "Using `DATETRUNC([FirstOrderDate],''MONTH'')` calculate a First order month. Using `floor(([OrderDate]-[FirstOrderDate])/30)` calculate amount of periods past from first order date. Using COUNTD([Client ID]) calculate number of clients in each cohort. Use this fileds configure a table like that:"}, "type": "text", "namespace": "default"}, {"id": "e1J", "data": {"text": "For accurate analysis it is better to use color coding by columns. That way we will be able to compare same \"age\" cohorts. In order to do so create a filed\n`[COUNTD(Client ID)]/MAX([COUNTD(Client ID)] among [FirstOrder_Month])` and drag it to color setion."}, "type": "text", "namespace": "default"}, {"id": "dlQ", "data": {"text": "To display retention, starting from the period \"1\" (to see what percentage of the original customers remained with active), use the calculated field:\n\n```sql\nif (\n[30d]=0,\nstr(round([COUNT([Client ID])),\nconcat(str(round(100*[Client ID]/RMAX([Client ID] among [30d]))), \"%\")\n)\n```\n\nFor color:\n\n```sql\nif (\n[30d]=0,\n(round([COUNTS])),\n(round(100*[COUNTS]/RMAX([COUNTS] among [30d])))\n)\n```"}, "type": "text", "namespace": "default"}, {"id": "3jP", "data": {"text": "># **Cohorts**"}, "type": "text", "namespace": "default"}, {"id": "v47", "data": {"size": "l", "text": "Data", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "a7L", "data": {"size": "l", "text": "Basic cohorts", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "Oj3", "data": {"size": "l", "text": "Retention and cohort size at one chart", "showInTOC": true}, "type": "title", "namespace": "default"}], "title": "Cohorts", "layout": [{"h": 21, "i": "bdQ", "w": 20, "x": 16, "y": 5}, {"h": 25, "i": "9Kn", "w": 36, "x": 0, "y": 32}, {"h": 17, "i": "1kE", "w": 36, "x": 0, "y": 53}, {"h": 27, "i": "W15", "w": 24, "x": 12, "y": 73}, {"h": 21, "i": "k76", "w": 16, "x": 0, "y": 5}, {"h": 3, "i": "EL4", "w": 36, "x": 0, "y": 29}, {"h": 4, "i": "e1J", "w": 36, "x": 0, "y": 49}, {"h": 18, "i": "dlQ", "w": 12, "x": 0, "y": 73}, {"h": 3, "i": "3jP", "w": 36, "x": 0, "y": 0}, {"h": 2, "i": "v47", "w": 36, "x": 0, "y": 3}, {"h": 3, "i": "a7L", "w": 36, "x": 0, "y": 26}, {"h": 3, "i": "Oj3", "w": 36, "x": 0, "y": 70}], "aliases": {}, "connections": []}], "counter": 720, "settings": {"expandTOC": false, "globalParams": {}, "silentLoading": false, "autoupdateInterval": null, "dependentSelectors": true, "maxConcurrentRequests": null}, "description": "This is an example dashboard for [DataLens](https://datalens.yandex.ru). You can find detailed feature descriptions on the tabs of the dashboard.", "schemeVersion": 7}', '{"is_release": true}', 'uid:systemId', '2023-11-24 14:21:44.602312+00', 'uid:systemId', '2023-11-24 14:21:44.602312+00', 1560966477924795400, 1507164768509628187, '{"05xu0bafozgep": "05xu0bafozgep", "05xu0e1so1o6p": "05xu0e1so1o6p", "16yxd7gojiacq": "16yxd7gojiacq", "27zw2f553fpqr": "27zw2f553fpqr", "27zw2juwp5emr": "27zw2juwp5emr", "491y4ewqzvbut": "491y4ewqzvbut", "491y4hy1jw5yt": "491y4hy1jw5yt", "491y4iy424wmt": "491y4iy424wmt", "8d528nx6xy7ix": "8d528nx6xy7ix", "8d528ok4io2ax": "8d528ok4io2ax", "af74aq6s79dez": "af74aq6s79dez", "ch96cl4boozy1": "ch96cl4boozy1", "ch96cpyzl3hm1": "ch96cpyzl3hm1", "ch96cs0b54by1": "ch96cs0b54by1", "ejb8ep80pi163": "ejb8ep80pi163", "fkc9fu79zvxg4": "fkc9fu79zvxg4", "gldagp2ekyge5": "gldagp2ekyge5", "gldagxhlpx4q5": "gldagxhlpx4q5", "infciq1c89je7": "infciq1c89je7", "kphekyrgzony9": "kphekyrgzony9", "lqifl0t8hhrga": "lqifl0t8hhrga", "mrjgm1522opyb": "mrjgm1522opyb", "mrjgmvxq6yo2b": "mrjgmvxq6yo2b", "mrjgmyu6wn56b": "mrjgmyu6wn56b", "nskhn3dhudj0c": "nskhn3dhudj0c", "nskhn4ak09vwc": "nskhn4ak09vwc", "otlio209vg4md": "otlio209vg4md", "qvnkq5oj2gy2f": "qvnkq5oj2gy2f", "qvnkqz8s0wdqf": "qvnkqz8s0wdqf", "rwolr3bej5gwg": "rwolr3bej5gwg", "sxpms3pgygm6h": "sxpms3pgygm6h", "sxpms78wdpaqh": "sxpms78wdpaqh", "sxpmsao0sscqh": "sxpmsao0sscqh", "tyqnt5kbstbsi": "tyqnt5kbstbsi", "tyqnt9bovid8i": "tyqnt9bovid8i", "tyqntb2nacawi": "tyqntb2nacawi", "x2urxes3f5vwm": "x2urxes3f5vwm", "y3vsy9b5iv86n": "y3vsy9b5iv86n", "y3vsya0uiqbqn": "y3vsya0uiqbqn", "y3vsyf3u2yaan": "y3vsyf3u2yaan", "z4wtzhsv4vxko": "z4wtzhsv4vxko"}'), - ('{"salt": "0.5828470246218467", "tabs": [{"id": "7g", "items": [{"id": "OgN", "data": {"text": "># **Marketplace Sales**"}, "type": "text", "namespace": "default"}, {"id": "Mge", "data": {"text": "# \n\n```\nUse selectors to filter \nand modify charts\n```"}, "type": "text", "namespace": "default"}, {"id": "jvG", "data": {"size": "l", "text": "Main KPIs", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "vnv", "data": {"title": "Region", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "order_buyer_region_name", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"order_buyer_region_name": ""}, "namespace": "default"}, {"id": "ag6", "data": {"title": "Neighbourhood", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "4664cc4f-6a50-44cc-8dfb-b76fc814a159", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"4664cc4f-6a50-44cc-8dfb-b76fc814a159": ""}, "namespace": "default"}, {"id": "OgL", "data": {"title": "Scale", "source": {"fieldName": "scale", "showTitle": true, "elementType": "select", "defaultValue": "month", "acceptableValues": [{"title": "month", "value": "month"}, {"title": "week", "value": "week"}, {"title": "day", "value": "day"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"scale": "month"}, "namespace": "default"}, {"id": "JBj", "data": {"title": "Order Date", "source": {"isRange": true, "datasetId": "qvnkqz8s0wdqf", "fieldType": "date", "showTitle": true, "elementType": "date", "defaultValue": "__interval_2019-01-01T00:00:00.000Z_2020-02-13T00:00:00.000Z", "datasetFieldId": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7": "__interval_2019-01-01T00:00:00.000Z_2020-02-13T00:00:00.000Z"}, "namespace": "default"}, {"id": "ag1", "data": {"tabs": [{"id": "vnn", "title": "Title 1", "params": {}, "chartId": "lqifl0t8hhrga", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "K89", "data": {"tabs": [{"id": "G8J", "title": "Title 1", "params": {}, "chartId": "mrjgm1522opyb", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Zg5", "data": {"tabs": [{"id": "L4l", "title": "Title 1", "params": {}, "chartId": "kphekyrgzony9", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "4aO", "data": {"tabs": [{"id": "82B", "title": "Title 1", "params": {}, "chartId": "8d528ok4io2ax", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "QjG", "data": {"size": "l", "text": "Regions & Neighbourhoods", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "onD", "data": {"text": "#\n```\nDrill-down with click to row\nand switch charts with tabs"}, "type": "text", "namespace": "default"}, {"id": "23L", "data": {"tabs": [{"id": "0AZ", "title": "By region", "params": {}, "chartId": "otlio209vg4md", "isDefault": true, "autoHeight": false, "description": ""}, {"id": "gA8", "title": "by population", "params": {}, "chartId": "nskhn3dhudj0c", "isDefault": false, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "Pk3", "data": {"size": "l", "text": "Products", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "BW5", "data": {"text": "#\n```\nDrill-down by click on ⊞\nand download data clicking on …"}, "type": "text", "namespace": "default"}, {"id": "b08", "data": {"tabs": [{"id": "R1Z", "title": "Table by products", "params": {}, "chartId": "gldagp2ekyge5", "isDefault": true, "autoHeight": false, "description": "#\n```\nⓘ Add descriptions for widgets and metrics "}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "V4y", "data": {"text": "#\n```\nGo to links to other business systems\nand dashboards with predefined filters"}, "type": "text", "namespace": "default"}, {"id": "9Qk", "data": {"tabs": [{"id": "YL9", "title": "Top products by Sales", "params": {}, "chartId": "tyqnt9bovid8i", "isDefault": true, "autoHeight": false, "description": "```\nUse built-in pagination for tables"}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "rXo", "data": {"size": "l", "text": "Clients & Cohorts", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "nOP", "data": {"text": ""}, "type": "text", "layout": {"h": 2, "w": 12}, "orderId": 28, "namespace": "default", "defaultOrderId": 28}, {"id": "1R4", "data": {"text": "#\n```\nFilter data from different sources\nusing global selectors"}, "type": "text", "namespace": "default"}, {"id": "WzG", "data": {"title": "Platform", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "b76344a2-2cc1-4f65-bb40-f81035853bf2", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"b76344a2-2cc1-4f65-bb40-f81035853bf2": ""}, "namespace": "default"}, {"id": "k3a", "data": {"title": "First Order", "source": {"isRange": true, "datasetId": "infciq1c89je7", "fieldType": "date", "showTitle": true, "elementType": "date", "defaultValue": "__interval_2019-04-01T00:00:00.000Z_2020-02-29T00:00:00.000Z", "datasetFieldId": "6fd23eb8-1f52-4df8-a700-7c97675a9ac8", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"6fd23eb8-1f52-4df8-a700-7c97675a9ac8": "__interval_2019-04-01T00:00:00.000Z_2020-02-29T00:00:00.000Z"}, "namespace": "default"}, {"id": "dLA", "data": {"tabs": [{"id": "eG3", "title": "Cohorts based on Google Analytics", "params": {}, "chartId": "27zw2juwp5emr", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "gvY", "data": {"tabs": [{"id": "0Yd", "title": "Regions and Neighbourhoods shipping time", "params": {}, "chartId": "16yxd7gojiacq", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}], "title": "Overview", "layout": [{"h": 2, "i": "OgN", "w": 13, "x": 0, "y": 0}, {"h": 4, "i": "Mge", "w": 23, "x": 13, "y": 0}, {"h": 2, "i": "jvG", "w": 13, "x": 0, "y": 2}, {"h": 2, "i": "vnv", "w": 6, "x": 0, "y": 4}, {"h": 2, "i": "ag6", "w": 7, "x": 6, "y": 4}, {"h": 2, "i": "OgL", "w": 6, "x": 13, "y": 4}, {"h": 2, "i": "JBj", "w": 17, "x": 19, "y": 4}, {"h": 5, "i": "ag1", "w": 9, "x": 0, "y": 6}, {"h": 5, "i": "K89", "w": 10, "x": 9, "y": 6}, {"h": 5, "i": "Zg5", "w": 9, "x": 19, "y": 6}, {"h": 5, "i": "4aO", "w": 8, "x": 28, "y": 6}, {"h": 4, "i": "QjG", "w": 9, "x": 0, "y": 11}, {"h": 4, "i": "onD", "w": 10, "x": 9, "y": 11}, {"h": 13, "i": "23L", "w": 19, "x": 0, "y": 15}, {"h": 4, "i": "Pk3", "w": 4, "x": 0, "y": 28}, {"h": 4, "i": "BW5", "w": 15, "x": 4, "y": 28}, {"h": 18, "i": "b08", "w": 19, "x": 0, "y": 32}, {"h": 4, "i": "V4y", "w": 17, "x": 19, "y": 28}, {"h": 18, "i": "9Qk", "w": 17, "x": 19, "y": 32}, {"h": 4, "i": "rXo", "w": 7, "x": 0, "y": 50}, {"h": 2, "i": "nOP", "w": 18, "x": 18, "y": 50}, {"h": 4, "i": "1R4", "w": 11, "x": 7, "y": 50}, {"h": 2, "i": "WzG", "w": 6, "x": 18, "y": 52}, {"h": 2, "i": "k3a", "w": 12, "x": 24, "y": 52}, {"h": 20, "i": "dLA", "w": 36, "x": 0, "y": 54}, {"h": 17, "i": "gvY", "w": 17, "x": 19, "y": 11}], "aliases": {"default": [["b76344a2-2cc1-4f65-bb40-f81035853bf2", "order_platform"]]}, "connections": [{"to": "vnn", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "vnn", "kind": "ignore"}, {"to": "G8J", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "G8J", "kind": "ignore"}, {"to": "vnv", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "vnv", "kind": "ignore"}, {"to": "ag6", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "ag6", "kind": "ignore"}, {"to": "OgL", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "OgL", "kind": "ignore"}, {"to": "JBj", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "JBj", "kind": "ignore"}, {"to": "L4l", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "L4l", "kind": "ignore"}, {"to": "82B", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "82B", "kind": "ignore"}, {"to": "0AZ", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "0AZ", "kind": "ignore"}, {"to": "gA8", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "gA8", "kind": "ignore"}, {"to": "R1Z", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "R1Z", "kind": "ignore"}, {"to": "YL9", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "YL9", "kind": "ignore"}, {"to": "k3a", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "k3a", "kind": "ignore"}, {"to": "k3a", "from": "JBj", "kind": "ignore"}, {"to": "JBj", "from": "k3a", "kind": "ignore"}, {"to": "OgL", "from": "JBj", "kind": "ignore"}, {"to": "JBj", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "vnv", "kind": "ignore"}, {"to": "vnv", "from": "OgL", "kind": "ignore"}, {"to": "k3a", "from": "vnv", "kind": "ignore"}, {"to": "vnv", "from": "k3a", "kind": "ignore"}, {"to": "vnv", "from": "JBj", "kind": "ignore"}, {"to": "ag6", "from": "JBj", "kind": "ignore"}, {"to": "ag6", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "ag6", "kind": "ignore"}, {"to": "vnn", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "vnn", "kind": "ignore"}, {"to": "G8J", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "G8J", "kind": "ignore"}, {"to": "L4l", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "L4l", "kind": "ignore"}, {"to": "82B", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "82B", "kind": "ignore"}, {"to": "0AZ", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "0AZ", "kind": "ignore"}, {"to": "gA8", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "gA8", "kind": "ignore"}, {"to": "R1Z", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "R1Z", "kind": "ignore"}, {"to": "YL9", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "YL9", "kind": "ignore"}]}, {"id": "LoG", "items": [{"id": "2RQ", "data": {"size": "l", "text": "Column chart", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "g20", "data": {"tabs": [{"id": "08y", "title": "Stacked by dimension", "params": {}, "chartId": "mrjgmvxq6yo2b", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "ynW", "data": {"tabs": [{"id": "2j7", "title": "Grouped by dimension", "params": {}, "chartId": "05xu0e1so1o6p", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "Edn", "data": {"tabs": [{"id": "58e", "title": "Title 1", "params": {}, "chartId": "ch96cs0b54by1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "epA", "data": {"size": "l", "text": "Pie chart", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "7KE", "data": {"size": "l", "text": "KPIs", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "AWA", "data": {"tabs": [{"id": "NPY", "title": "Total", "params": {}, "chartId": "tyqntb2nacawi", "isDefault": true, "autoHeight": false, "description": "for the whole period"}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "3zr", "data": {"tabs": [{"id": "M91", "title": "Title 1", "params": {}, "chartId": "05xu0bafozgep", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "abX", "data": {"tabs": [{"id": "v06", "title": "Title 1", "params": {}, "chartId": "491y4iy424wmt", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "JbE", "data": {"tabs": [{"id": "OPe", "title": "Title 1", "params": {}, "chartId": "y3vsy9b5iv86n", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "31r", "data": {"text": "># **Charts types**"}, "type": "text", "namespace": "default"}, {"id": "Jol", "data": {"tabs": [{"id": "OQz", "title": "Title 1", "params": {}, "chartId": "ch96cpyzl3hm1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "pvR", "data": {"size": "l", "text": "Pivot table", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "E1D", "data": {"tabs": [{"id": "5LK", "title": "Simpe table", "params": {}, "chartId": "x2urxes3f5vwm", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "e64", "data": {"size": "l", "text": "Table", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "74n", "data": {"tabs": [{"id": "KdO", "title": "Title 1", "params": {}, "chartId": "gldagxhlpx4q5", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "N91", "data": {"size": "l", "text": "Scatter plot", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "AXP", "data": {"tabs": [{"id": "N9B", "title": "One measure", "params": {}, "chartId": "y3vsyf3u2yaan", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "65e", "data": {"tabs": [{"id": "lY4", "title": "Table with formating and hierarchy", "params": {}, "chartId": "nskhn4ak09vwc", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}], "title": "Chart types", "layout": [{"h": 2, "i": "2RQ", "w": 36, "x": 0, "y": 3}, {"h": 15, "i": "g20", "w": 12, "x": 24, "y": 5}, {"h": 15, "i": "ynW", "w": 12, "x": 12, "y": 5}, {"h": 14, "i": "Edn", "w": 12, "x": 0, "y": 23}, {"h": 3, "i": "epA", "w": 12, "x": 0, "y": 20}, {"h": 3, "i": "7KE", "w": 36, "x": 0, "y": 37}, {"h": 6, "i": "AWA", "w": 9, "x": 18, "y": 40}, {"h": 6, "i": "3zr", "w": 9, "x": 9, "y": 40}, {"h": 6, "i": "abX", "w": 9, "x": 0, "y": 40}, {"h": 6, "i": "JbE", "w": 9, "x": 27, "y": 40}, {"h": 3, "i": "31r", "w": 36, "x": 0, "y": 0}, {"h": 12, "i": "Jol", "w": 36, "x": 0, "y": 69}, {"h": 3, "i": "pvR", "w": 36, "x": 0, "y": 66}, {"h": 17, "i": "E1D", "w": 18, "x": 0, "y": 49}, {"h": 3, "i": "e64", "w": 36, "x": 0, "y": 46}, {"h": 20, "i": "74n", "w": 18, "x": 0, "y": 84}, {"h": 3, "i": "N91", "w": 18, "x": 0, "y": 81}, {"h": 15, "i": "AXP", "w": 12, "x": 0, "y": 5}, {"h": 17, "i": "65e", "w": 18, "x": 18, "y": 49}], "aliases": {}, "connections": []}, {"id": "MNb", "items": [{"id": "yzR", "data": {"text": "Examples of using drill-down and tree features in DataLens"}, "type": "text", "namespace": "default"}, {"id": "Dj2", "data": {"tabs": [{"id": "znn", "title": "Title 1", "params": {}, "chartId": "mrjgmyu6wn56b", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "b10", "data": {"text": "The hierarchy can be created in charts. To create one, click on the \"+\" button on the top panel of the chart.\n\nAfter adding a hierarchy to the chart, you can interactively drill down on it. Example:\n**Product category 1 → Product category 2 → … → Product name**\n\nUsing \"bread crumbs\" you can return to the desired level or open the entire level."}, "type": "text", "namespace": "default"}, {"id": "BJD", "data": {"tabs": [{"id": "PJW", "title": "Title 1", "params": {}, "chartId": "sxpms78wdpaqh", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "V0K", "data": {"text": "You can add Hierarchy to different section, for example in X. "}, "type": "text", "namespace": "default"}, {"id": "AgL", "data": {"tabs": [{"id": "Nkz", "title": "Title 1", "params": {}, "chartId": "gldagp2ekyge5", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "M4e", "data": {"text": "The tree is created using the TREE() function\n\n1. You need create an array describing the tree, with the full path for each node.\nThe sequence of values in the array determines the sequence of tree expansion.\n\nYou can use built-in function or create array at database.\n`TREE( ARRAY([Product category 1],[Product category 2],[Product category 3])`\n\n\n\n2. After the array is created based on it, you can create a tree using the formula: `TREE()''.\n\n\n##### Limitations of the current version\n- Only in flat tables\n- Without pagination\n- Without totals\n- Without remembering the state of disclosure\n- One tree/hierarchy per chart\n- No trees in selectors\n- Intermediate nodes of the tree must be stored in the source, even those for which there is no data"}, "type": "text", "namespace": "default"}, {"id": "kjW", "data": {"text": "># **Hierarchy**"}, "type": "text", "namespace": "default"}], "title": "Hierarchy", "layout": [{"h": 2, "i": "yzR", "w": 36, "x": 0, "y": 3}, {"h": 18, "i": "Dj2", "w": 17, "x": 0, "y": 5}, {"h": 18, "i": "b10", "w": 19, "x": 17, "y": 5}, {"h": 13, "i": "BJD", "w": 17, "x": 0, "y": 53}, {"h": 13, "i": "V0K", "w": 19, "x": 17, "y": 53}, {"h": 17, "i": "AgL", "w": 17, "x": 0, "y": 23}, {"h": 17, "i": "M4e", "w": 19, "x": 17, "y": 23}, {"h": 3, "i": "kjW", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "3p5", "items": [{"id": "9kY", "data": {"size": "l", "text": "Header L", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "rdR", "data": {"size": "s", "text": "Header S", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "1ZA", "data": {"text": "# **Headers**\nHeaders are used to separate different sections of dashboards and for navigation in Content panel."}, "type": "text", "namespace": "default"}, {"id": "noj", "data": {"text": "**You can add Emojis to charts and dashboards:**\nRise and Fall ▲ ● ▼ 🔺 🔻 ↗️ ↘️\nInfo and links 🔗 ⓘ 🗯️ 🗯 ❔\nWarning ⚠ ⚠️ ❗ ❕ 📛 🔔 ⚡ 🚨\nTrue/False ✅ / ❌ ⊞ ⊟\nSearch 🔍 \nCompetitors and partners ⚔️ 🤍 ⭐\nChart type legend 📊 📈 💹\nText legend: ■ ● — ◻︎\n🟥 🟧 🟨 🟩 🟦 🟪 🟫 ⬛ ⬜\n🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫ ⚪\n"}, "type": "text", "namespace": "default"}, {"id": "kJv", "data": {"size": "l", "text": "Emoji", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "eD4", "data": {"text": "You can add various types of objects to a dashboard and format them using formatting functions and markdown."}, "type": "text", "namespace": "default"}, {"id": "dYz", "data": {"text": "**Bold text**\n_Italic text_\n**_Italic Bold text_**\n\n**Lists**\n* Point 1\n* Point 2\n* Point 3"}, "type": "text", "namespace": "default"}, {"id": "vLn", "data": {"size": "l", "text": "Links and formating functions", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "aJ1", "data": {"text": "You can use```URL()``` to create links to other applications or dashboards.\n ``URL(\"https://www.google.com/search$116q=\" + [Product name], [Product name])`` — link to Google\nAlso you can format text by formating functions such as BOLD(), ITALIC() and MARKUP()"}, "type": "text", "namespace": "default"}, {"id": "JAv", "data": {"tabs": [{"id": "O2N", "title": "Click row to go to url", "params": {}, "chartId": "z4wtzhsv4vxko", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "3ey", "data": {"text": "**Code**\n\n```kotlin\n val a: Int = 1\n```\n\n#### **Foldable sections**\n{% cut \"Show text\" %}\n\nHidden text\n\n{% endcut %}"}, "type": "text", "namespace": "default"}, {"id": "Jv7", "data": {"text": "># **Formating**"}, "type": "text", "namespace": "default"}, {"id": "p42", "data": {"size": "m", "text": "Header M", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "jpB", "data": {"size": "xs", "text": "Header XS", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "ZbQ", "data": {"text": "# **Text objects**\nText objects allow you to create various types of content: text with formating, images. links, code, list, foldable sections and tables "}, "type": "text", "namespace": "default"}, {"id": "8Ez", "data": {"text": "**Tables**\n\n#|\n|| **⚠ Status** | **Condition** ||\n|| Golden| more than 10 purchases||\n|| Silver | up to 10 purchases||\n|| Basic | 1 purchase per year||\n|#\n\n"}, "type": "text", "namespace": "default"}, {"id": "ljW", "data": {"text": "1. Point 1\n2. Point 2\n3. Point 3"}, "type": "text", "namespace": "default"}, {"id": "6N1", "data": {"text": ""}, "type": "text", "namespace": "default"}, {"id": "ozN", "data": {"text": "#\nYou can use emojis and utf symbols to create conditional formating. And you can use formating fields options in tables for color formating and bar charts."}, "type": "text", "namespace": "default"}, {"id": "XXa", "data": {"text": "⌚ 📱 📲 💻 ⌨ 🖥 🖨 🖱 🖲 🕹 🗜 💽 💾 💿 📀 📼 📷 📸 📹 🎥 📽 🎞 📞 ☎ 📟 📠 📺 📻 🎙 🎚 🎛 ⏱ ⏲ ⏰ 🕰 ⏳ ⌛ 🧮 📡 🔋 🔌 💡 🔦 🕯 🧯 🗑 🛢 🛒 💸 💵 💴 💶 💷 💰 🪙 💳 🧾 💎 ⚖ 🦯 🧰 🔧 🪛 🔨 ⚒ 🛠 ⛏ 🪓 🪚 🔩 ⚙ ⛓ 🧱 🔫 🧨 💣 🔪 🗡 ⚔ 🛡 🚬 ⚰ 🪦 ⚱ 🏺 🔮 🪄 📿 🧿 💈 🧲 ⚗ 🧪 🧫 🧬 🔭 🔬 🕳 💊 💉 🩸 🩹 🩺 🌡 🏷 🔖 🚽 🪠 🚿 🛁 🛀 🪥 🪒 🧴 🧻 🧼 🧽 🧹 🧺 🪣 🔑 🗝 🪤 🛋 🪑 🛌 🛏 🚪 🪞 🪟 🧳 🛎 🖼 🧭 🗺 ⛱ 🗿 🛍 🎈 🎏 🎀 🧧 🎁 🎊 🎉 🪅 🪆 🎎 🎐 🏮 🪔 ✉ 📩 📨 📧 💌 📮 📪 📫 📬 📭 📦 📯 📥 📤 📜 📃 📑 📊 📈 📉 📄 📅 📆 🗓 📇 🗃 🗳 🗄 📋 🗒 📁 📂 🗂 🗞 📰 🪧 📓 📕 📗 📘 📙 📔 📒 📚 📖 🔗 📎 🖇 ✂ 📐 📏 📌 📍 🧷 🪡 🧵 🧶 🪢 🔐 🔒 🔓 🔏 🖊 🖋 ✒ 📝 ✏ 🖍 🖌 🔍 🔎 👚 👕 🥼 🦺 🧥 👖 👔 👗 👘 🥻 🩱 👙 🩲 🩳 💄 💋 👣 🧦 🩴 👠 👡 👢 🥿 👞 👟 🩰 🥾 🧢 👒 🎩 🎓 👑 ⛑ 🪖 🎒 👝 👛 👜 💼 👓 🕶 🥽 🧣 🧤 💍 🌂 ☂\n\n😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 🥰 😘 😗 😙 😚 😋 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🥸 🤩 🥳 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 🥺 😢 😭 😮‍💨 😤 😠 😡 🤬 🤯 😳 🥵 🥶 😱 😨 😰 😥 😓 😶‍🌫️ 😐 😑 😬 🙄 😯 😦 😧 😮 😲 🥱 😴 🤤 😪 😵 😵‍💫 🫥 🤐 🥴 🤢 🤮 🤧 😷 🤒\n\n👋 🤚 🖐 ✋ 🖖 👌 🤏 ✌️ 🤞 🤟 🤘 🤙 👈 👉 👆 🖕 👇 ☝️ 👍 👎 ✊ 👊 🤛 🤜 👏 🙌 👐 🤲 🤝 🙏 ✍️ 💅 🤳 💪 🦾 🦵 🦿 🦶 👣 👂 🦻 👃 🧠 🦷 🦴 👀 👁 👅 👄 💋 🩸\n\n👶 👧 🧒 👦 👩 🧑 👨 👩‍🦱 🧑‍🦱 👨‍🦱 👩‍🦰 🧑‍🦰 👨‍🦰 👱‍♀️ 👱 👱‍♂️ 👩‍🦳 🧑‍🦳 👨‍🦳 👩‍🦲 🧑‍🦲 👨‍🦲 🧔‍♀️ 🧔 🧔‍♂️ 👵 🧓 👴 👲 👳‍♀️ 👳 👳‍♂️ 🧕 👮‍♀️ 👮 👮‍♂️ 👷‍♀️ 👷 👷‍♂️ 💂‍♀️ 💂 💂‍♂️ 🕵️‍♀️ 🕵️ 🕵️‍♂️ 👩‍⚕️ 🧑‍⚕️ 👨‍⚕️ 👩‍🌾 🧑‍🌾 👨‍🌾 👩‍🍳 🧑‍🍳 👨‍🍳 👩‍🎓 🧑‍🎓 👨‍🎓 👩‍🎤 🧑‍🎤 👨‍🎤 👩‍🏫 🧑‍🏫 👨‍🏫 👩‍🏭 🧑‍🏭 👨‍🏭 👩‍💻 🧑‍💻 👨‍💻 👩‍💼 🧑‍💼 👨‍💼 👩‍🔧 🧑‍🔧 👨‍🔧 👩‍🔬 🧑‍🔬 👨‍🔬 👩‍🎨 🧑‍🎨 👨‍🎨 👩‍🚒 🧑‍🚒 👨‍🚒 👩‍✈️ 🧑‍✈️ 👨‍✈️ 👩‍🚀 🧑‍🚀 👨‍🚀 👩‍⚖️ 🧑‍⚖️ 👨‍⚖️ 👰‍♀️ 👰 👰‍♂️ 🤵‍♀️ 🤵 🤵‍♂️ 👸 🤴 🦸‍♀️ 🦸 🦸‍♂️ 🦹‍♀️ 🦹 🦹‍♂️ 🤶 🧑‍🎄 🎅 🧙‍♀️ 🧙 🧙‍♂️ 🧝‍♀️ 🧝 🧝‍♂️ 🧛‍♀️ 🧛 🧛‍♂️ 🧟‍♀️ 🧟 🧟‍♂️ 🧞‍♀️ 🧞 🧞‍♂️ 🧜‍♀️ 🧜 🧜‍♂️ 🧚‍♀️ 🧚 🧚‍♂️ 🧌 👼 🤰 🫄 🫃 🤱 👩‍🍼 🧑‍🍼 👨‍🍼 🙇‍♀️ 🙇 🙇‍♂️ 💁‍♀️ 💁 💁‍♂️ 🙅‍♀️ 🙅 🙅‍♂️ 🙆‍♀️ 🙆 🙆‍♂️ 🙋‍♀️ 🙋 🙋‍♂️ 🧏‍♀️ 🧏 🧏‍♂️ 🤦‍♀️ 🤦 🤦‍♂️ 🤷‍♀️ 🤷 🤷‍♂️ 🙎‍♀️ 🙎 🙎‍♂️ 🙍‍♀️ 🙍 🙍‍♂️ 💇‍♀️ 💇 💇‍♂️ 💆‍♀️ 💆 💆‍♂️ 🧖‍♀️ 🧖 🧖‍♂️ 💅 🤳 💃 🕺 👯‍♀️ 👯 👯‍♂️ 🕴 👩‍🦽 🧑‍🦽 👨‍🦽 👩‍🦼 🧑‍🦼 👨‍🦼 🚶‍♀️ 🚶 🚶‍♂️ 👩‍🦯 🧑‍🦯 👨‍🦯 🧎‍♀️ 🧎 🧎‍♂️ 🏃‍♀️ 🏃 🏃‍♂️ 🧍‍♀️ 🧍 🧍‍♂️ 👭 🧑‍🤝‍🧑 👬 👫 👩‍❤️‍👩 💑 👨‍❤️‍👨 👩‍❤️‍👨 👩‍❤️‍💋‍👩 💏 👨‍❤️‍💋‍👨 👩‍❤️‍💋‍👨 👪 👨‍👩‍👦 👨‍👩‍👧 👨‍👩‍👧‍👦 👨‍👩‍👦‍👦 👨‍👩‍👧‍👧 👨‍👨‍👦 👨‍👨‍👧 👨‍👨‍👧‍👦 👨‍👨‍👦‍👦 👨‍👨‍👧‍👧 👩‍👩‍👦 👩‍👩‍👧 👩‍👩‍👧‍👦 👩‍👩‍👦‍👦 👩‍👩‍👧‍👧 👨‍👦 👨‍👦‍👦 👨‍👧 👨‍👧‍👦 👨‍👧‍👧 👩‍👦 👩‍👦‍👦 👩‍👧 👩‍👧‍👦 👩‍👧‍👧 🗣 👤 👥\n\n🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐼 🐻‍❄️ 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵 🙈 🙉 🙊 🐒 🐔 🐧 🐦 🐤 🐣 🐥 🦆 🦅 🦉 🦇 🐺 🐗 🐴 🦄 🐝 🪱 🐛 🦋 🐌 🐞 🐜🦟 🦗 🕷 🕸 🦂 🐢 🐍 🦎 🦖 🦕 🐙 🦑 🦐 🦞 🦀 🪸 🐡 🐠 🐟 🐬 🐳 🐋 🦈 🐊 🐅 🐆 🦓 🦍 🦧 🦣 🐘 🦛 🦏 🐪 🐫 🦒 🦘 🦬 🐃 🐂 🐄 🐎 🐖 🐏 🐑 🦙 🐐 🦌 🐕 🐩 🦮 🐕‍🦺 🐈 🐈‍⬛ 🐓 🦃 🦤 🦚 🦜 🦢 🦩 🕊 🐇 🦝 🦨 🦡 🦫 🦦 🦥 🐁 🐀 🐿 🦔 🐾 🐉 🐲 🌵 🎄 🌲 🌳 🌴 🌱 🌿 ☘️ 🍀 🎍 🪴 🎋 🍃 🍂 🍁 🍄 🐚 🪨 🌾 💐 🌷 🪷 🌹 🥀 🌺 🌸 🌼 🌻 🌞 🌝 🌛 🌜 🌚 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔 🌙 🌎 🌍 🌏 🪐 💫 ⭐️ 🌟 ✨ ⚡️ ☄️ 💥 🔥 🌪 🌈 ☀️ 🌤 ⛅️ 🌥 ☁️ 🌦 🌧 ⛈ 🌩 🌨 ❄️ ☃️ ⛄️ 🌬 💨 💧 💦 🫧 ☔️ ☂️ 🌊 🌫\n\n🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓🍈 🍒 🍑 🥭 🍍 🥥 🥝 🍅 🍆 🥑 🥦 🥬 🥒 🌶 🌽 🥕 🧄 🧅 🥔 🍠 🥐 🥯 🍞 🥖 🥨 🧀 🥚 🍳 🧈 🥞 🧇 🥓 🥩 🍗 🍖 🦴 🌭 🍔 🍟 🍕 🥪 🥙 🧆 🌮 🌯 🥗 🥘 🥫 🍝 🍜 🍲 🍛 🍣 🍱 🥟 🦪 🍤 🍙 🍚 🍘 🍥 🥠 🥮 🍢 🍡 🍧 🍨 🍦 🥧 🧁 🍰 🎂 🍮 🍭 🍬 🍫 🍿 🍩 🍪 🌰 🥜 🍯 🥛 🍼 ☕️ 🍵 🧃 🥤 🍶 🍺 🍻 🥂 🍷 🫗 🥃 🍸 🍹 🧉 🍾 🧊 🥄 🍴 🍽 🥣 🥡 🥢 🧂\n\n⚽️ 🏀 🏈 ⚾️ 🥎 🎾 🏐 🏉 🥏 🎱 🪀 🏓 🏸 🏒 🏑 🥍 🏏 🪃 🥅 ⛳️ 🪁 🏹 🎣 🤿 🥊 🥋 🎽 🛹 🛼 🛷 ⛸ 🥌 🎿 ⛷ 🏂 🪂 🏋️‍♀️ 🏋️ 🏋️‍♂️ 🤼‍♀️ 🤼 🤼‍♂️ 🤸‍♀️ 🤸 🤸‍♂️ ⛹️‍♀️ ⛹️ ⛹️‍♂️ 🤺 🤾‍♀️ 🤾 🤾‍♂️ 🏌️‍♀️ 🏌️ 🏌️‍♂️ 🏇 🧘‍♀️ 🧘 🧘‍♂️ 🏄‍♀️ 🏄 🏄‍♂️ 🏊‍♀️ 🏊 🏊‍♂️ 🤽‍♀️ 🤽 🤽‍♂️ 🚣‍♀️ 🚣 🚣‍♂️ 🧗‍♀️ 🧗 🧗‍♂️ 🚵‍♀️ 🚵 🚵‍♂️ 🚴‍♀️ 🚴 🚴‍♂️ 🏆 🥇 🥈 🥉 🏅 🎖 🏵 🎗 🎫 🎟 🎪 🤹 🤹‍♂️ 🤹‍♀️ 🎭 🩰 🎨 🎬 🎤 🎧 🎼 🎹 🥁 🪘 🎷 🎺 🪗 🎸 🪕 🎻 🎲 ♟ 🎯 🎳 🎮 🎰 🧩\n\n🡣\t🡫\t🡳\t🡻\t🢃\t⇓\t⇩\t⬇\n🡩\t🡡\t🡱\t🡹\t🢁\t⇑\t⇧\t⬆\n🡮\t🡦\t🡶\t🡾\t🢆\t⇘\t⬂\t⬊\n🡢\t🡪\t🡲\t🡺\t🢂\t⇒\t⇨\t⬇\n🡥\t🡭\t🡵\t🡽\t🢅\t⇗\t⬀\t⬈\n🡧\t🡯\t🡷\t🡿\t🢇\t⇙\t⬃\t⬋\n🡠\t🡨\t🡰\t🡸\t🢀\t⇐\t⇦\t⬅\n🡤\t🡬\t🡴\t🡼\t🢄\t⇖\t⬁\t⬉"}, "type": "text", "namespace": "default"}], "title": "Formating", "layout": [{"h": 4, "i": "9kY", "w": 5, "x": 0, "y": 9}, {"h": 4, "i": "rdR", "w": 7, "x": 5, "y": 13}, {"h": 4, "i": "1ZA", "w": 12, "x": 0, "y": 5}, {"h": 9, "i": "noj", "w": 10, "x": 0, "y": 49}, {"h": 2, "i": "kJv", "w": 36, "x": 0, "y": 47}, {"h": 2, "i": "eD4", "w": 36, "x": 0, "y": 3}, {"h": 8, "i": "dYz", "w": 4, "x": 12, "y": 9}, {"h": 3, "i": "vLn", "w": 36, "x": 0, "y": 17}, {"h": 4, "i": "aJ1", "w": 25, "x": 0, "y": 20}, {"h": 23, "i": "JAv", "w": 36, "x": 0, "y": 24}, {"h": 8, "i": "3ey", "w": 7, "x": 21, "y": 9}, {"h": 3, "i": "Jv7", "w": 36, "x": 0, "y": 0}, {"h": 4, "i": "p42", "w": 7, "x": 5, "y": 9}, {"h": 4, "i": "jpB", "w": 5, "x": 0, "y": 13}, {"h": 4, "i": "ZbQ", "w": 24, "x": 12, "y": 5}, {"h": 8, "i": "8Ez", "w": 8, "x": 28, "y": 9}, {"h": 4, "i": "ljW", "w": 5, "x": 16, "y": 13}, {"h": 4, "i": "6N1", "w": 5, "x": 16, "y": 9}, {"h": 4, "i": "ozN", "w": 11, "x": 25, "y": 20}, {"h": 9, "i": "XXa", "w": 26, "x": 10, "y": 49}], "aliases": {}, "connections": []}, {"id": "Zyd", "items": [{"id": "Q94", "data": {"text": "The parameters allow to configure calculated fields.On the dashboard, parameter values are set with selectors. Selectors should be created not based on the dataset, but using \"manual input\" tab, using the name of the parameter. \n\n**⚠ Important!** After adding a manual selector to the dashboard disconnect this selector from all other selectors on the dashboard tab. If the connection is not set to ignore the drop-down list of available values of other selectors will be empty."}, "type": "text", "namespace": "default"}, {"id": "BXL", "data": {"title": "ago-period", "source": {"fieldName": "ago-period", "showTitle": true, "elementType": "input", "defaultValue": "2"}, "sourceType": "manual"}, "type": "control", "defaults": {"ago-period": "2"}, "namespace": "default"}, {"id": "RRK", "data": {"title": "Группировка", "source": {"fieldName": "scale", "operation": null, "showTitle": true, "elementType": "select", "defaultValue": "month", "multiselectable": false, "acceptableValues": [{"title": "day", "value": "day"}, {"title": "week", "value": "week"}, {"title": "month", "value": "month"}, {"title": "year", "value": "year"}]}, "sourceType": "manual"}, "type": "control", "layout": {"h": 2, "w": 6}, "defaults": {"scale": "month"}, "namespace": "default"}, {"id": "Krb", "data": {"size": "l", "text": "Dimensions ane Measures controls", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "A9O", "data": {"tabs": [{"id": "NlO", "title": "Title 1", "params": {}, "chartId": "491y4ewqzvbut", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Mrv", "data": {"title": "Dimension", "source": {"fieldName": "dimension", "showTitle": true, "elementType": "select", "defaultValue": "Region", "acceptableValues": [{"title": "Population group", "value": "Population group"}, {"title": "Region", "value": "Region"}, {"title": "Neighbourhood", "value": "Neighbourhood"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"dimension": "Region"}, "namespace": "default"}, {"id": "3WW", "data": {"text": "Create a parameter `dimension` and `metric` at dataset\n\nAdd calculated fileds:\n```\nCASE([dimension],\n ''Region'', [Region],\n ''Neighbourhood'',[Neighbourhood],\n ''Population group'',[Population group],\n null)\n```\n\n\n```\nIF [metric]= \"sales\" THEN INT(SUM([amount]))\nELSEIF [metric]=\"quantity\" THEN SUM([quantity])\nEND\n```\n\nMesures with same type can only be used in that case."}, "type": "text", "namespace": "default"}, {"id": "1Jl", "data": {"title": "Metric", "source": {"fieldName": "metric", "showTitle": true, "elementType": "select", "defaultValue": "quantity", "acceptableValues": [{"title": "quantity", "value": "quantity"}, {"title": "sales", "value": "sales"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"metric": "quantity"}, "namespace": "default"}, {"id": "n46", "data": {"text": "> # **Parameters**"}, "type": "text", "namespace": "default"}], "title": "Parameters", "layout": [{"h": 6, "i": "Q94", "w": 36, "x": 0, "y": 3}, {"h": 2, "i": "BXL", "w": 6, "x": 0, "y": 17}, {"h": 2, "i": "RRK", "w": 6, "x": 0, "y": 15}, {"h": 2, "i": "Krb", "w": 36, "x": 0, "y": 9}, {"h": 14, "i": "A9O", "w": 15, "x": 6, "y": 11}, {"h": 2, "i": "Mrv", "w": 6, "x": 0, "y": 11}, {"h": 14, "i": "3WW", "w": 15, "x": 21, "y": 11}, {"h": 2, "i": "1Jl", "w": 6, "x": 0, "y": 13}, {"h": 3, "i": "n46", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": [{"to": "NlO", "from": "RRK", "kind": "ignore"}, {"to": "RRK", "from": "NlO", "kind": "ignore"}, {"to": "NlO", "from": "BXL", "kind": "ignore"}, {"to": "BXL", "from": "NlO", "kind": "ignore"}, {"to": "BXL", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "BXL", "kind": "ignore"}, {"to": "RRK", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "RRK", "kind": "ignore"}, {"to": "Mrv", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "Mrv", "kind": "ignore"}]}, {"id": "GD4", "items": [{"id": "6B5", "data": {"title": "Order date", "source": {"isRange": true, "datasetId": "qvnkqz8s0wdqf", "showTitle": true, "elementType": "date", "defaultValue": "__interval___relative_-7y___relative_-0d", "datasetFieldId": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7"}, "sourceType": "dataset"}, "type": "control", "defaults": {"3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7": "__interval___relative_-7y___relative_-0d"}, "namespace": "default"}, {"id": "oZJ", "data": {"text": "In order to work with dates its important to set data type of fileds to date at datasource. If format you are using is not recognized automatically you can convert the data type using the functions: DATETIME(), DATE(), DATETIME_PARSE(), DATE_PARSE()."}, "type": "text", "namespace": "default"}, {"id": "XEj", "data": {"text": "Date type fields support calendars as selectors and flexible automatic relative dates selections like: last year, last 7 days, last and next 3 months and so on. "}, "type": "text", "namespace": "default"}, {"id": "jPL", "data": {"tabs": [{"id": "p15", "title": "Title 1", "params": {}, "chartId": "ejb8ep80pi163", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "L3R", "data": {"text": "**Rows**:\nMonth - `DATETRUNC([Order date], \"month\")`\nWeek number - `if( week([Order date])>51 and MONTH([Order date])=1, 0, week([Order date]))` -- if statement to get right result at the end of a year\n\n**Columns**:\nDay oof Week - `CASE(DAYOFWEEK([Order date]),1,\"1-Mn\",2,\"2-Tu\",3,\"3-We\",4,\"4-Th\",5,\"5-Fr\",6,\"6-St\",7,\"7-Sn\",\"NA\")`\n\n**Cell**:\nDay - `max(DAY([Order date]))` -- Max is needed to convert it to Measure\n\n**Color**:\n`Sales - SUM([amount])` -- Metric for heatmap"}, "type": "text", "namespace": "default"}, {"id": "e3E", "data": {"size": "m", "text": "Month over Month and AGO()", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "GAX", "data": {"tabs": [{"id": "dMV", "title": "Title 1", "params": {}, "chartId": "27zw2f553fpqr", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Ka4", "data": {"text": "Add calculated field `AGO([Sales], [Date Month], ''month'', 1)`. \\[Documentation link\\](https://cloud.yandex.ru/docs/datalens/function-ref/AGO\n\nTo calculate MoM,% create a calculated field `([Sales] - [Ago 1 Month Sales]) / ABS([Ago 1 Month Sales])`\n\nAlso you can use functions LAG() or AT_DATE() for different cases. For example `AT_DATE([Sales],[Date], DATETRUNC([Date],''week''))` will give you Sales at the first date of the week."}, "type": "text", "namespace": "default"}, {"id": "7Ea", "data": {"text": "># **Date functions**"}, "type": "text", "namespace": "default"}, {"id": "Npo", "data": {"size": "m", "text": "Heatmap calendar", "showInTOC": true}, "type": "title", "namespace": "default"}], "title": "Date functions", "layout": [{"h": 4, "i": "6B5", "w": 7, "x": 29, "y": 3}, {"h": 4, "i": "oZJ", "w": 17, "x": 0, "y": 3}, {"h": 4, "i": "XEj", "w": 12, "x": 17, "y": 3}, {"h": 17, "i": "jPL", "w": 18, "x": 0, "y": 30}, {"h": 17, "i": "L3R", "w": 18, "x": 18, "y": 30}, {"h": 3, "i": "e3E", "w": 36, "x": 0, "y": 7}, {"h": 17, "i": "GAX", "w": 18, "x": 0, "y": 10}, {"h": 17, "i": "Ka4", "w": 18, "x": 18, "y": 10}, {"h": 3, "i": "7Ea", "w": 36, "x": 0, "y": 0}, {"h": 3, "i": "Npo", "w": 36, "x": 0, "y": 27}], "aliases": {}, "connections": [{"to": "p15", "from": "6B5", "kind": "ignore"}, {"to": "6B5", "from": "p15", "kind": "ignore"}]}, {"id": "Are", "items": [{"id": "evd", "data": {"tabs": [{"id": "EB3", "title": "Title 1", "params": {}, "chartId": "sxpms3pgygm6h", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "GBp", "data": {"tabs": [{"id": "dWP", "title": "Title 1", "params": {}, "chartId": "af74aq6s79dez", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "7gg", "data": {"tabs": [{"id": "KQn", "title": "Title 1", "params": {}, "chartId": "tyqnt5kbstbsi", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "AMe", "data": {"tabs": [{"id": "d6z", "title": "Title 1", "params": {}, "chartId": "ch96cl4boozy1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "3g5", "data": {"tabs": [{"id": "MXb", "title": "Title 1", "params": {}, "chartId": "8d528nx6xy7ix", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "OO2", "data": {"size": "l", "text": "Top 5", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "J5Z", "data": {"size": "l", "text": "Top 3 for each category", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "pDn", "data": {"size": "m", "text": "Percent of total", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "GB1", "data": {"size": "l", "text": "Percent of total by years and regions", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "KQY", "data": {"size": "m", "text": "Running sum", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "NRY", "data": {"text": "To filter top 5 create calculated filed with `rank([Sales])` function and drug this filed to Filter section.\n\nYou can find additional info about `RANK` in documentation."}, "type": "text", "namespace": "default"}, {"id": "AMA", "data": {"text": "Add calculated field `rank([Sales] WITHIN [Category])` and drag it to Filter section,\n\nYou can find additional info about `RANK` in documentation."}, "type": "text", "namespace": "default"}, {"id": "MX1", "data": {"text": "Add calculated filed `[Sales] / sum([Sales] Total) `.\n\nYou can find additional info about `SUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "3gr", "data": {"text": "Add calculated filed `[Sales] / sum([Sales] WITHIN [Year])`.\n\nYou can find additional info about `SUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "v26", "data": {"text": "Add calculated filed `RSUM([Sales])`.\n\nUsing `RSUM()` requires sort by dimension in Sort section.\n\nYou can find additional info about `RSUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "n7p", "data": {"text": "Calculated fields are created at the dataset level or at the chart level (will be available only for this chart). In the examples, calculated fields are created at the chart level. You can edit them quickly and immediately see the result on the visualization.\n\nFor a general description of window functions, see documentation."}, "type": "text", "namespace": "default"}, {"id": "9YE", "data": {"text": "># **Window functions**"}, "type": "text", "namespace": "default"}], "title": "Window functions", "layout": [{"h": 10, "i": "evd", "w": 17, "x": 0, "y": 9}, {"h": 12, "i": "GBp", "w": 17, "x": 0, "y": 21}, {"h": 12, "i": "7gg", "w": 17, "x": 0, "y": 40}, {"h": 15, "i": "AMe", "w": 17, "x": 0, "y": 51}, {"h": 12, "i": "3g5", "w": 17, "x": 0, "y": 68}, {"h": 2, "i": "OO2", "w": 36, "x": 0, "y": 7}, {"h": 2, "i": "J5Z", "w": 36, "x": 0, "y": 19}, {"h": 2, "i": "pDn", "w": 36, "x": 0, "y": 38}, {"h": 2, "i": "GB1", "w": 36, "x": 0, "y": 49}, {"h": 2, "i": "KQY", "w": 36, "x": 0, "y": 66}, {"h": 10, "i": "NRY", "w": 19, "x": 17, "y": 9}, {"h": 17, "i": "AMA", "w": 19, "x": 17, "y": 21}, {"h": 4, "i": "MX1", "w": 19, "x": 17, "y": 40}, {"h": 6, "i": "3gr", "w": 19, "x": 17, "y": 51}, {"h": 4, "i": "v26", "w": 19, "x": 17, "y": 68}, {"h": 4, "i": "n7p", "w": 36, "x": 0, "y": 3}, {"h": 3, "i": "9YE", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "457", "items": [{"id": "lGA", "data": {"tabs": [{"id": "4Q8", "title": "FIXED", "params": {}, "chartId": "qvnkq5oj2gy2f", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "64y", "data": {"size": "l", "text": "Percent of total for COUNTD()", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "QLY", "data": {"text": "Create a calculated field `COUNTD([Client ID]) / COUNTD([Client ID] FIXED)`."}, "type": "text", "namespace": "default"}, {"id": "o6l", "data": {"size": "l", "text": "Double aggregation", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "0a8", "data": {"tabs": [{"id": "XaZ", "title": "INCLUDE", "params": {}, "chartId": "rwolr3bej5gwg", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "grL", "data": {"text": "Calculated field `AVG(COUNT([client ID] INCLUDE [Application date]))` allows you to perform double aggregation: first we count the number of unique buyers by day, then we count the average of them across a month. In this example, the average is calculated by month (see chart measurement). Thus, we got the \"average clients per day\"."}, "type": "text", "namespace": "default"}, {"id": "PGJ", "data": {"text": "Examples of using Level of Detail (LOD) or double aggregation functions in calculated fields. In some cases, LODs are similar to regular window functions. An important difference between LOD functions is the support of the `COUNTD` function."}, "type": "text", "namespace": "default"}, {"id": "Wod", "data": {"text": "># **Level of Details functions**"}, "type": "text", "namespace": "default"}], "title": "Level of detail functions", "layout": [{"h": 17, "i": "lGA", "w": 19, "x": 0, "y": 10}, {"h": 2, "i": "64y", "w": 36, "x": 0, "y": 8}, {"h": 17, "i": "QLY", "w": 17, "x": 19, "y": 10}, {"h": 2, "i": "o6l", "w": 36, "x": 0, "y": 27}, {"h": 16, "i": "0a8", "w": 19, "x": 0, "y": 29}, {"h": 16, "i": "grL", "w": 17, "x": 19, "y": 29}, {"h": 5, "i": "PGJ", "w": 20, "x": 0, "y": 3}, {"h": 3, "i": "Wod", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "71g", "items": [{"id": "J9l", "data": {"tabs": [{"id": "Obz", "title": "This chart is linked only to the selecot above", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "jn0", "data": {"tabs": [{"id": "p6R", "title": "Title 1", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "ZG6", "data": {"tabs": [{"id": "LbN", "title": "Title 1", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "84v", "data": {"title": "Main category", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"45bdfbb6-1dd9-41bd-9871-b011efd8ec6b": ""}, "namespace": "default"}, {"id": "4Z8", "data": {"title": "Category to compare", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"45bdfbb6-1dd9-41bd-9871-b011efd8ec6b": ""}, "namespace": "default"}, {"id": "l6A", "data": {"text": "The page provides an example of setting up links between selectors and charts. To change the settings in the dashboard editing mode, click on the \"links\" button on the top panel. This page uses only one chart added multiple times."}, "type": "text", "namespace": "default"}, {"id": "6dy", "data": {"title": "Year", "source": {"datasetId": "qvnkqz8s0wdqf", "showTitle": true, "elementType": "select", "datasetFieldId": "9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2", "multiselectable": true}, "sourceType": "dataset"}, "type": "control", "defaults": {"9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2": ""}, "namespace": "default"}, {"id": "QKY", "data": {"text": "This is the selector that linked to all charts at the tab."}, "type": "text", "namespace": "default"}, {"id": "ojl", "data": {"text": "You can create comparison panels using that approach. "}, "type": "text", "namespace": "default"}, {"id": "XMZ", "data": {"text": " "}, "type": "text", "namespace": "default"}, {"id": "voX", "data": {"size": "l", "text": "The same chart is filtered independently by different selectors ", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "5Y0", "data": {"text": "># **Selectors**"}, "type": "text", "namespace": "default"}], "title": "Selectors", "layout": [{"h": 15, "i": "J9l", "w": 22, "x": 0, "y": 7}, {"h": 15, "i": "jn0", "w": 11, "x": 0, "y": 26}, {"h": 15, "i": "ZG6", "w": 11, "x": 11, "y": 26}, {"h": 2, "i": "84v", "w": 11, "x": 0, "y": 24}, {"h": 2, "i": "4Z8", "w": 11, "x": 11, "y": 24}, {"h": 2, "i": "l6A", "w": 36, "x": 0, "y": 3}, {"h": 2, "i": "6dy", "w": 6, "x": 0, "y": 5}, {"h": 2, "i": "QKY", "w": 30, "x": 6, "y": 5}, {"h": 17, "i": "ojl", "w": 14, "x": 22, "y": 24}, {"h": 15, "i": "XMZ", "w": 14, "x": 22, "y": 7}, {"h": 2, "i": "voX", "w": 36, "x": 0, "y": 22}, {"h": 3, "i": "5Y0", "w": 36, "x": 0, "y": 0}], "aliases": {"default": [["0483c778-3a9a-4f65-8168-1beb8818580f", "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b"]]}, "connections": [{"to": "84v", "from": "Obz", "kind": "ignore"}, {"to": "Obz", "from": "84v", "kind": "ignore"}, {"to": "4Z8", "from": "Obz", "kind": "ignore"}, {"to": "Obz", "from": "4Z8", "kind": "ignore"}, {"to": "4Z8", "from": "p6R", "kind": "ignore"}, {"to": "p6R", "from": "4Z8", "kind": "ignore"}, {"to": "84v", "from": "LbN", "kind": "ignore"}, {"to": "LbN", "from": "84v", "kind": "ignore"}, {"to": "4Z8", "from": "84v", "kind": "ignore"}, {"to": "84v", "from": "4Z8", "kind": "ignore"}]}, {"id": "PoW", "items": [{"id": "bdQ", "data": {"tabs": [{"id": "Ral", "title": "Data", "params": {}, "chartId": "491y4hy1jw5yt", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "9Kn", "data": {"tabs": [{"id": "Y1g", "title": "Title 1", "params": {}, "chartId": "sxpmsao0sscqh", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "1kE", "data": {"tabs": [{"id": "roE", "title": "Title 1", "params": {}, "chartId": "fkc9fu79zvxg4", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "W15", "data": {"tabs": [{"id": "nde", "title": "Title 1", "params": {}, "chartId": "27zw2juwp5emr", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "k76", "data": {"text": "Cohorts analysis is a common analysis type in product analytics. You can create this type of analysis in DataLens. We need to get a dataset with three fields:\n— Client ID\n— Order date\n— First Order date or Activation date\n\nYou can create such dataset on a database level or using custom SQL in dataset like that:\n```sql\nSELECT\n\tt1.user_id,\n\tt1.order_platform,\n\tdate_trunc(''day'', t2.FirstDate) as \"FirstOrderDate\",\n\tdate_trunc(''day'', t1.order_creation_date) as \"OrderDate\"\nFROM\n\t\"opensource-demo\".orders as t1,\n\t(SELECT\n\t\tuser_id,\n\t\tMIN(order_creation_date) as FirstDate\n\t\tFROM \"opensource-demo\".orders\n\tGROUP BY user_id) as t2\nWHERE t1.user_id = t2.user_id\n```\n\nThat will result data like on the right side."}, "type": "text", "namespace": "default"}, {"id": "EL4", "data": {"text": "Using `DATETRUNC([FirstOrderDate],''MONTH'')` calculate a First order month. Using `floor(([OrderDate]-[FirstOrderDate])/30)` calculate amount of periods past from first order date. Using COUNTD([Client ID]) calculate number of clients in each cohort. Use this fileds configure a table like that:"}, "type": "text", "namespace": "default"}, {"id": "e1J", "data": {"text": "For accurate analysis it is better to use color coding by columns. That way we will be able to compare same \"age\" cohorts. In order to do so create a filed\n`[COUNTD(Client ID)]/MAX([COUNTD(Client ID)] among [FirstOrder_Month])` and drag it to color setion."}, "type": "text", "namespace": "default"}, {"id": "dlQ", "data": {"text": "To display retention, starting from the period \"1\" (to see what percentage of the original customers remained with active), use the calculated field:\n\n```sql\nif (\n[30d]=0,\nstr(round([COUNT([Client ID])),\nconcat(str(round(100*[Client ID]/RMAX([Client ID] among [30d]))), \"%\")\n)\n```\n\nFor color:\n\n```sql\nif (\n[30d]=0,\n(round([COUNTS])),\n(round(100*[COUNTS]/RMAX([COUNTS] among [30d])))\n)\n```"}, "type": "text", "namespace": "default"}, {"id": "3jP", "data": {"text": "># **Cohorts**"}, "type": "text", "namespace": "default"}, {"id": "v47", "data": {"size": "l", "text": "Data", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "a7L", "data": {"size": "l", "text": "Basic cohorts", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "Oj3", "data": {"size": "l", "text": "Retention and cohort size at one chart", "showInTOC": true}, "type": "title", "namespace": "default"}], "title": "Cohorts", "layout": [{"h": 21, "i": "bdQ", "w": 20, "x": 16, "y": 5}, {"h": 25, "i": "9Kn", "w": 36, "x": 0, "y": 32}, {"h": 17, "i": "1kE", "w": 36, "x": 0, "y": 52}, {"h": 27, "i": "W15", "w": 24, "x": 12, "y": 72}, {"h": 21, "i": "k76", "w": 16, "x": 0, "y": 5}, {"h": 3, "i": "EL4", "w": 36, "x": 0, "y": 29}, {"h": 4, "i": "e1J", "w": 36, "x": 0, "y": 48}, {"h": 18, "i": "dlQ", "w": 12, "x": 0, "y": 72}, {"h": 3, "i": "3jP", "w": 36, "x": 0, "y": 0}, {"h": 2, "i": "v47", "w": 36, "x": 0, "y": 3}, {"h": 3, "i": "a7L", "w": 36, "x": 0, "y": 26}, {"h": 3, "i": "Oj3", "w": 36, "x": 0, "y": 69}], "aliases": {}, "connections": []}], "counter": 720, "settings": {"expandTOC": false, "globalParams": {}, "silentLoading": false, "autoupdateInterval": null, "dependentSelectors": true, "maxConcurrentRequests": null}, "description": "This is an example dashboard for [DataLens](https://datalens.yandex.ru). You can find detailed feature descriptions on the tabs of the dashboard.", "schemeVersion": 7}', '{"is_release": true}', 'uid:systemId', '2023-11-24 14:23:00.850565+00', 'uid:systemId', '2023-11-24 14:23:00.850565+00', 1560967116373361674, 1507164768509628187, '{"05xu0bafozgep": "05xu0bafozgep", "05xu0e1so1o6p": "05xu0e1so1o6p", "16yxd7gojiacq": "16yxd7gojiacq", "27zw2f553fpqr": "27zw2f553fpqr", "27zw2juwp5emr": "27zw2juwp5emr", "491y4ewqzvbut": "491y4ewqzvbut", "491y4hy1jw5yt": "491y4hy1jw5yt", "491y4iy424wmt": "491y4iy424wmt", "8d528nx6xy7ix": "8d528nx6xy7ix", "8d528ok4io2ax": "8d528ok4io2ax", "af74aq6s79dez": "af74aq6s79dez", "ch96cl4boozy1": "ch96cl4boozy1", "ch96cpyzl3hm1": "ch96cpyzl3hm1", "ch96cs0b54by1": "ch96cs0b54by1", "ejb8ep80pi163": "ejb8ep80pi163", "fkc9fu79zvxg4": "fkc9fu79zvxg4", "gldagp2ekyge5": "gldagp2ekyge5", "gldagxhlpx4q5": "gldagxhlpx4q5", "infciq1c89je7": "infciq1c89je7", "kphekyrgzony9": "kphekyrgzony9", "lqifl0t8hhrga": "lqifl0t8hhrga", "mrjgm1522opyb": "mrjgm1522opyb", "mrjgmvxq6yo2b": "mrjgmvxq6yo2b", "mrjgmyu6wn56b": "mrjgmyu6wn56b", "nskhn3dhudj0c": "nskhn3dhudj0c", "nskhn4ak09vwc": "nskhn4ak09vwc", "otlio209vg4md": "otlio209vg4md", "qvnkq5oj2gy2f": "qvnkq5oj2gy2f", "qvnkqz8s0wdqf": "qvnkqz8s0wdqf", "rwolr3bej5gwg": "rwolr3bej5gwg", "sxpms3pgygm6h": "sxpms3pgygm6h", "sxpms78wdpaqh": "sxpms78wdpaqh", "sxpmsao0sscqh": "sxpmsao0sscqh", "tyqnt5kbstbsi": "tyqnt5kbstbsi", "tyqnt9bovid8i": "tyqnt9bovid8i", "tyqntb2nacawi": "tyqntb2nacawi", "x2urxes3f5vwm": "x2urxes3f5vwm", "y3vsy9b5iv86n": "y3vsy9b5iv86n", "y3vsya0uiqbqn": "y3vsya0uiqbqn", "y3vsyf3u2yaan": "y3vsyf3u2yaan", "z4wtzhsv4vxko": "z4wtzhsv4vxko"}'); + ('{"salt": "0.5828470246218467", "tabs": [{"id": "7g", "items": [{"id": "OgN", "data": {"text": "># **Marketplace Sales**"}, "type": "text", "namespace": "default"}, {"id": "Mge", "data": {"text": "# \n\n```\nUse selectors to filter \nand modify charts\n```"}, "type": "text", "namespace": "default"}, {"id": "jvG", "data": {"size": "l", "text": "Main KPIs", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "vnv", "data": {"title": "Region", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "order_buyer_region_name", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"order_buyer_region_name": ""}, "namespace": "default"}, {"id": "ag6", "data": {"title": "Neighbourhood", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "4664cc4f-6a50-44cc-8dfb-b76fc814a159", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"4664cc4f-6a50-44cc-8dfb-b76fc814a159": ""}, "namespace": "default"}, {"id": "OgL", "data": {"title": "Scale", "source": {"fieldName": "scale", "showTitle": true, "elementType": "select", "defaultValue": "month", "acceptableValues": [{"title": "month", "value": "month"}, {"title": "week", "value": "week"}, {"title": "day", "value": "day"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"scale": "month"}, "namespace": "default"}, {"id": "JBj", "data": {"title": "Order Date", "source": {"isRange": true, "datasetId": "qvnkqz8s0wdqf", "fieldType": "date", "showTitle": true, "elementType": "date", "defaultValue": "__interval_2019-01-01T00:00:00.000Z_2020-02-13T00:00:00.000Z", "datasetFieldId": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7": "__interval_2019-01-01T00:00:00.000Z_2020-02-13T00:00:00.000Z"}, "namespace": "default"}, {"id": "ag1", "data": {"tabs": [{"id": "vnn", "title": "Title 1", "params": {}, "chartId": "lqifl0t8hhrga", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "K89", "data": {"tabs": [{"id": "G8J", "title": "Title 1", "params": {}, "chartId": "mrjgm1522opyb", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Zg5", "data": {"tabs": [{"id": "L4l", "title": "Title 1", "params": {}, "chartId": "kphekyrgzony9", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "4aO", "data": {"tabs": [{"id": "82B", "title": "Title 1", "params": {}, "chartId": "8d528ok4io2ax", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "QjG", "data": {"size": "l", "text": "Regions & Neighbourhoods", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "onD", "data": {"text": "#\n```\nDrill-down with click to row\nand switch charts with tabs"}, "type": "text", "namespace": "default"}, {"id": "23L", "data": {"tabs": [{"id": "0AZ", "title": "By region", "params": {}, "chartId": "otlio209vg4md", "isDefault": true, "autoHeight": false, "description": ""}, {"id": "gA8", "title": "by population", "params": {}, "chartId": "nskhn3dhudj0c", "isDefault": false, "autoHeight": false, "description": ""}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "Pk3", "data": {"size": "l", "text": "Products", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "BW5", "data": {"text": "#\n```\nDrill-down by click on ⊞\nand download data clicking on …"}, "type": "text", "namespace": "default"}, {"id": "b08", "data": {"tabs": [{"id": "R1Z", "title": "Table by products", "params": {}, "chartId": "gldagp2ekyge5", "isDefault": true, "autoHeight": false, "description": "#\n```\nⓘ Add descriptions for widgets and metrics "}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "V4y", "data": {"text": "#\n```\nGo to links to other business systems\nand dashboards with predefined filters"}, "type": "text", "namespace": "default"}, {"id": "9Qk", "data": {"tabs": [{"id": "YL9", "title": "Top products by Sales", "params": {}, "chartId": "tyqnt9bovid8i", "isDefault": true, "autoHeight": false, "description": "```\nUse built-in pagination for tables"}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "rXo", "data": {"size": "l", "text": "Clients & Cohorts", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "nOP", "data": {"text": ""}, "type": "text", "layout": {"h": 2, "w": 12}, "orderId": 28, "namespace": "default", "defaultOrderId": 28}, {"id": "1R4", "data": {"text": "#\n```\nFilter data from different sources\nusing global selectors"}, "type": "text", "namespace": "default"}, {"id": "WzG", "data": {"title": "Platform", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "b76344a2-2cc1-4f65-bb40-f81035853bf2", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"b76344a2-2cc1-4f65-bb40-f81035853bf2": ""}, "namespace": "default"}, {"id": "k3a", "data": {"title": "First Order", "source": {"isRange": true, "datasetId": "infciq1c89je7", "fieldType": "date", "showTitle": true, "elementType": "date", "defaultValue": "__interval_2019-04-01T00:00:00.000Z_2020-02-29T00:00:00.000Z", "datasetFieldId": "6fd23eb8-1f52-4df8-a700-7c97675a9ac8", "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"6fd23eb8-1f52-4df8-a700-7c97675a9ac8": "__interval_2019-04-01T00:00:00.000Z_2020-02-29T00:00:00.000Z"}, "namespace": "default"}, {"id": "dLA", "data": {"tabs": [{"id": "eG3", "title": "Cohorts based on Google Analytics", "params": {}, "chartId": "27zw2juwp5emr", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "gvY", "data": {"tabs": [{"id": "0Yd", "title": "Regions and Neighbourhoods shipping time", "params": {}, "chartId": "16yxd7gojiacq", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}], "title": "Overview", "layout": [{"h": 2, "i": "OgN", "w": 13, "x": 0, "y": 0}, {"h": 4, "i": "Mge", "w": 23, "x": 13, "y": 0}, {"h": 2, "i": "jvG", "w": 13, "x": 0, "y": 2}, {"h": 2, "i": "vnv", "w": 6, "x": 0, "y": 4}, {"h": 2, "i": "ag6", "w": 7, "x": 6, "y": 4}, {"h": 2, "i": "OgL", "w": 6, "x": 13, "y": 4}, {"h": 2, "i": "JBj", "w": 17, "x": 19, "y": 4}, {"h": 5, "i": "ag1", "w": 9, "x": 0, "y": 6}, {"h": 5, "i": "K89", "w": 10, "x": 9, "y": 6}, {"h": 5, "i": "Zg5", "w": 9, "x": 19, "y": 6}, {"h": 5, "i": "4aO", "w": 8, "x": 28, "y": 6}, {"h": 4, "i": "QjG", "w": 9, "x": 0, "y": 11}, {"h": 4, "i": "onD", "w": 10, "x": 9, "y": 11}, {"h": 13, "i": "23L", "w": 19, "x": 0, "y": 15}, {"h": 4, "i": "Pk3", "w": 4, "x": 0, "y": 28}, {"h": 4, "i": "BW5", "w": 15, "x": 4, "y": 28}, {"h": 18, "i": "b08", "w": 19, "x": 0, "y": 32}, {"h": 4, "i": "V4y", "w": 17, "x": 19, "y": 28}, {"h": 18, "i": "9Qk", "w": 17, "x": 19, "y": 32}, {"h": 4, "i": "rXo", "w": 7, "x": 0, "y": 50}, {"h": 2, "i": "nOP", "w": 18, "x": 18, "y": 50}, {"h": 4, "i": "1R4", "w": 11, "x": 7, "y": 50}, {"h": 2, "i": "WzG", "w": 6, "x": 18, "y": 52}, {"h": 2, "i": "k3a", "w": 12, "x": 24, "y": 52}, {"h": 20, "i": "dLA", "w": 36, "x": 0, "y": 54}, {"h": 17, "i": "gvY", "w": 17, "x": 19, "y": 11}], "aliases": {"default": [["b76344a2-2cc1-4f65-bb40-f81035853bf2", "order_platform"]]}, "connections": [{"to": "vnn", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "vnn", "kind": "ignore"}, {"to": "G8J", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "G8J", "kind": "ignore"}, {"to": "vnv", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "vnv", "kind": "ignore"}, {"to": "ag6", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "ag6", "kind": "ignore"}, {"to": "OgL", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "OgL", "kind": "ignore"}, {"to": "JBj", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "JBj", "kind": "ignore"}, {"to": "L4l", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "L4l", "kind": "ignore"}, {"to": "82B", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "82B", "kind": "ignore"}, {"to": "0AZ", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "0AZ", "kind": "ignore"}, {"to": "gA8", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "gA8", "kind": "ignore"}, {"to": "R1Z", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "R1Z", "kind": "ignore"}, {"to": "YL9", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "YL9", "kind": "ignore"}, {"to": "k3a", "from": "WzG", "kind": "ignore"}, {"to": "WzG", "from": "k3a", "kind": "ignore"}, {"to": "k3a", "from": "JBj", "kind": "ignore"}, {"to": "JBj", "from": "k3a", "kind": "ignore"}, {"to": "OgL", "from": "JBj", "kind": "ignore"}, {"to": "JBj", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "vnv", "kind": "ignore"}, {"to": "vnv", "from": "OgL", "kind": "ignore"}, {"to": "k3a", "from": "vnv", "kind": "ignore"}, {"to": "vnv", "from": "k3a", "kind": "ignore"}, {"to": "vnv", "from": "JBj", "kind": "ignore"}, {"to": "ag6", "from": "JBj", "kind": "ignore"}, {"to": "ag6", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "ag6", "kind": "ignore"}, {"to": "vnn", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "vnn", "kind": "ignore"}, {"to": "G8J", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "G8J", "kind": "ignore"}, {"to": "L4l", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "L4l", "kind": "ignore"}, {"to": "82B", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "82B", "kind": "ignore"}, {"to": "0AZ", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "0AZ", "kind": "ignore"}, {"to": "gA8", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "gA8", "kind": "ignore"}, {"to": "R1Z", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "R1Z", "kind": "ignore"}, {"to": "YL9", "from": "OgL", "kind": "ignore"}, {"to": "OgL", "from": "YL9", "kind": "ignore"}]}, {"id": "LoG", "items": [{"id": "2RQ", "data": {"size": "l", "text": "Column chart", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "g20", "data": {"tabs": [{"id": "08y", "title": "Stacked by dimension", "params": {}, "chartId": "mrjgmvxq6yo2b", "isDefault": true, "autoHeight": false, "description": "", "enableActionParams": true}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "ynW", "data": {"tabs": [{"id": "2j7", "title": "Grouped by dimension", "params": {}, "chartId": "05xu0e1so1o6p", "isDefault": true, "autoHeight": false, "description": "", "enableActionParams": true}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "Edn", "data": {"tabs": [{"id": "58e", "title": "Title 1", "params": {}, "chartId": "ch96cs0b54by1", "isDefault": true, "autoHeight": false, "enableActionParams": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "epA", "data": {"size": "l", "text": "Pie chart", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "7KE", "data": {"size": "l", "text": "KPIs", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "AWA", "data": {"tabs": [{"id": "NPY", "title": "Total", "params": {}, "chartId": "tyqntb2nacawi", "isDefault": true, "autoHeight": false, "description": "for the whole period"}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "3zr", "data": {"tabs": [{"id": "M91", "title": "Title 1", "params": {}, "chartId": "05xu0bafozgep", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "abX", "data": {"tabs": [{"id": "v06", "title": "Title 1", "params": {}, "chartId": "491y4iy424wmt", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "JbE", "data": {"tabs": [{"id": "OPe", "title": "Title 1", "params": {}, "chartId": "y3vsy9b5iv86n", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "31r", "data": {"text": "># **Charts types**"}, "type": "text", "namespace": "default"}, {"id": "Jol", "data": {"tabs": [{"id": "OQz", "title": "Title 1", "params": {}, "chartId": "ch96cpyzl3hm1", "isDefault": true, "autoHeight": false, "enableActionParams": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "pvR", "data": {"size": "l", "text": "Pivot table", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "E1D", "data": {"tabs": [{"id": "5LK", "title": "Simpe table", "params": {}, "chartId": "x2urxes3f5vwm", "isDefault": true, "autoHeight": false, "enableActionParams": true}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "e64", "data": {"size": "l", "text": "Table", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "74n", "data": {"tabs": [{"id": "KdO", "title": "Title 1", "params": {}, "chartId": "gldagxhlpx4q5", "isDefault": true, "autoHeight": false, "enableActionParams": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "N91", "data": {"size": "l", "text": "Scatter plot", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "AXP", "data": {"tabs": [{"id": "N9B", "title": "One measure", "params": {}, "chartId": "y3vsyf3u2yaan", "isDefault": true, "autoHeight": false, "enableActionParams": true}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "65e", "data": {"tabs": [{"id": "lY4", "title": "Table with formating and hierarchy", "params": {}, "chartId": "nskhn4ak09vwc", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}], "title": "Chart types", "layout": [{"h": 2, "i": "2RQ", "w": 36, "x": 0, "y": 3}, {"h": 15, "i": "g20", "w": 12, "x": 24, "y": 5}, {"h": 15, "i": "ynW", "w": 12, "x": 12, "y": 5}, {"h": 14, "i": "Edn", "w": 12, "x": 0, "y": 23}, {"h": 3, "i": "epA", "w": 12, "x": 0, "y": 20}, {"h": 3, "i": "7KE", "w": 36, "x": 0, "y": 37}, {"h": 6, "i": "AWA", "w": 9, "x": 18, "y": 40}, {"h": 6, "i": "3zr", "w": 9, "x": 9, "y": 40}, {"h": 6, "i": "abX", "w": 9, "x": 0, "y": 40}, {"h": 6, "i": "JbE", "w": 9, "x": 27, "y": 40}, {"h": 3, "i": "31r", "w": 36, "x": 0, "y": 0}, {"h": 12, "i": "Jol", "w": 36, "x": 0, "y": 69}, {"h": 3, "i": "pvR", "w": 36, "x": 0, "y": 66}, {"h": 17, "i": "E1D", "w": 18, "x": 0, "y": 49}, {"h": 3, "i": "e64", "w": 36, "x": 0, "y": 46}, {"h": 20, "i": "74n", "w": 18, "x": 0, "y": 84}, {"h": 3, "i": "N91", "w": 18, "x": 0, "y": 81}, {"h": 15, "i": "AXP", "w": 12, "x": 0, "y": 5}, {"h": 17, "i": "65e", "w": 18, "x": 18, "y": 49}], "aliases": {}, "connections": []}, {"id": "MNb", "items": [{"id": "yzR", "data": {"text": "Examples of using drill-down and tree features in DataLens"}, "type": "text", "namespace": "default"}, {"id": "Dj2", "data": {"tabs": [{"id": "znn", "title": "Title 1", "params": {}, "chartId": "mrjgmyu6wn56b", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "b10", "data": {"text": "The hierarchy can be created in charts. To create one, click on the \"+\" button on the top panel of the chart.\n\nAfter adding a hierarchy to the chart, you can interactively drill down on it. Example:\n**Product category 1 → Product category 2 → … → Product name**\n\nUsing \"bread crumbs\" you can return to the desired level or open the entire level."}, "type": "text", "namespace": "default"}, {"id": "BJD", "data": {"tabs": [{"id": "PJW", "title": "Title 1", "params": {}, "chartId": "sxpms78wdpaqh", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "V0K", "data": {"text": "You can add Hierarchy to different section, for example in X. "}, "type": "text", "namespace": "default"}, {"id": "AgL", "data": {"tabs": [{"id": "Nkz", "title": "Title 1", "params": {}, "chartId": "gldagp2ekyge5", "isDefault": true, "autoHeight": false, "description": ""}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "M4e", "data": {"text": "The tree is created using the TREE() function\n\n1. You need create an array describing the tree, with the full path for each node.\nThe sequence of values in the array determines the sequence of tree expansion.\n\nYou can use built-in function or create array at database.\n`TREE( ARRAY([Product category 1],[Product category 2],[Product category 3])`\n\n\n\n2. After the array is created based on it, you can create a tree using the formula: `TREE()''.\n\n\n##### Limitations of the current version\n- Only in flat tables\n- Without pagination\n- Without totals\n- Without remembering the state of disclosure\n- One tree/hierarchy per chart\n- No trees in selectors\n- Intermediate nodes of the tree must be stored in the source, even those for which there is no data"}, "type": "text", "namespace": "default"}, {"id": "kjW", "data": {"text": "># **Hierarchy**"}, "type": "text", "namespace": "default"}], "title": "Hierarchy", "layout": [{"h": 2, "i": "yzR", "w": 36, "x": 0, "y": 3}, {"h": 18, "i": "Dj2", "w": 17, "x": 0, "y": 5}, {"h": 18, "i": "b10", "w": 19, "x": 17, "y": 5}, {"h": 13, "i": "BJD", "w": 17, "x": 0, "y": 53}, {"h": 13, "i": "V0K", "w": 19, "x": 17, "y": 53}, {"h": 17, "i": "AgL", "w": 17, "x": 0, "y": 23}, {"h": 17, "i": "M4e", "w": 19, "x": 17, "y": 23}, {"h": 3, "i": "kjW", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "3p5", "items": [{"id": "9kY", "data": {"size": "l", "text": "Header L", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "rdR", "data": {"size": "s", "text": "Header S", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "1ZA", "data": {"text": "# **Headers**\nHeaders are used to separate different sections of dashboards and for navigation in Content panel."}, "type": "text", "namespace": "default"}, {"id": "noj", "data": {"text": "**You can add Emojis to charts and dashboards:**\nRise and Fall ▲ ● ▼ 🔺 🔻 ↗️ ↘️\nInfo and links 🔗 ⓘ 🗯️ 🗯 ❔\nWarning ⚠ ⚠️ ❗ ❕ 📛 🔔 ⚡ 🚨\nTrue/False ✅ / ❌ ⊞ ⊟\nSearch 🔍 \nCompetitors and partners ⚔️ 🤍 ⭐\nChart type legend 📊 📈 💹\nText legend: ■ ● — ◻︎\n🟥 🟧 🟨 🟩 🟦 🟪 🟫 ⬛ ⬜\n🔴 🟠 🟡 🟢 🔵 🟣 🟤 ⚫ ⚪\n"}, "type": "text", "namespace": "default"}, {"id": "kJv", "data": {"size": "l", "text": "Emoji", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "eD4", "data": {"text": "You can add various types of objects to a dashboard and format them using formatting functions and markdown."}, "type": "text", "namespace": "default"}, {"id": "dYz", "data": {"text": "**Bold text**\n_Italic text_\n**_Italic Bold text_**\n\n**Lists**\n* Point 1\n* Point 2\n* Point 3"}, "type": "text", "namespace": "default"}, {"id": "vLn", "data": {"size": "l", "text": "Links and formating functions", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "aJ1", "data": {"text": "You can use```URL()``` to create links to other applications or dashboards.\n ``URL(\"https://www.google.com/search$116q=\" + [Product name], [Product name])`` — link to Google\nAlso you can format text by formating functions such as BOLD(), ITALIC() and MARKUP()"}, "type": "text", "namespace": "default"}, {"id": "JAv", "data": {"tabs": [{"id": "O2N", "title": "Click row to go to url", "params": {}, "chartId": "z4wtzhsv4vxko", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "3ey", "data": {"text": "**Code**\n\n```kotlin\n val a: Int = 1\n```\n\n#### **Foldable sections**\n{% cut \"Show text\" %}\n\nHidden text\n\n{% endcut %}"}, "type": "text", "namespace": "default"}, {"id": "Jv7", "data": {"text": "># **Formating**"}, "type": "text", "namespace": "default"}, {"id": "p42", "data": {"size": "m", "text": "Header M", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "jpB", "data": {"size": "xs", "text": "Header XS", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "ZbQ", "data": {"text": "# **Text objects**\nText objects allow you to create various types of content: text with formating, images. links, code, list, foldable sections and tables "}, "type": "text", "namespace": "default"}, {"id": "8Ez", "data": {"text": "**Tables**\n\n#|\n|| **⚠ Status** | **Condition** ||\n|| Golden| more than 10 purchases||\n|| Silver | up to 10 purchases||\n|| Basic | 1 purchase per year||\n|#\n\n"}, "type": "text", "namespace": "default"}, {"id": "ljW", "data": {"text": "1. Point 1\n2. Point 2\n3. Point 3"}, "type": "text", "namespace": "default"}, {"id": "6N1", "data": {"text": ""}, "type": "text", "namespace": "default"}, {"id": "ozN", "data": {"text": "#\nYou can use emojis and utf symbols to create conditional formating. And you can use formating fields options in tables for color formating and bar charts."}, "type": "text", "namespace": "default"}, {"id": "XXa", "data": {"text": "⌚ 📱 📲 💻 ⌨ 🖥 🖨 🖱 🖲 🕹 🗜 💽 💾 💿 📀 📼 📷 📸 📹 🎥 📽 🎞 📞 ☎ 📟 📠 📺 📻 🎙 🎚 🎛 ⏱ ⏲ ⏰ 🕰 ⏳ ⌛ 🧮 📡 🔋 🔌 💡 🔦 🕯 🧯 🗑 🛢 🛒 💸 💵 💴 💶 💷 💰 🪙 💳 🧾 💎 ⚖ 🦯 🧰 🔧 🪛 🔨 ⚒ 🛠 ⛏ 🪓 🪚 🔩 ⚙ ⛓ 🧱 🔫 🧨 💣 🔪 🗡 ⚔ 🛡 🚬 ⚰ 🪦 ⚱ 🏺 🔮 🪄 📿 🧿 💈 🧲 ⚗ 🧪 🧫 🧬 🔭 🔬 🕳 💊 💉 🩸 🩹 🩺 🌡 🏷 🔖 🚽 🪠 🚿 🛁 🛀 🪥 🪒 🧴 🧻 🧼 🧽 🧹 🧺 🪣 🔑 🗝 🪤 🛋 🪑 🛌 🛏 🚪 🪞 🪟 🧳 🛎 🖼 🧭 🗺 ⛱ 🗿 🛍 🎈 🎏 🎀 🧧 🎁 🎊 🎉 🪅 🪆 🎎 🎐 🏮 🪔 ✉ 📩 📨 📧 💌 📮 📪 📫 📬 📭 📦 📯 📥 📤 📜 📃 📑 📊 📈 📉 📄 📅 📆 🗓 📇 🗃 🗳 🗄 📋 🗒 📁 📂 🗂 🗞 📰 🪧 📓 📕 📗 📘 📙 📔 📒 📚 📖 🔗 📎 🖇 ✂ 📐 📏 📌 📍 🧷 🪡 🧵 🧶 🪢 🔐 🔒 🔓 🔏 🖊 🖋 ✒ 📝 ✏ 🖍 🖌 🔍 🔎 👚 👕 🥼 🦺 🧥 👖 👔 👗 👘 🥻 🩱 👙 🩲 🩳 💄 💋 👣 🧦 🩴 👠 👡 👢 🥿 👞 👟 🩰 🥾 🧢 👒 🎩 🎓 👑 ⛑ 🪖 🎒 👝 👛 👜 💼 👓 🕶 🥽 🧣 🧤 💍 🌂 ☂\n\n😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 🥰 😘 😗 😙 😚 😋 😛 😝 😜 🤪 🤨 🧐 🤓 😎 🥸 🤩 🥳 😏 😒 😞 😔 😟 😕 🙁 ☹️ 😣 😖 😫 😩 🥺 😢 😭 😮‍💨 😤 😠 😡 🤬 🤯 😳 🥵 🥶 😱 😨 😰 😥 😓 😶‍🌫️ 😐 😑 😬 🙄 😯 😦 😧 😮 😲 🥱 😴 🤤 😪 😵 😵‍💫 🫥 🤐 🥴 🤢 🤮 🤧 😷 🤒\n\n👋 🤚 🖐 ✋ 🖖 👌 🤏 ✌️ 🤞 🤟 🤘 🤙 👈 👉 👆 🖕 👇 ☝️ 👍 👎 ✊ 👊 🤛 🤜 👏 🙌 👐 🤲 🤝 🙏 ✍️ 💅 🤳 💪 🦾 🦵 🦿 🦶 👣 👂 🦻 👃 🧠 🦷 🦴 👀 👁 👅 👄 💋 🩸\n\n👶 👧 🧒 👦 👩 🧑 👨 👩‍🦱 🧑‍🦱 👨‍🦱 👩‍🦰 🧑‍🦰 👨‍🦰 👱‍♀️ 👱 👱‍♂️ 👩‍🦳 🧑‍🦳 👨‍🦳 👩‍🦲 🧑‍🦲 👨‍🦲 🧔‍♀️ 🧔 🧔‍♂️ 👵 🧓 👴 👲 👳‍♀️ 👳 👳‍♂️ 🧕 👮‍♀️ 👮 👮‍♂️ 👷‍♀️ 👷 👷‍♂️ 💂‍♀️ 💂 💂‍♂️ 🕵️‍♀️ 🕵️ 🕵️‍♂️ 👩‍⚕️ 🧑‍⚕️ 👨‍⚕️ 👩‍🌾 🧑‍🌾 👨‍🌾 👩‍🍳 🧑‍🍳 👨‍🍳 👩‍🎓 🧑‍🎓 👨‍🎓 👩‍🎤 🧑‍🎤 👨‍🎤 👩‍🏫 🧑‍🏫 👨‍🏫 👩‍🏭 🧑‍🏭 👨‍🏭 👩‍💻 🧑‍💻 👨‍💻 👩‍💼 🧑‍💼 👨‍💼 👩‍🔧 🧑‍🔧 👨‍🔧 👩‍🔬 🧑‍🔬 👨‍🔬 👩‍🎨 🧑‍🎨 👨‍🎨 👩‍🚒 🧑‍🚒 👨‍🚒 👩‍✈️ 🧑‍✈️ 👨‍✈️ 👩‍🚀 🧑‍🚀 👨‍🚀 👩‍⚖️ 🧑‍⚖️ 👨‍⚖️ 👰‍♀️ 👰 👰‍♂️ 🤵‍♀️ 🤵 🤵‍♂️ 👸 🤴 🦸‍♀️ 🦸 🦸‍♂️ 🦹‍♀️ 🦹 🦹‍♂️ 🤶 🧑‍🎄 🎅 🧙‍♀️ 🧙 🧙‍♂️ 🧝‍♀️ 🧝 🧝‍♂️ 🧛‍♀️ 🧛 🧛‍♂️ 🧟‍♀️ 🧟 🧟‍♂️ 🧞‍♀️ 🧞 🧞‍♂️ 🧜‍♀️ 🧜 🧜‍♂️ 🧚‍♀️ 🧚 🧚‍♂️ 🧌 👼 🤰 🫄 🫃 🤱 👩‍🍼 🧑‍🍼 👨‍🍼 🙇‍♀️ 🙇 🙇‍♂️ 💁‍♀️ 💁 💁‍♂️ 🙅‍♀️ 🙅 🙅‍♂️ 🙆‍♀️ 🙆 🙆‍♂️ 🙋‍♀️ 🙋 🙋‍♂️ 🧏‍♀️ 🧏 🧏‍♂️ 🤦‍♀️ 🤦 🤦‍♂️ 🤷‍♀️ 🤷 🤷‍♂️ 🙎‍♀️ 🙎 🙎‍♂️ 🙍‍♀️ 🙍 🙍‍♂️ 💇‍♀️ 💇 💇‍♂️ 💆‍♀️ 💆 💆‍♂️ 🧖‍♀️ 🧖 🧖‍♂️ 💅 🤳 💃 🕺 👯‍♀️ 👯 👯‍♂️ 🕴 👩‍🦽 🧑‍🦽 👨‍🦽 👩‍🦼 🧑‍🦼 👨‍🦼 🚶‍♀️ 🚶 🚶‍♂️ 👩‍🦯 🧑‍🦯 👨‍🦯 🧎‍♀️ 🧎 🧎‍♂️ 🏃‍♀️ 🏃 🏃‍♂️ 🧍‍♀️ 🧍 🧍‍♂️ 👭 🧑‍🤝‍🧑 👬 👫 👩‍❤️‍👩 💑 👨‍❤️‍👨 👩‍❤️‍👨 👩‍❤️‍💋‍👩 💏 👨‍❤️‍💋‍👨 👩‍❤️‍💋‍👨 👪 👨‍👩‍👦 👨‍👩‍👧 👨‍👩‍👧‍👦 👨‍👩‍👦‍👦 👨‍👩‍👧‍👧 👨‍👨‍👦 👨‍👨‍👧 👨‍👨‍👧‍👦 👨‍👨‍👦‍👦 👨‍👨‍👧‍👧 👩‍👩‍👦 👩‍👩‍👧 👩‍👩‍👧‍👦 👩‍👩‍👦‍👦 👩‍👩‍👧‍👧 👨‍👦 👨‍👦‍👦 👨‍👧 👨‍👧‍👦 👨‍👧‍👧 👩‍👦 👩‍👦‍👦 👩‍👧 👩‍👧‍👦 👩‍👧‍👧 🗣 👤 👥\n\n🐶 🐱 🐭 🐹 🐰 🦊 🐻 🐼 🐻‍❄️ 🐨 🐯 🦁 🐮 🐷 🐽 🐸 🐵 🙈 🙉 🙊 🐒 🐔 🐧 🐦 🐤 🐣 🐥 🦆 🦅 🦉 🦇 🐺 🐗 🐴 🦄 🐝 🪱 🐛 🦋 🐌 🐞 🐜🦟 🦗 🕷 🕸 🦂 🐢 🐍 🦎 🦖 🦕 🐙 🦑 🦐 🦞 🦀 🪸 🐡 🐠 🐟 🐬 🐳 🐋 🦈 🐊 🐅 🐆 🦓 🦍 🦧 🦣 🐘 🦛 🦏 🐪 🐫 🦒 🦘 🦬 🐃 🐂 🐄 🐎 🐖 🐏 🐑 🦙 🐐 🦌 🐕 🐩 🦮 🐕‍🦺 🐈 🐈‍⬛ 🐓 🦃 🦤 🦚 🦜 🦢 🦩 🕊 🐇 🦝 🦨 🦡 🦫 🦦 🦥 🐁 🐀 🐿 🦔 🐾 🐉 🐲 🌵 🎄 🌲 🌳 🌴 🌱 🌿 ☘️ 🍀 🎍 🪴 🎋 🍃 🍂 🍁 🍄 🐚 🪨 🌾 💐 🌷 🪷 🌹 🥀 🌺 🌸 🌼 🌻 🌞 🌝 🌛 🌜 🌚 🌕 🌖 🌗 🌘 🌑 🌒 🌓 🌔 🌙 🌎 🌍 🌏 🪐 💫 ⭐️ 🌟 ✨ ⚡️ ☄️ 💥 🔥 🌪 🌈 ☀️ 🌤 ⛅️ 🌥 ☁️ 🌦 🌧 ⛈ 🌩 🌨 ❄️ ☃️ ⛄️ 🌬 💨 💧 💦 🫧 ☔️ ☂️ 🌊 🌫\n\n🍏 🍎 🍐 🍊 🍋 🍌 🍉 🍇 🍓🍈 🍒 🍑 🥭 🍍 🥥 🥝 🍅 🍆 🥑 🥦 🥬 🥒 🌶 🌽 🥕 🧄 🧅 🥔 🍠 🥐 🥯 🍞 🥖 🥨 🧀 🥚 🍳 🧈 🥞 🧇 🥓 🥩 🍗 🍖 🦴 🌭 🍔 🍟 🍕 🥪 🥙 🧆 🌮 🌯 🥗 🥘 🥫 🍝 🍜 🍲 🍛 🍣 🍱 🥟 🦪 🍤 🍙 🍚 🍘 🍥 🥠 🥮 🍢 🍡 🍧 🍨 🍦 🥧 🧁 🍰 🎂 🍮 🍭 🍬 🍫 🍿 🍩 🍪 🌰 🥜 🍯 🥛 🍼 ☕️ 🍵 🧃 🥤 🍶 🍺 🍻 🥂 🍷 🫗 🥃 🍸 🍹 🧉 🍾 🧊 🥄 🍴 🍽 🥣 🥡 🥢 🧂\n\n⚽️ 🏀 🏈 ⚾️ 🥎 🎾 🏐 🏉 🥏 🎱 🪀 🏓 🏸 🏒 🏑 🥍 🏏 🪃 🥅 ⛳️ 🪁 🏹 🎣 🤿 🥊 🥋 🎽 🛹 🛼 🛷 ⛸ 🥌 🎿 ⛷ 🏂 🪂 🏋️‍♀️ 🏋️ 🏋️‍♂️ 🤼‍♀️ 🤼 🤼‍♂️ 🤸‍♀️ 🤸 🤸‍♂️ ⛹️‍♀️ ⛹️ ⛹️‍♂️ 🤺 🤾‍♀️ 🤾 🤾‍♂️ 🏌️‍♀️ 🏌️ 🏌️‍♂️ 🏇 🧘‍♀️ 🧘 🧘‍♂️ 🏄‍♀️ 🏄 🏄‍♂️ 🏊‍♀️ 🏊 🏊‍♂️ 🤽‍♀️ 🤽 🤽‍♂️ 🚣‍♀️ 🚣 🚣‍♂️ 🧗‍♀️ 🧗 🧗‍♂️ 🚵‍♀️ 🚵 🚵‍♂️ 🚴‍♀️ 🚴 🚴‍♂️ 🏆 🥇 🥈 🥉 🏅 🎖 🏵 🎗 🎫 🎟 🎪 🤹 🤹‍♂️ 🤹‍♀️ 🎭 🩰 🎨 🎬 🎤 🎧 🎼 🎹 🥁 🪘 🎷 🎺 🪗 🎸 🪕 🎻 🎲 ♟ 🎯 🎳 🎮 🎰 🧩\n\n🡣\t🡫\t🡳\t🡻\t🢃\t⇓\t⇩\t⬇\n🡩\t🡡\t🡱\t🡹\t🢁\t⇑\t⇧\t⬆\n🡮\t🡦\t🡶\t🡾\t🢆\t⇘\t⬂\t⬊\n🡢\t🡪\t🡲\t🡺\t🢂\t⇒\t⇨\t⬇\n🡥\t🡭\t🡵\t🡽\t🢅\t⇗\t⬀\t⬈\n🡧\t🡯\t🡷\t🡿\t🢇\t⇙\t⬃\t⬋\n🡠\t🡨\t🡰\t🡸\t🢀\t⇐\t⇦\t⬅\n🡤\t🡬\t🡴\t🡼\t🢄\t⇖\t⬁\t⬉"}, "type": "text", "namespace": "default"}], "title": "Formating", "layout": [{"h": 4, "i": "9kY", "w": 5, "x": 0, "y": 9}, {"h": 4, "i": "rdR", "w": 7, "x": 5, "y": 13}, {"h": 4, "i": "1ZA", "w": 12, "x": 0, "y": 5}, {"h": 9, "i": "noj", "w": 10, "x": 0, "y": 49}, {"h": 2, "i": "kJv", "w": 36, "x": 0, "y": 47}, {"h": 2, "i": "eD4", "w": 36, "x": 0, "y": 3}, {"h": 8, "i": "dYz", "w": 4, "x": 12, "y": 9}, {"h": 3, "i": "vLn", "w": 36, "x": 0, "y": 17}, {"h": 4, "i": "aJ1", "w": 25, "x": 0, "y": 20}, {"h": 23, "i": "JAv", "w": 36, "x": 0, "y": 24}, {"h": 8, "i": "3ey", "w": 7, "x": 21, "y": 9}, {"h": 3, "i": "Jv7", "w": 36, "x": 0, "y": 0}, {"h": 4, "i": "p42", "w": 7, "x": 5, "y": 9}, {"h": 4, "i": "jpB", "w": 5, "x": 0, "y": 13}, {"h": 4, "i": "ZbQ", "w": 24, "x": 12, "y": 5}, {"h": 8, "i": "8Ez", "w": 8, "x": 28, "y": 9}, {"h": 4, "i": "ljW", "w": 5, "x": 16, "y": 13}, {"h": 4, "i": "6N1", "w": 5, "x": 16, "y": 9}, {"h": 4, "i": "ozN", "w": 11, "x": 25, "y": 20}, {"h": 9, "i": "XXa", "w": 26, "x": 10, "y": 49}], "aliases": {}, "connections": []}, {"id": "Zyd", "items": [{"id": "Q94", "data": {"text": "The parameters allow to configure calculated fields.On the dashboard, parameter values are set with selectors. Selectors should be created not based on the dataset, but using \"manual input\" tab, using the name of the parameter. \n\n**⚠ Important!** After adding a manual selector to the dashboard disconnect this selector from all other selectors on the dashboard tab. If the connection is not set to ignore the drop-down list of available values of other selectors will be empty."}, "type": "text", "namespace": "default"}, {"id": "BXL", "data": {"title": "ago-period", "source": {"fieldName": "ago-period", "showTitle": true, "elementType": "input", "defaultValue": "2"}, "sourceType": "manual"}, "type": "control", "defaults": {"ago-period": "2"}, "namespace": "default"}, {"id": "RRK", "data": {"title": "Группировка", "source": {"fieldName": "scale", "operation": null, "showTitle": true, "elementType": "select", "defaultValue": "month", "multiselectable": false, "acceptableValues": [{"title": "day", "value": "day"}, {"title": "week", "value": "week"}, {"title": "month", "value": "month"}, {"title": "year", "value": "year"}]}, "sourceType": "manual"}, "type": "control", "layout": {"h": 2, "w": 6}, "defaults": {"scale": "month"}, "namespace": "default"}, {"id": "Krb", "data": {"size": "l", "text": "Dimensions ane Measures controls", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "A9O", "data": {"tabs": [{"id": "NlO", "title": "Title 1", "params": {}, "chartId": "491y4ewqzvbut", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Mrv", "data": {"title": "Dimension", "source": {"fieldName": "dimension", "showTitle": true, "elementType": "select", "defaultValue": "Region", "acceptableValues": [{"title": "Population group", "value": "Population group"}, {"title": "Region", "value": "Region"}, {"title": "Neighbourhood", "value": "Neighbourhood"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"dimension": "Region"}, "namespace": "default"}, {"id": "3WW", "data": {"text": "Create a parameter `dimension` and `metric` at dataset\n\nAdd calculated fileds:\n```\nCASE([dimension],\n ''Region'', [Region],\n ''Neighbourhood'',[Neighbourhood],\n ''Population group'',[Population group],\n null)\n```\n\n\n```\nIF [metric]= \"sales\" THEN INT(SUM([amount]))\nELSEIF [metric]=\"quantity\" THEN SUM([quantity])\nEND\n```\n\nMesures with same type can only be used in that case."}, "type": "text", "namespace": "default"}, {"id": "1Jl", "data": {"title": "Metric", "source": {"fieldName": "metric", "showTitle": true, "elementType": "select", "defaultValue": "quantity", "acceptableValues": [{"title": "quantity", "value": "quantity"}, {"title": "sales", "value": "sales"}]}, "sourceType": "manual"}, "type": "control", "defaults": {"metric": "quantity"}, "namespace": "default"}, {"id": "n46", "data": {"text": "> # **Parameters**"}, "type": "text", "namespace": "default"}], "title": "Parameters", "layout": [{"h": 6, "i": "Q94", "w": 36, "x": 0, "y": 3}, {"h": 2, "i": "BXL", "w": 6, "x": 0, "y": 17}, {"h": 2, "i": "RRK", "w": 6, "x": 0, "y": 15}, {"h": 2, "i": "Krb", "w": 36, "x": 0, "y": 9}, {"h": 14, "i": "A9O", "w": 15, "x": 6, "y": 11}, {"h": 2, "i": "Mrv", "w": 6, "x": 0, "y": 11}, {"h": 14, "i": "3WW", "w": 15, "x": 21, "y": 11}, {"h": 2, "i": "1Jl", "w": 6, "x": 0, "y": 13}, {"h": 3, "i": "n46", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": [{"to": "NlO", "from": "RRK", "kind": "ignore"}, {"to": "RRK", "from": "NlO", "kind": "ignore"}, {"to": "NlO", "from": "BXL", "kind": "ignore"}, {"to": "BXL", "from": "NlO", "kind": "ignore"}, {"to": "BXL", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "BXL", "kind": "ignore"}, {"to": "RRK", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "RRK", "kind": "ignore"}, {"to": "Mrv", "from": "1Jl", "kind": "ignore"}, {"to": "1Jl", "from": "Mrv", "kind": "ignore"}]}, {"id": "GD4", "items": [{"id": "6B5", "data": {"title": "Order date", "source": {"isRange": true, "datasetId": "qvnkqz8s0wdqf", "showTitle": true, "elementType": "date", "defaultValue": "__interval___relative_-7y___relative_-0d", "datasetFieldId": "3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7"}, "sourceType": "dataset"}, "type": "control", "defaults": {"3dcc4a70-e1f0-11e9-a279-0b30c0a74ab7": "__interval___relative_-7y___relative_-0d"}, "namespace": "default"}, {"id": "oZJ", "data": {"text": "In order to work with dates its important to set data type of fileds to date at datasource. If format you are using is not recognized automatically you can convert the data type using the functions: DATETIME(), DATE(), DATETIME_PARSE(), DATE_PARSE()."}, "type": "text", "namespace": "default"}, {"id": "XEj", "data": {"text": "Date type fields support calendars as selectors and flexible automatic relative dates selections like: last year, last 7 days, last and next 3 months and so on. "}, "type": "text", "namespace": "default"}, {"id": "jPL", "data": {"tabs": [{"id": "p15", "title": "Title 1", "params": {}, "chartId": "ejb8ep80pi163", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "L3R", "data": {"text": "**Rows**:\nMonth - `DATETRUNC([Order date], \"month\")`\nWeek number - `if( week([Order date])>51 and MONTH([Order date])=1, 0, week([Order date]))` -- if statement to get right result at the end of a year\n\n**Columns**:\nDay oof Week - `CASE(DAYOFWEEK([Order date]),1,\"1-Mn\",2,\"2-Tu\",3,\"3-We\",4,\"4-Th\",5,\"5-Fr\",6,\"6-St\",7,\"7-Sn\",\"NA\")`\n\n**Cell**:\nDay - `max(DAY([Order date]))` -- Max is needed to convert it to Measure\n\n**Color**:\n`Sales - SUM([amount])` -- Metric for heatmap"}, "type": "text", "namespace": "default"}, {"id": "e3E", "data": {"size": "m", "text": "Month over Month and AGO()", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "GAX", "data": {"tabs": [{"id": "dMV", "title": "Title 1", "params": {}, "chartId": "27zw2f553fpqr", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "Ka4", "data": {"text": "Add calculated field `AGO([Sales], [Date Month], ''month'', 1)`. \\[Documentation link\\](https://cloud.yandex.ru/docs/datalens/function-ref/AGO\n\nTo calculate MoM,% create a calculated field `([Sales] - [Ago 1 Month Sales]) / ABS([Ago 1 Month Sales])`\n\nAlso you can use functions LAG() or AT_DATE() for different cases. For example `AT_DATE([Sales],[Date], DATETRUNC([Date],''week''))` will give you Sales at the first date of the week."}, "type": "text", "namespace": "default"}, {"id": "7Ea", "data": {"text": "># **Date functions**"}, "type": "text", "namespace": "default"}, {"id": "Npo", "data": {"size": "m", "text": "Heatmap calendar", "showInTOC": true}, "type": "title", "namespace": "default"}], "title": "Date functions", "layout": [{"h": 4, "i": "6B5", "w": 7, "x": 29, "y": 3}, {"h": 4, "i": "oZJ", "w": 17, "x": 0, "y": 3}, {"h": 4, "i": "XEj", "w": 12, "x": 17, "y": 3}, {"h": 17, "i": "jPL", "w": 18, "x": 0, "y": 30}, {"h": 17, "i": "L3R", "w": 18, "x": 18, "y": 30}, {"h": 3, "i": "e3E", "w": 36, "x": 0, "y": 7}, {"h": 17, "i": "GAX", "w": 18, "x": 0, "y": 10}, {"h": 17, "i": "Ka4", "w": 18, "x": 18, "y": 10}, {"h": 3, "i": "7Ea", "w": 36, "x": 0, "y": 0}, {"h": 3, "i": "Npo", "w": 36, "x": 0, "y": 27}], "aliases": {}, "connections": [{"to": "p15", "from": "6B5", "kind": "ignore"}, {"to": "6B5", "from": "p15", "kind": "ignore"}]}, {"id": "Are", "items": [{"id": "evd", "data": {"tabs": [{"id": "EB3", "title": "Title 1", "params": {}, "chartId": "sxpms3pgygm6h", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "GBp", "data": {"tabs": [{"id": "dWP", "title": "Title 1", "params": {}, "chartId": "af74aq6s79dez", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "7gg", "data": {"tabs": [{"id": "KQn", "title": "Title 1", "params": {}, "chartId": "tyqnt5kbstbsi", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "AMe", "data": {"tabs": [{"id": "d6z", "title": "Title 1", "params": {}, "chartId": "ch96cl4boozy1", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "3g5", "data": {"tabs": [{"id": "MXb", "title": "Title 1", "params": {}, "chartId": "8d528nx6xy7ix", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "OO2", "data": {"size": "l", "text": "Top 5", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "J5Z", "data": {"size": "l", "text": "Top 3 for each category", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "pDn", "data": {"size": "m", "text": "Percent of total", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "GB1", "data": {"size": "l", "text": "Percent of total by years and regions", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "KQY", "data": {"size": "m", "text": "Running sum", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "NRY", "data": {"text": "To filter top 5 create calculated filed with `rank([Sales])` function and drug this filed to Filter section.\n\nYou can find additional info about `RANK` in documentation."}, "type": "text", "namespace": "default"}, {"id": "AMA", "data": {"text": "Add calculated field `rank([Sales] WITHIN [Category])` and drag it to Filter section,\n\nYou can find additional info about `RANK` in documentation."}, "type": "text", "namespace": "default"}, {"id": "MX1", "data": {"text": "Add calculated filed `[Sales] / sum([Sales] Total) `.\n\nYou can find additional info about `SUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "3gr", "data": {"text": "Add calculated filed `[Sales] / sum([Sales] WITHIN [Year])`.\n\nYou can find additional info about `SUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "v26", "data": {"text": "Add calculated filed `RSUM([Sales])`.\n\nUsing `RSUM()` requires sort by dimension in Sort section.\n\nYou can find additional info about `RSUM` in documentation."}, "type": "text", "namespace": "default"}, {"id": "n7p", "data": {"text": "Calculated fields are created at the dataset level or at the chart level (will be available only for this chart). In the examples, calculated fields are created at the chart level. You can edit them quickly and immediately see the result on the visualization.\n\nFor a general description of window functions, see documentation."}, "type": "text", "namespace": "default"}, {"id": "9YE", "data": {"text": "># **Window functions**"}, "type": "text", "namespace": "default"}], "title": "Window functions", "layout": [{"h": 10, "i": "evd", "w": 17, "x": 0, "y": 9}, {"h": 12, "i": "GBp", "w": 17, "x": 0, "y": 21}, {"h": 12, "i": "7gg", "w": 17, "x": 0, "y": 40}, {"h": 15, "i": "AMe", "w": 17, "x": 0, "y": 51}, {"h": 12, "i": "3g5", "w": 17, "x": 0, "y": 68}, {"h": 2, "i": "OO2", "w": 36, "x": 0, "y": 7}, {"h": 2, "i": "J5Z", "w": 36, "x": 0, "y": 19}, {"h": 2, "i": "pDn", "w": 36, "x": 0, "y": 38}, {"h": 2, "i": "GB1", "w": 36, "x": 0, "y": 49}, {"h": 2, "i": "KQY", "w": 36, "x": 0, "y": 66}, {"h": 10, "i": "NRY", "w": 19, "x": 17, "y": 9}, {"h": 17, "i": "AMA", "w": 19, "x": 17, "y": 21}, {"h": 4, "i": "MX1", "w": 19, "x": 17, "y": 40}, {"h": 6, "i": "3gr", "w": 19, "x": 17, "y": 51}, {"h": 4, "i": "v26", "w": 19, "x": 17, "y": 68}, {"h": 4, "i": "n7p", "w": 36, "x": 0, "y": 3}, {"h": 3, "i": "9YE", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "457", "items": [{"id": "lGA", "data": {"tabs": [{"id": "4Q8", "title": "FIXED", "params": {}, "chartId": "qvnkq5oj2gy2f", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "64y", "data": {"size": "l", "text": "Percent of total for COUNTD()", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "QLY", "data": {"text": "Create a calculated field `COUNTD([Client ID]) / COUNTD([Client ID] FIXED)`."}, "type": "text", "namespace": "default"}, {"id": "o6l", "data": {"size": "l", "text": "Double aggregation", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "0a8", "data": {"tabs": [{"id": "XaZ", "title": "INCLUDE", "params": {}, "chartId": "rwolr3bej5gwg", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "grL", "data": {"text": "Calculated field `AVG(COUNT([client ID] INCLUDE [Application date]))` allows you to perform double aggregation: first we count the number of unique buyers by day, then we count the average of them across a month. In this example, the average is calculated by month (see chart measurement). Thus, we got the \"average clients per day\"."}, "type": "text", "namespace": "default"}, {"id": "PGJ", "data": {"text": "Examples of using Level of Detail (LOD) or double aggregation functions in calculated fields. In some cases, LODs are similar to regular window functions. An important difference between LOD functions is the support of the `COUNTD` function."}, "type": "text", "namespace": "default"}, {"id": "Wod", "data": {"text": "># **Level of Details functions**"}, "type": "text", "namespace": "default"}], "title": "Level of detail functions", "layout": [{"h": 17, "i": "lGA", "w": 19, "x": 0, "y": 10}, {"h": 2, "i": "64y", "w": 36, "x": 0, "y": 8}, {"h": 17, "i": "QLY", "w": 17, "x": 19, "y": 10}, {"h": 2, "i": "o6l", "w": 36, "x": 0, "y": 27}, {"h": 16, "i": "0a8", "w": 19, "x": 0, "y": 29}, {"h": 16, "i": "grL", "w": 17, "x": 19, "y": 29}, {"h": 5, "i": "PGJ", "w": 20, "x": 0, "y": 3}, {"h": 3, "i": "Wod", "w": 36, "x": 0, "y": 0}], "aliases": {}, "connections": []}, {"id": "71g", "items": [{"id": "J9l", "data": {"tabs": [{"id": "Obz", "title": "This chart is linked only to the selecot above", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "jn0", "data": {"tabs": [{"id": "p6R", "title": "Title 1", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "ZG6", "data": {"tabs": [{"id": "LbN", "title": "Title 1", "params": {}, "chartId": "y3vsya0uiqbqn", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "84v", "data": {"title": "Main category", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"45bdfbb6-1dd9-41bd-9871-b011efd8ec6b": ""}, "namespace": "default"}, {"id": "4Z8", "data": {"title": "Category to compare", "source": {"datasetId": "qvnkqz8s0wdqf", "fieldType": "string", "showTitle": true, "elementType": "select", "datasetFieldId": "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b", "multiselectable": true, "datasetFieldType": "DIMENSION"}, "sourceType": "dataset"}, "type": "control", "defaults": {"45bdfbb6-1dd9-41bd-9871-b011efd8ec6b": ""}, "namespace": "default"}, {"id": "l6A", "data": {"text": "The page provides an example of setting up links between selectors and charts. To change the settings in the dashboard editing mode, click on the \"links\" button on the top panel. This page uses only one chart added multiple times."}, "type": "text", "namespace": "default"}, {"id": "6dy", "data": {"title": "Year", "source": {"datasetId": "qvnkqz8s0wdqf", "showTitle": true, "elementType": "select", "datasetFieldId": "9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2", "multiselectable": true}, "sourceType": "dataset"}, "type": "control", "defaults": {"9cd1cbd0-0ee4-11ec-b9e8-6b5e199aa6f2": ""}, "namespace": "default"}, {"id": "QKY", "data": {"text": "This is the selector that linked to all charts at the tab."}, "type": "text", "namespace": "default"}, {"id": "ojl", "data": {"text": "You can create comparison panels using that approach. "}, "type": "text", "namespace": "default"}, {"id": "XMZ", "data": {"text": " "}, "type": "text", "namespace": "default"}, {"id": "voX", "data": {"size": "l", "text": "The same chart is filtered independently by different selectors ", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "5Y0", "data": {"text": "># **Selectors**"}, "type": "text", "namespace": "default"}], "title": "Selectors", "layout": [{"h": 15, "i": "J9l", "w": 22, "x": 0, "y": 7}, {"h": 15, "i": "jn0", "w": 11, "x": 0, "y": 26}, {"h": 15, "i": "ZG6", "w": 11, "x": 11, "y": 26}, {"h": 2, "i": "84v", "w": 11, "x": 0, "y": 24}, {"h": 2, "i": "4Z8", "w": 11, "x": 11, "y": 24}, {"h": 2, "i": "l6A", "w": 36, "x": 0, "y": 3}, {"h": 2, "i": "6dy", "w": 6, "x": 0, "y": 5}, {"h": 2, "i": "QKY", "w": 30, "x": 6, "y": 5}, {"h": 17, "i": "ojl", "w": 14, "x": 22, "y": 24}, {"h": 15, "i": "XMZ", "w": 14, "x": 22, "y": 7}, {"h": 2, "i": "voX", "w": 36, "x": 0, "y": 22}, {"h": 3, "i": "5Y0", "w": 36, "x": 0, "y": 0}], "aliases": {"default": [["0483c778-3a9a-4f65-8168-1beb8818580f", "45bdfbb6-1dd9-41bd-9871-b011efd8ec6b"]]}, "connections": [{"to": "84v", "from": "Obz", "kind": "ignore"}, {"to": "Obz", "from": "84v", "kind": "ignore"}, {"to": "4Z8", "from": "Obz", "kind": "ignore"}, {"to": "Obz", "from": "4Z8", "kind": "ignore"}, {"to": "4Z8", "from": "p6R", "kind": "ignore"}, {"to": "p6R", "from": "4Z8", "kind": "ignore"}, {"to": "84v", "from": "LbN", "kind": "ignore"}, {"to": "LbN", "from": "84v", "kind": "ignore"}, {"to": "4Z8", "from": "84v", "kind": "ignore"}, {"to": "84v", "from": "4Z8", "kind": "ignore"}]}, {"id": "PoW", "items": [{"id": "bdQ", "data": {"tabs": [{"id": "Ral", "title": "Data", "params": {}, "chartId": "491y4hy1jw5yt", "isDefault": true, "autoHeight": false}], "hideTitle": false}, "type": "widget", "namespace": "default"}, {"id": "9Kn", "data": {"tabs": [{"id": "Y1g", "title": "Title 1", "params": {}, "chartId": "sxpmsao0sscqh", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "1kE", "data": {"tabs": [{"id": "roE", "title": "Title 1", "params": {}, "chartId": "fkc9fu79zvxg4", "isDefault": true, "autoHeight": false}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "W15", "data": {"tabs": [{"id": "nde", "title": "Title 1", "params": {}, "chartId": "27zw2juwp5emr", "isDefault": true, "autoHeight": true}], "hideTitle": true}, "type": "widget", "namespace": "default"}, {"id": "k76", "data": {"text": "Cohorts analysis is a common analysis type in product analytics. You can create this type of analysis in DataLens. We need to get a dataset with three fields:\n— Client ID\n— Order date\n— First Order date or Activation date\n\nYou can create such dataset on a database level or using custom SQL in dataset like that:\n```sql\nSELECT\n\tt1.user_id,\n\tt1.order_platform,\n\tdate_trunc(''day'', t2.FirstDate) as \"FirstOrderDate\",\n\tdate_trunc(''day'', t1.order_creation_date) as \"OrderDate\"\nFROM\n\t\"opensource-demo\".orders as t1,\n\t(SELECT\n\t\tuser_id,\n\t\tMIN(order_creation_date) as FirstDate\n\t\tFROM \"opensource-demo\".orders\n\tGROUP BY user_id) as t2\nWHERE t1.user_id = t2.user_id\n```\n\nThat will result data like on the right side."}, "type": "text", "namespace": "default"}, {"id": "EL4", "data": {"text": "Using `DATETRUNC([FirstOrderDate],''MONTH'')` calculate a First order month. Using `floor(([OrderDate]-[FirstOrderDate])/30)` calculate amount of periods past from first order date. Using COUNTD([Client ID]) calculate number of clients in each cohort. Use this fileds configure a table like that:"}, "type": "text", "namespace": "default"}, {"id": "e1J", "data": {"text": "For accurate analysis it is better to use color coding by columns. That way we will be able to compare same \"age\" cohorts. In order to do so create a filed\n`[COUNTD(Client ID)]/MAX([COUNTD(Client ID)] among [FirstOrder_Month])` and drag it to color setion."}, "type": "text", "namespace": "default"}, {"id": "dlQ", "data": {"text": "To display retention, starting from the period \"1\" (to see what percentage of the original customers remained with active), use the calculated field:\n\n```sql\nif (\n[30d]=0,\nstr(round([COUNT([Client ID])),\nconcat(str(round(100*[Client ID]/RMAX([Client ID] among [30d]))), \"%\")\n)\n```\n\nFor color:\n\n```sql\nif (\n[30d]=0,\n(round([COUNTS])),\n(round(100*[COUNTS]/RMAX([COUNTS] among [30d])))\n)\n```"}, "type": "text", "namespace": "default"}, {"id": "3jP", "data": {"text": "># **Cohorts**"}, "type": "text", "namespace": "default"}, {"id": "v47", "data": {"size": "l", "text": "Data", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "a7L", "data": {"size": "l", "text": "Basic cohorts", "showInTOC": true}, "type": "title", "namespace": "default"}, {"id": "Oj3", "data": {"size": "l", "text": "Retention and cohort size at one chart", "showInTOC": true}, "type": "title", "namespace": "default"}], "title": "Cohorts", "layout": [{"h": 21, "i": "bdQ", "w": 20, "x": 16, "y": 5}, {"h": 25, "i": "9Kn", "w": 36, "x": 0, "y": 32}, {"h": 17, "i": "1kE", "w": 36, "x": 0, "y": 52}, {"h": 27, "i": "W15", "w": 24, "x": 12, "y": 72}, {"h": 21, "i": "k76", "w": 16, "x": 0, "y": 5}, {"h": 3, "i": "EL4", "w": 36, "x": 0, "y": 29}, {"h": 4, "i": "e1J", "w": 36, "x": 0, "y": 48}, {"h": 18, "i": "dlQ", "w": 12, "x": 0, "y": 72}, {"h": 3, "i": "3jP", "w": 36, "x": 0, "y": 0}, {"h": 2, "i": "v47", "w": 36, "x": 0, "y": 3}, {"h": 3, "i": "a7L", "w": 36, "x": 0, "y": 26}, {"h": 3, "i": "Oj3", "w": 36, "x": 0, "y": 69}], "aliases": {}, "connections": []}], "counter": 720, "settings": {"expandTOC": false, "globalParams": {}, "silentLoading": false, "autoupdateInterval": null, "dependentSelectors": true, "maxConcurrentRequests": null}, "description": "This is an example dashboard for [DataLens](https://datalens.yandex.ru). You can find detailed feature descriptions on the tabs of the dashboard.", "schemeVersion": 7}', '{"is_release": true}', 'uid:systemId', '2023-11-24 14:23:00.850565+00', 'uid:systemId', '2023-11-24 14:23:00.850565+00', 1560967116373361674, 1507164768509628187, '{"05xu0bafozgep": "05xu0bafozgep", "05xu0e1so1o6p": "05xu0e1so1o6p", "16yxd7gojiacq": "16yxd7gojiacq", "27zw2f553fpqr": "27zw2f553fpqr", "27zw2juwp5emr": "27zw2juwp5emr", "491y4ewqzvbut": "491y4ewqzvbut", "491y4hy1jw5yt": "491y4hy1jw5yt", "491y4iy424wmt": "491y4iy424wmt", "8d528nx6xy7ix": "8d528nx6xy7ix", "8d528ok4io2ax": "8d528ok4io2ax", "af74aq6s79dez": "af74aq6s79dez", "ch96cl4boozy1": "ch96cl4boozy1", "ch96cpyzl3hm1": "ch96cpyzl3hm1", "ch96cs0b54by1": "ch96cs0b54by1", "ejb8ep80pi163": "ejb8ep80pi163", "fkc9fu79zvxg4": "fkc9fu79zvxg4", "gldagp2ekyge5": "gldagp2ekyge5", "gldagxhlpx4q5": "gldagxhlpx4q5", "infciq1c89je7": "infciq1c89je7", "kphekyrgzony9": "kphekyrgzony9", "lqifl0t8hhrga": "lqifl0t8hhrga", "mrjgm1522opyb": "mrjgm1522opyb", "mrjgmvxq6yo2b": "mrjgmvxq6yo2b", "mrjgmyu6wn56b": "mrjgmyu6wn56b", "nskhn3dhudj0c": "nskhn3dhudj0c", "nskhn4ak09vwc": "nskhn4ak09vwc", "otlio209vg4md": "otlio209vg4md", "qvnkq5oj2gy2f": "qvnkq5oj2gy2f", "qvnkqz8s0wdqf": "qvnkqz8s0wdqf", "rwolr3bej5gwg": "rwolr3bej5gwg", "sxpms3pgygm6h": "sxpms3pgygm6h", "sxpms78wdpaqh": "sxpms78wdpaqh", "sxpmsao0sscqh": "sxpmsao0sscqh", "tyqnt5kbstbsi": "tyqnt5kbstbsi", "tyqnt9bovid8i": "tyqnt9bovid8i", "tyqntb2nacawi": "tyqntb2nacawi", "x2urxes3f5vwm": "x2urxes3f5vwm", "y3vsy9b5iv86n": "y3vsy9b5iv86n", "y3vsya0uiqbqn": "y3vsya0uiqbqn", "y3vsyf3u2yaan": "y3vsyf3u2yaan", "z4wtzhsv4vxko": "z4wtzhsv4vxko"}'); INSERT INTO public.links (from_id, to_id, name) VALUES (1507164770061520677, 1507164769826639651, 'dataset'),