fbdf80bd71
- scratchpad/ap.parquet - scratchpad/bq.py - scratchpad/cards.json - scratchpad/citas_recon.csv - scratchpad/dash.txt - scratchpad/diego.parquet - scratchpad/diego_literals.sql - scratchpad/exf/ - scratchpad/va.parquet - scratchpad/vm.parquet Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 line
9.8 KiB
JSON
1 line
9.8 KiB
JSON
{"cache_invalidated_at":"2026-03-13T11:30:49.643569Z","description":null,"archived":false,"view_count":41,"collection_position":null,"source_card_id":null,"table_id":null,"can_run_adhoc_query":true,"result_metadata":[{"semantic_type":null,"lib/deduplicated-name":"orderitem_id","lib/original-name":"orderitem_id","name":"orderitem_id","lib/source":"source/native","lib/source-column-alias":"orderitem_id","source":"native","field_ref":["field","orderitem_id",{"base-type":"type/Integer"}],"effective_type":"type/Integer","lib/desired-column-alias":"orderitem_id","display_name":"orderitem_id","fingerprint":{"global":{"distinct-count":2000,"nil%":0.0},"type":{"type/Number":{"min":52037.0,"q1":2.958684657004202E7,"q3":3.886825380192011E7,"max":4.3790929E7,"sd":7775367.058340133,"avg":3.3509041372999996E7}}},"base_type":"type/Integer"},{"semantic_type":null,"lib/deduplicated-name":"valor_linea","lib/original-name":"valor_linea","name":"valor_linea","lib/source":"source/native","lib/source-column-alias":"valor_linea","source":"native","field_ref":["field","valor_linea",{"base-type":"type/Float"}],"effective_type":"type/Float","lib/desired-column-alias":"valor_linea","display_name":"valor_linea","fingerprint":{"global":{"distinct-count":397,"nil%":0.0},"type":{"type/Number":{"min":-41.32231404958678,"q1":3.4984741920903693,"q3":14.513617112679555,"max":260.3223140495868,"sd":18.0196126096143,"avg":12.256510041322315}}},"base_type":"type/Float"},{"semantic_type":null,"lib/deduplicated-name":"nav_id","lib/original-name":"nav_id","name":"nav_id","lib/source":"source/native","lib/source-column-alias":"nav_id","source":"native","field_ref":["field","nav_id",{"base-type":"type/Text"}],"effective_type":"type/Text","lib/desired-column-alias":"nav_id","display_name":"nav_id","fingerprint":{"global":{"distinct-count":1900,"nil%":0.0},"type":{"type/Text":{"percent-json":0.0,"percent-url":0.0,"percent-email":0.0,"percent-state":0.0,"average-length":14.3245}}},"base_type":"type/Text"},{"semantic_type":null,"lib/deduplicated-name":"fecha","lib/original-name":"fecha","name":"fecha","lib/source":"source/native","lib/source-column-alias":"fecha","source":"native","field_ref":["field","fecha",{"base-type":"type/DateTimeWithLocalTZ"}],"effective_type":"type/DateTimeWithLocalTZ","lib/desired-column-alias":"fecha","display_name":"fecha","fingerprint":{"global":{"distinct-count":1900,"nil%":0.0},"type":{"type/DateTime":{"earliest":"2022-04-08T12:29:36.66388Z","latest":"2026-03-27T08:55:13.41165Z"}}},"base_type":"type/DateTimeWithLocalTZ"},{"semantic_type":null,"lib/deduplicated-name":"product_id","lib/original-name":"product_id","name":"product_id","lib/source":"source/native","lib/source-column-alias":"product_id","source":"native","field_ref":["field","product_id",{"base-type":"type/Integer"}],"effective_type":"type/Integer","lib/desired-column-alias":"product_id","display_name":"product_id","fingerprint":{"global":{"distinct-count":663,"nil%":0.0},"type":{"type/Number":{"min":11063.0,"q1":4615920.257072156,"q3":2.2125587145358697E7,"max":1.945374409E9,"sd":4.098977027978754E8,"avg":1.942166970095E8}}},"base_type":"type/Integer"},{"semantic_type":null,"lib/deduplicated-name":"center_id","lib/original-name":"center_id","name":"center_id","lib/source":"source/native","lib/source-column-alias":"center_id","source":"native","field_ref":["field","center_id",{"base-type":"type/Integer"}],"effective_type":"type/Integer","lib/desired-column-alias":"center_id","display_name":"center_id","fingerprint":{"global":{"distinct-count":101,"nil%":0.0},"type":{"type/Number":{"min":2.0,"q1":53.1546964091676,"q3":126.4687697567652,"max":186.0,"sd":44.46849855700444,"avg":81.8615}}},"base_type":"type/Integer"},{"semantic_type":null,"lib/deduplicated-name":"tipo","lib/original-name":"tipo","name":"tipo","lib/source":"source/native","lib/source-column-alias":"tipo","source":"native","field_ref":["field","tipo",{"base-type":"type/Text"}],"effective_type":"type/Text","lib/desired-column-alias":"tipo","display_name":"tipo","fingerprint":{"global":{"distinct-count":1,"nil%":0.0},"type":{"type/Text":{"percent-json":0.0,"percent-url":0.0,"percent-email":0.0,"percent-state":0.0,"average-length":7.0}}},"base_type":"type/Text"},{"semantic_type":null,"lib/deduplicated-name":"cantidad","lib/original-name":"cantidad","name":"cantidad","lib/source":"source/native","lib/source-column-alias":"cantidad","source":"native","field_ref":["field","cantidad",{"base-type":"type/Integer"}],"effective_type":"type/Integer","lib/desired-column-alias":"cantidad","display_name":"cantidad","fingerprint":{"global":{"distinct-count":8,"nil%":0.0},"type":{"type/Number":{"min":-1.0,"q1":0.46078244174660665,"q3":1.3752743488444183,"max":133.0,"sd":2.990908309570544,"avg":1.1595}}},"base_type":"type/Integer"},{"semantic_type":null,"lib/deduplicated-name":"nav_id_producto","lib/original-name":"nav_id_producto","name":"nav_id_producto","lib/source":"source/native","lib/source-column-alias":"nav_id_producto","source":"native","field_ref":["field","nav_id_producto",{"base-type":"type/Text"}],"effective_type":"type/Text","lib/desired-column-alias":"nav_id_producto","display_name":"nav_id_producto","fingerprint":{"global":{"distinct-count":663,"nil%":0.0},"type":{"type/Text":{"percent-json":0.0,"percent-url":0.0,"percent-email":0.0,"percent-state":0.0,"average-length":5.553}}},"base_type":"type/Text"},{"semantic_type":null,"lib/deduplicated-name":"NumeroLineaOrdenada","lib/original-name":"NumeroLineaOrdenada","name":"NumeroLineaOrdenada","lib/source":"source/native","lib/source-column-alias":"NumeroLineaOrdenada","source":"native","field_ref":["field","NumeroLineaOrdenada",{"base-type":"type/Integer"}],"effective_type":"type/Integer","lib/desired-column-alias":"NumeroLineaOrdenada","display_name":"NumeroLineaOrdenada","fingerprint":{"global":{"distinct-count":8,"nil%":0.0},"type":{"type/Number":{"min":1.0,"q1":1.0,"q3":1.916864166750122,"max":8.0,"sd":0.8938563864625065,"avg":1.5205}}},"base_type":"type/Integer"},{"semantic_type":null,"lib/deduplicated-name":"NumeroLineasTotales","lib/original-name":"NumeroLineasTotales","name":"NumeroLineasTotales","lib/source":"source/native","lib/source-column-alias":"NumeroLineasTotales","source":"native","field_ref":["field","NumeroLineasTotales",{"base-type":"type/Integer"}],"effective_type":"type/Integer","lib/desired-column-alias":"NumeroLineasTotales","display_name":"NumeroLineasTotales","fingerprint":{"global":{"distinct-count":11,"nil%":0.0},"type":{"type/Number":{"min":1.0,"q1":1.1270963406603265,"q3":2.6753046269430953,"max":12.0,"sd":1.309847930410397,"avg":2.0875}}},"base_type":"type/Integer"}],"embedding_type":null,"dependency_analysis_version":0,"creator":{"email":"egutierrez@aurgi.com","first_name":"Enmanuel","is_data_analyst":false,"last_login":"2026-07-01T10:00:47.469194Z","is_qbnewb":false,"is_superuser":true,"id":219,"last_name":"Gutierrez Perez","tenant_id":null,"date_joined":"2024-03-26T10:34:07.442Z","common_name":"Enmanuel Gutierrez Perez"},"initially_published_at":null,"can_write":true,"card_schema":23,"database_id":6,"enable_embedding":false,"collection_id":406,"query_type":"native","name":"Movimientos de venta de TPV con numero de linea","last_query_start":"2026-07-01T14:28:26.630814Z","is_remote_synced":false,"dashboard_count":1,"document_id":null,"last_used_at":"2026-07-01T15:22:06.256525Z","dashboard":null,"type":"question","average_query_time":15764.961538461538,"creator_id":219,"can_restore":false,"moderation_reviews":[],"updated_at":"2026-03-13T11:31:30.088739Z","made_public_by_id":null,"embedding_params":null,"cache_ttl":null,"dataset_query":{"lib/type":"mbql/query","stages":[{"lib/type":"mbql.stage/native","native":"SELECT\n tpv.*, \n `Products___product_id`.`nav_id` AS `nav_id_producto`,\n \n ROW_NUMBER() OVER (\n PARTITION BY tpv.`nav_id`\n ORDER BY SAFE_CAST(`Products___product_id`.`nav_id`as int) ASC,\n tpv.`valor_linea` ASC\n ) AS NumeroLineaOrdenada,\n\n \n COUNT(*) OVER (\n PARTITION BY tpv.`nav_id`\n ) AS NumeroLineasTotales\n \nFROM `autingo-159109.anjana_bi_datamart.Lineas_ventas-TPV_Ok` AS tpv\nLEFT JOIN `psql_dcpublic.products` AS `Products___product_id` \n ON tpv.`product_id` = `Products___product_id`.`id`\n\nWHERE tpv.`valor_linea` != 0"}],"database":6,"lib.convert/converted?":true},"id":4493,"legacy_query":"{\"database\":6,\"type\":\"native\",\"native\":{\"template-tags\":{},\"query\":\"SELECT\\n tpv.*, \\n `Products___product_id`.`nav_id` AS `nav_id_producto`,\\n \\n ROW_NUMBER() OVER (\\n PARTITION BY tpv.`nav_id`\\n ORDER BY SAFE_CAST(`Products___product_id`.`nav_id`as int) ASC,\\n tpv.`valor_linea` ASC\\n ) AS NumeroLineaOrdenada,\\n\\n \\n COUNT(*) OVER (\\n PARTITION BY tpv.`nav_id`\\n ) AS NumeroLineasTotales\\n \\nFROM `autingo-159109.anjana_bi_datamart.Lineas_ventas-TPV_Ok` AS tpv\\nLEFT JOIN `psql_dcpublic.products` AS `Products___product_id` \\n ON tpv.`product_id` = `Products___product_id`.`id`\\n\\nWHERE tpv.`valor_linea` != 0\"}}","parameter_mappings":[],"can_manage_db":false,"display":"table","archived_directly":false,"entity_id":"AtlqaDw6F5_apLBZ6hW-B","collection_preview":true,"last-edit-info":{"id":219,"email":"egutierrez@aurgi.com","first_name":"Enmanuel","last_name":"Gutierrez Perez","timestamp":"2026-03-13T11:30:49.803253Z"},"visualization_settings":{"table.pivot_column":"tipo","table.cell_column":"valor_linea"},"collection":{"authority_level":null,"description":null,"archived":false,"workspace_id":null,"slug":"ventas","archive_operation_id":null,"name":"VENTAS","is_remote_synced":false,"personal_owner_id":null,"type":null,"is_sample":false,"id":406,"archived_directly":null,"entity_id":"EMsdi8wENXf6riuJelXXz","location":"/400/","namespace":null,"is_personal":false,"created_at":"2025-07-17T22:44:53.718794Z"},"metabase_version":"v0.55.7 (dcea6a4)","parameters":[],"dashboard_id":null,"created_at":"2025-08-14T13:49:49.845138Z","parameter_usage_count":0,"public_uuid":null,"can_delete":false} |