A worked example of using a gating condition to only email a scheduled Dashboard when specific business rules aren’t met.When you schedule a Dashboard job, you can add a gating condition that determines whether Invoca sends the scheduled email. If the condition evaluates to
true at the scheduled time, Invoca emails the Dashboard to the specified recipients; if it evaluates to false, Invoca doesn’t send it.
This article walks through an example scenario that uses a gating condition to alert specified users only when there’s a problem worth flagging.
Gating condition functionality
A gating condition is a statement that returns a single boolean value (true or false). For example, sum (revenue) > 100 is a valid condition, but is_weekend (commit_date) is not, since it returns a result per row of data. Invoca checks the formula syntax, but doesn’t validate whether the formula returns a valid single boolean.
For a list of valid formulas, see Formula function reference.
Gating condition example
You can use gating conditions to send alerts. For example, suppose you notice invalid data appearing in recent data loads, even though the loads seem to succeed. You can validate incoming data by setting business rules, such as:- Sales validation: the sum of sales today versus yesterday shouldn’t vary by more than 20%.
- Product validation: the unique product count should be greater than 4,000 but less than 5,500.
- Customer validation: the unique customer count should be greater than 20,000.