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

[Feature] Allow defining aliases for metrics #1603

Open
3 tasks done
siljamardla opened this issue Jan 16, 2025 · 0 comments
Open
3 tasks done

[Feature] Allow defining aliases for metrics #1603

siljamardla opened this issue Jan 16, 2025 · 0 comments
Labels
enhancement New feature or request triage Tasks that need to be triaged

Comments

@siljamardla
Copy link

Is this your first time submitting a feature request?

  • I have read the expectations for open source contributors
  • I have searched the existing issues, and I could not find an existing issue for this feature
  • I am requesting a straightforward extension of existing metricflow functionality, rather than a Big Idea better suited to a discussion

Describe the feature

In a real business environment it happens that we might have multiple widely used names for the same metric. It should be possible to define aliases for metrics so that users could query the metric by either name. For example:

metrics:   
  - name: subscription_revenue
    label: Subscription Revenue
    alias: premium_revenue
    alias_label: Premium Revenue
    description: We have a subscription business called "premium", this metric shows the revenue from the subscription a.k.a. premium product
    type: simple
    type_params:
      measure: revenue

Describe alternatives you've considered

Defining one metric and a derived metric on top of that metric, to be able to give the derived metric a different name, although there is no calculation involved. This option would create unnecessary complications in the compiles SQL and inflate the number of metrics in the glossary.

Who will this benefit?

All MetricFlow users.

Are you interested in contributing this feature?

With testing and feedback, yes

Anything else?

No response

@siljamardla siljamardla added enhancement New feature or request triage Tasks that need to be triaged labels Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request triage Tasks that need to be triaged
Projects
None yet
Development

No branches or pull requests

1 participant