Built-in Variables

Built-in variables are ready-to-use aggregations provided by Apata. They are automatically calculated for all Risk Profiles and track average successful transaction amounts in EUR and USD over various timeframes.

Ready to Use

No configuration required-use directly in Conditional Rules.

Automatic Calculation

Values updated in real-time for all risk profiles.

📘

Built-in variables cannot be modified but can be used directly in Conditional Rules to compare transaction amounts against historical averages.


EUR Variables

VariableDescription
avg_spend_in_euro_per_day_this_weekAverage EUR per day, current week
avg_spend_in_euro_per_day_last_weekAverage EUR per day, last week
avg_spend_in_euro_per_day_this_monthAverage EUR per day, current month
avg_spend_in_euro_per_day_last_monthAverage EUR per day, last month
avg_spend_in_euro_per_day_this_quarterAverage EUR per day, current quarter
avg_spend_in_euro_per_day_last_quarterAverage EUR per day, last quarter

USD Variables

VariableDescription
avg_spend_in_usd_per_day_this_weekAverage USD per day, current week
avg_spend_in_usd_per_day_last_weekAverage USD per day, last week
avg_spend_in_usd_per_day_this_monthAverage USD per day, current month
avg_spend_in_usd_per_day_last_monthAverage USD per day, last month
avg_spend_in_usd_per_day_this_quarterAverage USD per day, current quarter
avg_spend_in_usd_per_day_last_quarterAverage USD per day, last quarter

Use Cases

Detect Daily Spending Spikes

Compare current transaction to this week's daily average:

amount > avg_spend_in_euro_per_day_this_week → Challenge
Compare to Last Week's Pattern

Identify deviations from last week's spending:

amount > avg_spend_in_euro_per_day_last_week → Challenge
Long-Term Trend Analysis

Compare to quarterly averages for long-term fraud detection:

amount > avg_spend_in_usd_per_day_this_quarter → Challenge
Weekly Anomaly Detection

Spot unusual weekly spending patterns:

amount > avg_spend_in_euro_per_week_last_month → Challenge

Example Rules

RuleDescription
amount > avg_spend_in_euro_per_day_this_weekChallenge if above this week's daily average
amount > avg_spend_in_usd_per_day_last_monthChallenge if above last month's daily average
amount > avg_spend_in_euro_per_week_this_quarterChallenge if above this quarter's weekly average

Combining with Custom Variables

You can use built-in and custom variables together in Conditional Rules:

amount > avg_spend_in_euro_per_day_this_week
  AND totalSpend24h > 500
→ Challenge

Related Topics

  • Variables Overview – Create custom variables
  • Risk Profile – Configure rules and variables
  • Conditional Rule – Use variables in rules