Skip to content

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

1.3 KB
Raw Blame
name: Native Query - Variables
entity_id: 2u10n8GV6u0LFYrq8yV5p
creator_id: [email protected]
display: table
collection_id: cOlQuErIeS0ExAmPlE2x1
parameters: []
parameter_mappings: []
dataset_query:
  database: Sample Database
  stages:
  - native: |-
      SELECT *
      FROM ORDERS
      WHERE TOTAL > {{min_total}}
        AND CREATED_AT > {{after_date}}
        AND USER_ID = {{user_id}}
        AND {{is_active}}
    template-tags:
      - default: '2024-01-01'
        display-name: After Date
        id: aa000002-0000-0000-0000-000000000002
        name: after_date
        sectionid: date
        type: date
      - default: true
        display-name: Is Active
        id: aa000004-0000-0000-0000-000000000004
        name: is_active
        sectionid: boolean
        type: boolean
      - default: 50
        display-name: Minimum Total
        id: aa000001-0000-0000-0000-000000000001
        name: min_total
        required: true
        sectionid: number
        type: number
      - default: '1'
        display-name: User ID
        id: aa000003-0000-0000-0000-000000000003
        name: user_id
        type: text
    lib/type: mbql.stage/native
  lib/type: mbql/query
visualization_settings: {}
card_schema: 24
serdes/meta:
- model: Card
metabase_version: v1.57.1-SNAPSHOT (14ff27d)
type: question