Schema:

ORGANIZATION_USAGE

For guidance on query performance when using organization-wide usage views, see Performance (Organization Usage).

SEMANTIC_METRICS view

Important

This view is only available in the organization account. For more information, see Premium views in the organization account.

Organization Usage performance

When you query a specific view in the SNOWFLAKE.ORGANIZATION_USAGE schema, follow the organization-wide guidance in Performance (Organization Usage): bound every scan on history views, list columns explicitly, and use the time filter column table plus worked SQL and anti-patterns there.

This Organization Usage view displays a row for each metric defined in a semantic view.

See also:

SEMANTIC_METRICS view

Columns

Organization-level columns

Column NameData TypeDescription
ORGANIZATION_NAMEVARCHARName of the organization.
ACCOUNT_LOCATORVARCHARSystem-generated identifier for the account.
ACCOUNT_NAMEVARCHARUser-defined identifier for the account.

Additional columns

Column NameData TypeDescription
SEMANTIC_METRIC_IDNUMBERID of the metric in the semantic view.
SEMANTIC_METRIC_NAMEVARCHARName of the metric in the semantic view.
SEMANTIC_TABLE_IDNUMBERID of the logical table the metric belongs to.
SEMANTIC_TABLE_NAMEVARCHARName of the logical table the metric belongs to.
SEMANTIC_VIEW_IDNUMBERInternal, Snowflake-generated identifier for the semantic view in which the metric is defined.
SEMANTIC_VIEW_NAMEVARCHARName of the semantic view in which the metric is defined.
SEMANTIC_VIEW_SCHEMA_IDNUMBERInternal, Snowflake-generated identifier for the schema that the semantic view belongs to.
SEMANTIC_VIEW_SCHEMA_NAMEVARCHARSchema that the semantic view belongs to.
SEMANTIC_VIEW_DATABASE_IDNUMBERInternal, Snowflake-generated identifier for the database that the semantic view belongs to.
SEMANTIC_VIEW_DATABASE_NAMEVARCHARDatabase that the semantic view belongs to.
DATA_TYPEVARCHARData type of the metric expression.
EXPRESSIONVARCHARThe SQL expression used to calculate the metric.
SYNONYMSARRAYList of the synonyms for the metric.
CREATEDTIMESTAMP_LTZCreation time of the metric.
LAST_ALTEREDTIMESTAMP_LTZDate and time the object was last altered by a DDL or background metadata operation.
DELETEDTIMESTAMP_LTZDate and time when the metric was dropped.
COMMENTVARCHARDescription of the metric.
ADDITIVE_DIMENSIONSARRAYList of dimensions from the semantic view that the metric can be grouped by.
NON_ADDITIVE_DIMENSIONSARRAYList of dimensions from the semantic view that the metric cannot be grouped by.
USING_RELATIONSHIPSARRAYList of relationship names that the metric uses.
ACCESS_MODIFIERVARCHARAccess modifier for the metric.

Usage notes

  • Latency for the view may be up to 24 hours.