Skip to main content

Creating a conditional metric

1

Add the metric

  1. Navigate to Metric in the top navigation.
  2. Click the Add button (⊕).
  3. Enter a Metric Name.
  4. Select Subcategory: Conditional from the dropdown.
  5. Enter a Purpose description.
  6. Click Create.
Image
2

Open the configuration view

Click the metric name to open its detail page, and provide the following details
  • Asset — the table the metric evaluates
  • Metadata tabs — Description, Purpose, Rationale
  • Conditional Metric Configuration — three tabs: Configuration, Total Records, Failed Rows
  • Threshold
  • Semantic context and Owners
Image
3

Set the asset and metadata

Asset: Select the table or view this metric will evaluate. Use the AI-assisted asset selection button to let Prizm suggest an asset based on the metric name and purpose.The Downstream Impact counter shows how many other assets depend on this asset — useful for understanding blast radius.Fill in the metadata tabs as needed:
4

Configure the condition rules (Configuration tab)

The Configuration tab is the core of a conditional metric. It has three sub-sections.

Select criteria

Expand Select criteria to scope which rows are evaluated. By default this uses SELECT * (all rows). Choose between:
  • All columns — evaluate all columns in the asset
  • Selected columns — restrict evaluation to specific columns
Leave Select criteria empty to evaluate every row in the asset.

Condition rules

Define what “valid” means for each row. Use the logical operators NOT / AND / OR to combine multiple rules. Click + Add rule to add a rule or + Add group to create a nested rule group.Select a Rule type from the toolbar, then click + Add rule. Each rule type exposes different fields:
Per-row condition on a single column. Validates that each record’s column value meets a specific condition — e.g., QTY_SOLD Between 10 and 20.
  1. Click Row check in the rule type toolbar.
  2. Click + Add rule.
  3. Select column — choose the column to evaluate.
  4. Select operator — choose the comparison (e.g., =, !=, Between, Is Null, Is Not Null).
  5. For range operators (e.g., Between), enter a Start value and End value.
  6. For single-value operators, enter the comparison Value.
C Onditional Row Check

Rule options

Click Validate to test the rule against current data and preview Valid / Invalid counts. Click View prepared query to inspect the underlying SQL Prizm generates.
5

Define Total Records and Failed Rows queries (optional)

The Total Records and Failed Rows tabs let you override how Prizm counts the denominator and numerator of the score — useful when the default row counts don’t reflect your business logic.Both tabs support Prizm AI suggestions — click the AI icon to generate an appropriate query based on the metric context.
AI Assit Query
6

Set the threshold

Choose how Prizm determines when to raise an alert:Automated Threshold — Prizm learns statistical baselines from historical data and alerts when invalid row counts deviate by a configurable number of standard deviations:Custom Threshold — Set explicit upper and/or lower bounds on the invalid row count or score to trigger alerts.
Conditional Custom Threshold
7

Set semantic context and owners

Scroll down past the Threshold section to complete:
  • Semantic context: Assign Domain, Application, Product, Tag, and Dimension to make the metric discoverable and contextually relevant.
  • Owners: Set Business owner, Technical owner, and Steward.
  • Audience: Restrict who can view this metric’s results.
Click Save Changes when done.