Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support model level measures #50

Open
yu-iskw opened this issue May 11, 2022 · 0 comments
Open

Support model level measures #50

yu-iskw opened this issue May 11, 2022 · 0 comments

Comments

@yu-iskw
Copy link
Contributor

yu-iskw commented May 11, 2022

Motivation

We technically implement a measure with multiple columns under a column meta. But, it would be more natural to implement such measures as model-level.

models:
  - name: ubie_jp_lake__dm_medico__hourly_score_for_nps
    description: |
      {{ doc("ubie_jp_lake__dm_medico__hourly_score_for_nps") }}
    meta:
      measures:
        total_x_y_z:
          type: number
          description: 'Summation of total x, total y and total z'
          sql: '${total_x} + ${total_y} + ${total_z}'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant