Skip to content
Snippets Groups Projects
GenericTable.yaml 9.22 KiB
Newer Older
  • Learn to ignore specific revisions
  • title: "A look at your [[GenericTable]] table"
    transient_title: "Here's a quick look at your [[GenericTable]] table"
    
    Maz Ameli's avatar
    Maz Ameli committed
    description: An overview of your [[GenericTable]] table and how it's distributed across time, place, and categories.
    
    Simon Belak's avatar
    Simon Belak committed
    metrics:
    
      - Count: ["count"]
      - CountDistinctFKs: [distinct, [dimension, FK]]
    
      - Sum: [sum, [dimension, GenericNumber]]
    
    Simon Belak's avatar
    Simon Belak committed
      - Avg:
          metric: [avg, [dimension, GenericNumber]]
    
    Simon Belak's avatar
    Simon Belak committed
    dimensions:
    
      - Country:
    
          field_type: GenericTable.Country
    
    Simon Belak's avatar
    Simon Belak committed
          score: 100
    
      - State:
    
          field_type: GenericTable.State
    
    Simon Belak's avatar
    Simon Belak committed
          score: 100
    
      - GenericNumber:
    
          field_type: GenericTable.Number
          score: 80
    
      - Source:
    
          field_type: GenericTable.Source
    
    Simon Belak's avatar
    Simon Belak committed
          score: 100
    
      - GenericCategorySmall:
    
          field_type: GenericTable.Category
          score: 80
    
          max_cardinality: 5
      - GenericCategoryMedium:
    
          field_type: GenericTable.Category
    
    Simon Belak's avatar
    Simon Belak committed
          score: 75
    
          max_cardinality: 10
      - GenericCategoryLarge:
    
          field_type: GenericTable.Category
          score: 70
    
      - Singleton:
    
          field_type: GenericTable.Category
    
          max_cardinality: 1
    
          score: 100
      - Timestamp:
          field_type: DateTime
          score: 60
    
    Simon Belak's avatar
    Simon Belak committed
      - JoinDate:
    
          field_type: GenericTable.JoinTimestamp
          score: 50
    
    Simon Belak's avatar
    Simon Belak committed
      - CreateDate:
    
          field_type: CreationTimestamp
          score: 80
    
    Simon Belak's avatar
    Simon Belak committed
      - FK: FK
    
      - Long: GenericTable.Longitude
      - Lat: GenericTable.Latitude
    
      - Birthdate: Birthdate
    
    filters:
      - Last30Days:
          filter: ["time-interval", [dimension, CreateDate], -30, day]
          score: 100
      - Last30Days:
    
          filter: ["time-interval", [dimension, JoinDate], -30, day]
    
      - Last30Days:
          filter: ["time-interval", [dimension, Timestamp], -30, day]
          score: 80
    
        title: Summary
    
    - Singletons:
    
        title: These are the same for all your [[this]]
    
        title: "[[GenericTable]] across time"
    
    - Geographical:
    
    Maz Ameli's avatar
    Maz Ameli committed
        title: Where your [[GenericTable]] are
    
    Maz Ameli's avatar
    Maz Ameli committed
        title: How [[GenericTable]] are distributed
    
    dashboard_filters:
    - Timestamp
    - JoinDate
    - CreateDate
    - GenericCategoryMedium
    - Source
    - Country
    - State
    
    Simon Belak's avatar
    Simon Belak committed
    cards:
    
    # Overview
      - Rowcount:
          title: Total [[GenericTable]]
          visualization: scalar
          metrics: Count
          score: 100
          group: Overview
      - RowcountLast30Days:
          title: New [[GenericTable]] in the last 30 days
          visualization: scalar
          metrics: Count
          score: 100
          filters: Last30Days
          group: Overview
      - DistinctFKCounts:
          title: Distinct [[FK]]
          visualization: scalar
          metrics: CountDistinctFKs
          score: 100
          group: Overview
    
    # General
      - NumberDistribution:
          title: How [[GenericTable]] are distributed across [[GenericNumber]]
          dimensions:
            - GenericNumber:
                aggregation: default
    
          visualization: bar
          score: 90
          group: General
      - CountByCategoryMedium:
          title: "[[GenericTable]] per [[GenericCategoryMedium]]"
          dimensions: GenericCategoryMedium
    
          visualization: row
          score: 80
          height: 8
          group: General
          order_by:
            - Count: descending
      - CountByCategoryLarge:
          title: "[[GenericTable]] per [[GenericCategoryLarge]]"
          dimensions: GenericCategoryLarge
          metrics: Count
          visualization: table
          height: 8
          score: 70
          group: General
          order_by:
            - Count: descending
    
      - CountByCountry:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: "[[GenericTable]] per country"
    
    Simon Belak's avatar
    Simon Belak committed
          metrics: Count
    
    Simon Belak's avatar
    Simon Belak committed
          dimensions: Country
    
          visualization:
            map:
              map.type: region
              map.region: world_countries
    
          group: Geographical
    
          height: 6
    
      - CountByState:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: "[[GenericTable]] per state"
    
          metrics: Count
          dimensions: State
    
          visualization:
            map:
              map.type: region
              map.region: us_states
    
          group: Geographical
    
          height: 6
    
      - CountByCoords:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: "[[GenericTable]] by coordinates"
    
          metrics: Count
          dimensions:
    
    Sameer Al-Sakran's avatar
    Sameer Al-Sakran committed
            - Long
            - Lat
    
          visualization: map
    
          score: 80
          group: Geographical
    
          height: 6
    
      - CountByJoinDate:
    
          title: "[[GenericTable]] that have joined over time"
    
          visualization: line
          dimensions: JoinDate
          metrics: Count
    
      - CountByCreateDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: New [[GenericTable]] over time
    
          visualization: line
          dimensions: CreateDate
          metrics: Count
    
      - CountByTimestamp:
    
          title: "[[GenericTable]] by [[Timestamp]]"
    
          visualization: line
          dimensions: Timestamp
          metrics: Count
          score: 20
    
      - NumberOverTime:
          title: "[[GenericNumber]] over time"
          visualization: line
          dimensions: Timestamp
          metrics:
            - Sum
            - Avg
          score: 70
    
          group: ByTime
      - NumberOverJoinDate:
    
          title: "[[GenericNumber]] by join date"
    
          visualization: line
          dimensions: JoinDate
          metrics:
            - Sum
            - Avg
          score: 80
          group: ByTime
      - NumberOverCreateDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: "[[GenericNumber]] over time"
    
          visualization: line
          dimensions: CreateDate
          metrics:
            - Sum
            - Avg
          score: 90
          group: ByTime
    
      - DayOfWeekTimestamp:
    
          title: "[[Timestamp]] by day of the week"
    
          visualization: bar
          dimensions:
            - Timestamp:
                aggregation: day-of-week
          metrics: Count
          score: 60
    
          x_label: "[[Timestamp]]"
    
      - HourOfDayTimestamp:
    
          title: "[[Timestamp]] by hour of the day"
    
          visualization: bar
          dimensions:
          - Timestamp:
              aggregation: hour-of-day
          metrics: Count
          score: 50
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: "[[Timestamp]]"
    
      - MonthOfYearTimestamp:
    
          title: "[[Timestamp]] by month of the year"
    
          visualization: bar
          dimensions:
            - Timestamp:
                aggregation: month-of-year
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: "[[Timestamp]]"
    
      - QuarterOfYearTimestamp:
    
          title: "[[Timestamp]] by quarter of the year"
    
          visualization: bar
          dimensions:
            - Timestamp:
                aggregation: quarter-of-year
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: "[[Timestamp]]"
    
      - DayOfWeekCreateDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Weekdays when new [[GenericTable]] were added
    
          visualization: bar
          dimensions:
            - CreateDate:
                aggregation: day-of-week
          metrics: Count
          score: 60
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Created At by day of the week
    
      - HourOfDayCreateDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Hours when new [[GenericTable]] were added
    
          visualization: bar
          dimensions:
          - CreateDate:
              aggregation: hour-of-day
          metrics: Count
          score: 50
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Created At by hour of the day
    
      - DayOfMonthCreateDate:
    
          title: Days when new [[GenericTable]] were added
    
          visualization: bar
          dimensions:
            - CreateDate:
                aggregation: day-of-month
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Created At by day of the month
    
      - MonthOfYearCreateDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Months when new [[GenericTable]] were added
    
          visualization: bar
          dimensions:
            - CreateDate:
                aggregation: month-of-year
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Created At by month of the year
    
      - QuerterOfYearCreateDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Quarters when new [[GenericTable]] were added
    
          visualization: bar
          dimensions:
            - CreateDate:
                aggregation: quarter-of-year
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Created At by quarter of the year
    
      - DayOfWeekJoinDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Weekdays when [[GenericTable]] joined
    
          visualization: bar
          dimensions:
            - JoinDate:
                aggregation: day-of-week
          metrics: Count
          score: 60
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Join date by day of the week
    
      - HourOfDayJoinDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Hours when [[GenericTable]] joined
    
          visualization: bar
          dimensions:
          - JoinDate:
              aggregation: hour-of-day
          metrics: Count
          score: 50
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Join date by hour of the day
    
      - DayOfMonthJoinDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Days of the month when [[GenericTable]] joined
    
          visualization: bar
          dimensions:
            - JoinDate:
                aggregation: day-of-month
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Join date by day of the month
    
      - MonthOfYearJoinDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Months when [[GenericTable]] joined
    
          visualization: bar
          dimensions:
            - JoinDate:
                aggregation: month-of-year
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Join date by month of the year
    
      - QuerterOfYearJoinDate:
    
    Maz Ameli's avatar
    Maz Ameli committed
          title: Quarters when [[GenericTable]] joined
    
          visualization: bar
          dimensions:
            - JoinDate:
                aggregation: quarter-of-year
          metrics: Count
          score: 40
    
    Maz Ameli's avatar
    Maz Ameli committed
          x_label: Join date by quarter of the year
    
      - Singleton:
          title: "[[Singleton]]"
    
          dimensions: Singleton
          score: 30
    
    Simon Belak's avatar
    Simon Belak committed
          height: 3
          width: 3
    
    Maz Ameli's avatar
    Maz Ameli committed
          group: Singletons