Skip to content

The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:

687 B
Raw Blame
creator_id: [email protected]
entity_id: w7EfUbsxLA7kXBHVXgeaZ
indexes: []
name: Monthly Sales Summary
source:
  query:
    database: Sample Database
    stages:
    - native: |-
        SELECT
          DATE_TRUNC('month', o.CREATED_AT) AS month,
          p.CATEGORY,
          COUNT(*) AS order_count,
          SUM(o.TOTAL) AS total_revenue
        FROM ORDERS o
        JOIN PRODUCTS p ON o.PRODUCT_ID = p.ID
        GROUP BY 1, 2
      lib/type: mbql.stage/native
    lib/type: mbql/query
  type: query
source_database_id: Sample Database
tags: []
target:
  database: Sample Database
  name: monthly_sales_summary
  schema: TRANSFORMS
  type: table
serdes/meta:
- model: Transform