Skip to content

Instantly share code, notes, and snippets.

@patrikbraborec
Created November 8, 2022 08:38
Show Gist options
  • Save patrikbraborec/03c1e262e8f81a90d6a29fd07fd74c1b to your computer and use it in GitHub Desktop.
Save patrikbraborec/03c1e262e8f81a90d6a29fd07fd74c1b to your computer and use it in GitHub Desktop.
SELECT (
SELECT {metric/gd_revenue} WHERE (
SELECT {metric/revenue_top_10} BY {label/customers.customer_id} ALL OTHER
) > 0
) / {metric/gd_revenue}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment