This article helps you:
Import precomputed metrics from your data warehouse into Amplitude
Use warehouse-defined metrics in experiments and analytics
Maintain consistency between your warehouse and Amplitude metrics
Warehouse Metrics enable you to import precomputed metrics directly from your data warehouse into Amplitude, ensuring consistency between your source of truth and your analytics.
Unlike event-based metrics that Amplitude calculates from behavioral data, Warehouse Metrics sync pre-calculated values from your warehouse. This lets you use critical business metrics like revenue, customer lifetime value, health scores, and financial KPIs alongside behavioral data in Amplitude's analytics and experimentation tools.
Warehouse Metrics sync on a recurring schedule from tables in your data warehouse. Each row should include the following:
user_id or device_id to which the metric applies.health_score: "green", or paid: true).
user_id) and anonymous users (device_id).Warehouse Metrics supports the following aggregation types on values:
For more information, review Warehouse Metric Calculations.
Warehouse Metrics solve challenges where critical business metrics are difficult or impossible to calculate natively in Amplitude:
These metrics often require data that's too high-volume, sensitive, or non-event-based to send to Amplitude efficiently.
These metrics require modeling and forecasting that happens in your data warehouse.
These metrics track current user state rather than discrete events.
Warehouse Metrics supports Snowflake.
If this is your first time importing from this table, enable change tracking in Snowflake:
ALTER TABLE YOUR_DATABASE.YOUR_SCHEMA.YOUR_METRICS_TABLE
SET DATA_RETENTION_TIME_IN_DAYS = 7;
ALTER TABLE YOUR_DATABASE.YOUR_SCHEMA.YOUR_METRICS_TABLE
SET CHANGE_TRACKING = TRUE;
Follow the instructions in Snowflake Data Import to connect to your Snowflake instance.
Your metrics table must include specific required fields and can optionally include additional fields. At least one metric or dimension field is required.
| Field | Description | Example |
|---|---|---|
time |
When the metric value is valid | 1762813185 |
user_id or device_id |
A unique identifier for a user or device. | user_12345 |
| Field | Description | Example |
|---|---|---|
insert_id |
A unique identifier for deduplication. | 51a87950-b35d-4a2f-b919-af92f00f75dd |
| Field Type | Description | Example |
|---|---|---|
| Metric | Numeric value (integer or decimal) | 150.25 |
| Dimension | String, boolean, or number for filtering/grouping | "active", true, 10 |
{
"time": "1762813185",
"user_id": "user_12345",
"total_revenue": 1543.50,
"order_count": 12,
"ltv": 15430.00,
"health_score": "green",
"is_paid": true
}
SELECT
event_date AS "time",
user_id AS "user_id",
total_revenue AS "total_revenue",
order_count AS "order_count",
ltv AS "ltv",
health_score AS "health_score",
is_paid_customer AS "is_paid"
FROM DATABASE_NAME.SCHEMA_NAME.METRICS_TABLE
WHERE event_date >= CURRENT_DATE - INTERVAL '30 days'
Use Warehouse Metrics in end-to-end experiments or experiment results as:
When you create or edit an experiment, select metrics from the Warehouse source in the metrics picker.
If you encounter issues with Warehouse Metrics, these common problems and solutions can help you resolve them.
Yes, but Warehouse Metrics are most powerful when combined with behavioral events. You can create metric-only charts if needed.
Profiles sync current user attributes. Warehouse Metrics sync time-series numeric values that you can combine, use as experiment goals, and visualize over time.
November 10th, 2025
Need help? Contact Support
Visit Amplitude.com
Have a look at the Amplitude Blog
Learn more at Amplitude Academy
© 2025 Amplitude, Inc. All rights reserved. Amplitude is a registered trademark of Amplitude, Inc.