The easy-to-use open source Business Intelligence and Embedded Analytics tool that lets everyone work with data :bar_chart:
TypeScript analyticsbibusiness-intelligencebusinessintelligenceclojuredashboarddatadata-analysisdata-visualizationdatabasemetabasemysqlpostgrespostgresqlreportingslacksql-editorvisualization
name: Nested Query
entity_id: 1t9TE-8T-AlaM19nx3yQV
creator_id: [email protected]
display: table
collection_id: cOlQuErIeS0ExAmPlE2x1
parameters: []
parameter_mappings: []
dataset_query:
database: Sample Database
stages:
- aggregation:
- - count
- {}
- - sum
- {}
- - field
- base-type: type/Float
- - Sample Database
- PUBLIC
- ORDERS
- TOTAL
breakout:
- - field
- {}
- - Sample Database
- PUBLIC
- ORDERS
- USER_ID
source-table:
- Sample Database
- PUBLIC
- ORDERS
lib/type: mbql.stage/mbql
- filters:
- - '>'
- {}
- - field
- base-type: type/Integer
- count
- 5
limit: 20
order-by:
- - desc
- {}
- - field
- base-type: type/Float
- sum
lib/type: mbql.stage/mbql
lib/type: mbql/query
result_metadata:
- active: true
base_type: type/Integer
database_type: INTEGER
display_name: User ID
effective_type: type/Integer
field_ref:
- field
- - Sample Database
- PUBLIC
- ORDERS
- USER_ID
- null
fk_target_field_id:
- Sample Database
- PUBLIC
- PEOPLE
- ID
id:
- Sample Database
- PUBLIC
- ORDERS
- USER_ID
name: USER_ID
position: 1
semantic_type: type/FK
source: fields
table_id:
- Sample Database
- PUBLIC
- ORDERS
visibility_type: normal
lib/breakout?: false
lib/deduplicated-name: USER_ID
lib/desired-column-alias: USER_ID
lib/original-display-name: User ID
lib/original-name: USER_ID
lib/source: source/previous-stage
lib/source-column-alias: USER_ID
qp/implicit-field?: true
- base_type: type/Integer
display_name: Count
effective_type: type/Integer
field_ref:
- field
- count
- base-type: type/Integer
name: count
semantic_type: type/Quantity
source: fields
lib/breakout?: false
lib/deduplicated-name: count
lib/desired-column-alias: count
lib/original-name: count
lib/source: source/previous-stage
lib/source-column-alias: count
qp/implicit-field?: true
- base_type: type/Float
display_name: Sum of Total
effective_type: type/Float
field_ref:
- field
- sum
- base-type: type/Float
name: sum
source: fields
lib/breakout?: false
lib/deduplicated-name: sum
lib/desired-column-alias: sum
lib/original-name: sum
lib/source: source/previous-stage
lib/source-column-alias: sum
qp/implicit-field?: true
visualization_settings: {}
card_schema: 24
serdes/meta:
- model: Card
metabase_version: v1.57.1-SNAPSHOT (14ff27d)
type: question