volume_anomalies

Feb 24, 2026

·

5

min read

Anomaly detection, Volume

·

elementary

·

Model,Source

How it Works

The volume_anomalies test from the Elementary dbt package monitors a model's row count over time and uses historical patterns to detect statistically unusual changes. Unlike a static row count threshold, this test adapts to trends and seasonality, making it well-suited for production data that grows or fluctuates predictably over time.

Steps and Conditions

  1. Timestamp Column: Specify the time partitioning column.

  2. Baseline Period: Elementary uses historical volume data to establish expected ranges.

  3. Execution: The current period's row count is compared to the expected range.

  4. Outcome: Pass if the count is within the expected range; fail if an anomaly is detected.

Example Usage: Data Pipeline

A data pipeline ingests daily customer transactions. The team wants to detect significant drops or spikes in volume that could indicate a source failure or data duplication.

models:
  - name: customer_transactions
    tests:
      - elementary.volume_anomalies:
          timestamp_column

models:
  - name: customer_transactions
    tests:
      - elementary.volume_anomalies:
          timestamp_column

models:
  - name: customer_transactions
    tests:
      - elementary.volume_anomalies:
          timestamp_column

If transaction volume drops by 80% compared to a normal day, Elementary raises an alert, catching pipeline failures before they affect business reporting.

Interested to Learn More?
Try Out the Free 14-Days Trial

More Articles

decorative icon

Experience Analytics for the AI-Era

Start your 14-day trial today - it's free and no credit card needed

decorative icon

Experience Analytics for the AI-Era

Start your 14-day trial today - it's free and no credit card needed

decorative icon

Experience Analytics for the AI-Era

Start your 14-day trial today - it's free and no credit card needed

Copyright © 2026 Paradime Labs, Inc.

Made with ❤️ in San Francisco ・ London

*dbt® and dbt Core® are federally registered trademarks of dbt Labs, Inc. in the United States and various jurisdictions around the world. Paradime is not a partner of dbt Labs. All rights therein are reserved to dbt Labs. Paradime is not a product or service of or endorsed by dbt Labs, Inc.

Copyright © 2026 Paradime Labs, Inc.

Made with ❤️ in San Francisco ・ London

*dbt® and dbt Core® are federally registered trademarks of dbt Labs, Inc. in the United States and various jurisdictions around the world. Paradime is not a partner of dbt Labs. All rights therein are reserved to dbt Labs. Paradime is not a product or service of or endorsed by dbt Labs, Inc.

Copyright © 2026 Paradime Labs, Inc.

Made with ❤️ in San Francisco ・ London

*dbt® and dbt Core® are federally registered trademarks of dbt Labs, Inc. in the United States and various jurisdictions around the world. Paradime is not a partner of dbt Labs. All rights therein are reserved to dbt Labs. Paradime is not a product or service of or endorsed by dbt Labs, Inc.