Log aggregated counts on a schedule
Recipe ToolsMarketing
What it does
When a scheduled interval arrives, this automation initializes a variable and repeats a loop 100 times to sum counts. Each iteration updates the total and logs the result to the job report.
Who it's for
Operations teams who need to aggregate and track metrics on a recurring schedule.
Apps used
How teams use this
Track daily aggregated metrics
Run this automation every morning to sum up counts from the previous day and log the total. The job report shows the progression of the sum across all 100 iterations.
Monitor cumulative performance data
Schedule the automation to run hourly and aggregate performance counts. Each run logs intermediate totals so the team can see how the sum grows.
Filter counts by a condition before summing
Extend the loop to only add counts that meet a specific condition, such as counts greater than zero. The total_count variable then reflects only the filtered results.
How it works
- Start on a scheduled interval. Clock runs this automation at the specified time or frequency you set, such as daily at 9 AM or every hour.
- Initialize the total count variable. Clock creates a variable called total_count and sets it to zero before the loop begins so the sum starts fresh.
- Repeat 100 times to sum counts. Clock loops through 100 iterations, updating total_count in each cycle and logging each intermediate result to the job report.