Scheduling & Automation
Scheduling & Automation
Section titled “Scheduling & Automation”Automation is a powerful feature that keeps your dashboards up-to-date and ensures stakeholders receive timely reports without manual intervention. This guide covers everything you need to know about dashboard automation in Querri.
Setting Up Scheduled Refreshes
Section titled “Setting Up Scheduled Refreshes”Scheduled refreshes ensure your dashboard data stays current automatically.
Creating a Refresh Schedule
Section titled “Creating a Refresh Schedule”- Open Dashboard Settings: Navigate to your dashboard and click the settings icon
- Select “Automation”: Find the automation section in settings
- Click “New Schedule”: Create a new automated refresh
- Configure schedule: Set frequency, time, and options
- Activate: Turn on the schedule to start automation
Refresh Frequency Options
Section titled “Refresh Frequency Options”Choose how often your dashboard should update:
Hourly:
Example: Every hour at :00Use case: Real-time operational dashboardsCron: 0 * * * *Daily:
Example: Every day at 8:00 AMUse case: Morning executive summariesCron: 0 8 * * *Weekly:
Example: Every Monday at 9:00 AMUse case: Weekly performance reviewsCron: 0 9 * * 1Monthly:
Example: First day of month at 10:00 AMUse case: Monthly business reviewsCron: 0 10 1 * *Custom:
Example: Every weekday at 6:00 AM and 6:00 PMUse case: Beginning and end of business dayCron: 0 6,18 * * 1-5Advanced Scheduling
Section titled “Advanced Scheduling”For more complex schedules, use cron expressions (covered in detail in Scheduling Basics):
Multiple times per day:
Every 4 hours: 0 */4 * * *Every 6 hours: 0 0,6,12,18 * * *Business hours only:
Every hour from 9 AM to 5 PM on weekdays: 0 9-17 * * 1-5End of quarter:
Last day of March, June, September, December: 0 0 31 3,6,9,12 *Timezone Settings
Section titled “Timezone Settings”Ensure your schedules run at the right time:
- Set dashboard timezone: Choose the timezone for your schedule
- Consider user locations: If viewers are in different timezones, choose UTC or the primary audience’s timezone
- Daylight saving time: Querri automatically handles DST transitions
Example:
Dashboard: Sales PerformanceTimezone: America/New_YorkSchedule: Daily at 8:00 AM EST/EDTCron: 0 8 * * *Refresh Options
Section titled “Refresh Options”Configure what happens during each refresh:
Full Refresh:
- Updates all widgets
- Runs all data queries
- Clears cache
- Longest execution time
Partial Refresh:
- Updates only changed widgets
- Skips cached data
- Faster execution
- May miss some updates
Smart Refresh:
- Detects which data has changed
- Only refreshes affected widgets
- Balances speed and accuracy
- Recommended for most dashboards
Email Reports
Section titled “Email Reports”Automatically deliver dashboard insights to stakeholders’ inboxes.
Creating an Email Report
Section titled “Creating an Email Report”- Open Automation Settings: Navigate to dashboard automation
- Click “New Email Report”: Create a new automated report
- Configure schedule: Set when reports should be sent
- Add recipients: Enter email addresses
- Choose format: Select PDF, PNG, or HTML
- Customize message: Add context and instructions
- Activate: Enable the email report
Report Formats
Section titled “Report Formats”PDF Reports:
- Best for: Formal reports, archiving, printing
- Includes: All widgets, filters used, metadata
- Customization: Header, footer, page breaks, branding
- File size: Medium to large
PNG Images:
- Best for: Quick visual updates, email previews
- Includes: Screenshot of dashboard
- Customization: Resolution, dimensions
- File size: Small to medium
Interactive HTML:
- Best for: Recipients who want to explore data
- Includes: Embedded dashboard with limited interactivity
- Customization: Filter controls, responsive design
- File size: Medium to large
Email Customization
Section titled “Email Customization”Make your reports professional and informative:
Subject line templates:
[Dashboard Name] - [Date]Daily Sales Report - January 15, 2024
[Dashboard Name] - [Period]Weekly Marketing Performance - Week 3
Custom with variables:Sales Dashboard - ${revenue} revenue this weekMessage body:
Hi Team,
Here's your weekly sales performance report for ${date_range}.
Key highlights:• Total revenue: ${total_revenue}• Top region: ${top_region}• Growth vs last week: ${growth_pct}
View the full dashboard: ${dashboard_link}
Best regards,Querri AutomationAttachments:
- Include PDF report as attachment
- Add data exports (CSV, Excel)
- Attach supporting documents
Distribution Lists
Section titled “Distribution Lists”Manage recipients efficiently:
Individual recipients:
john.doe@company.comjane.smith@company.comGroup lists:
List name: Executive TeamMembers: CEO, CFO, COO, CTO
List name: Regional ManagersMembers: All regional sales managersDynamic lists:
Based on data: Email top 10 salespeopleBased on roles: Email all users with "Manager" roleBased on performance: Email teams that exceeded targetsConditional Delivery
Section titled “Conditional Delivery”Send reports only when certain conditions are met:
Threshold-based:
Send only if: revenue > $100,000Send only if: error_rate > 5%Send only if: customer_satisfaction < 80%Change-based:
Send only if: revenue changed > 10% from last periodSend only if: new_customers > 50Alert-based:
Send only if: anomaly detectedSend only if: goal not metSend only if: system error occurredAutomated Exports
Section titled “Automated Exports”Save dashboard data automatically for archiving, backup, or external use.
Export Formats
Section titled “Export Formats”CSV (Comma-Separated Values):
- Universal compatibility
- Easy to import into other tools
- Good for raw data
- Lightweight files
Excel (XLSX):
- Multiple worksheets for different widgets
- Formatted numbers and dates
- Charts and formatting
- Good for business users
JSON:
- Machine-readable format
- Good for APIs and integrations
- Preserves data structure
- Good for developers
SQL Dump:
- Direct database export
- Good for backups
- Includes schema and data
- Good for data teams
Export Destinations
Section titled “Export Destinations”Cloud Storage:
- Amazon S3
- Google Cloud Storage
- Azure Blob Storage
- Dropbox Business
File Servers:
- Network drives
- FTP/SFTP servers
- WebDAV
Data Warehouses:
- Snowflake
- BigQuery
- Redshift
- Databricks
Collaboration Tools:
- Google Drive
- Microsoft OneDrive
- SharePoint
- Confluence
Export Scheduling
Section titled “Export Scheduling”Set up regular automated exports:
Schedule: Daily at 2:00 AMFormat: CSVDestination: s3://company-bucket/dashboards/sales/Filename: sales_dashboard_{YYYY-MM-DD}.csvRetention: Keep last 90 daysIncremental Exports
Section titled “Incremental Exports”For large datasets, use incremental exports:
Export type: IncrementalFilter: created_at > last_export_timestampMerge strategy: Append new recordsCheckpoint: Store last export timestampMonitoring Dashboard Jobs
Section titled “Monitoring Dashboard Jobs”Keep track of your automated tasks to ensure they’re running successfully.
Execution History
Section titled “Execution History”View a log of all automation runs:
Job Details:
- Job name and type
- Start time and duration
- Status (Success, Failed, Running, Skipped)
- Data rows processed
- Error messages (if any)
Filtering and Search:
Filter by: Status = FailedFilter by: Date range = Last 7 daysFilter by: Job type = Email ReportSearch: "Sales Dashboard"Success/Failure Tracking
Section titled “Success/Failure Tracking”Monitor the health of your automations:
Success Metrics:
- Success rate percentage
- Average execution time
- Data freshness
- Delivery rate (for emails)
Failure Analysis:
Common failure reasons:• Data source timeout• Query error• Network connectivity issue• Permission denied• Insufficient resourcesTrends:
- Track success rate over time
- Identify patterns in failures
- Monitor performance degradation
Alerts and Notifications
Section titled “Alerts and Notifications”Get notified when something goes wrong:
Notification Channels:
- Slack
- Microsoft Teams
- SMS (for critical alerts)
- Webhook (for custom integrations)
Alert Conditions:
Alert when:• Job fails 3 times in a row• Execution time exceeds 10 minutes• Data export size is unusually large or small• No data returned from query• Email bounce rate exceeds 10%Alert Templates:
Subject: Dashboard Automation Failed: ${dashboard_name}
Dashboard: ${dashboard_name}Job Type: ${job_type}Failed At: ${timestamp}Error: ${error_message}Retry Attempt: ${retry_count}
Action Required: Please review the dashboard configuration.
View Details: ${job_details_link}Troubleshooting Failed Runs
Section titled “Troubleshooting Failed Runs”When an automation fails, follow these steps:
1. Check the error message:
Error: "Connection timeout to data source 'Sales_DB'"Solution: Verify database is accessible and credentials are valid2. Review execution logs:
- Look for warnings before the failure
- Check which step failed
- Examine query performance
3. Test manually:
- Run the dashboard refresh manually
- Check if data sources are accessible
- Verify all widgets load correctly
4. Common fixes:
Connection errors:✓ Verify credentials✓ Check firewall rules✓ Confirm data source is online
Query errors:✓ Validate SQL syntax✓ Check column names✓ Verify data types
Email delivery errors:✓ Confirm email addresses are valid✓ Check spam filters✓ Verify email service is configured5. Retry settings:
Retry policy:Attempts: 3Delay: 5 minutes between attemptsBackoff: Exponential (5 min, 15 min, 45 min)Performance Optimization
Section titled “Performance Optimization”Ensure your automations run efficiently:
Query Optimization:
- Add appropriate indexes
- Limit result sets
- Use aggregated tables
- Avoid complex joins
Scheduling Best Practices:
- Stagger multiple automations
- Avoid peak usage times
- Schedule heavy jobs during off-hours
- Use incremental updates when possible
Resource Management:
- Set execution timeouts
- Limit concurrent jobs
- Monitor resource usage
- Scale infrastructure as needed
Automation Best Practices
Section titled “Automation Best Practices”1. Start Simple
Section titled “1. Start Simple”Begin with basic automations and add complexity as needed:
- Single daily refresh before adding multiple schedules
- One email recipient before distribution lists
- Manual testing before full automation
2. Document Your Automations
Section titled “2. Document Your Automations”Keep records of what’s automated and why:
Dashboard: Sales PerformanceAutomation: Daily email reportRecipients: Regional managersSchedule: 8:00 AM weekdaysPurpose: Daily standup preparationOwner: Sales Operations teamLast modified: 2024-01-153. Monitor Regularly
Section titled “3. Monitor Regularly”Review automation health weekly:
- Check success rates
- Review execution times
- Verify recipients are correct
- Update schedules as needs change
4. Plan for Failures
Section titled “4. Plan for Failures”Have contingency plans:
- Set up alerts for failures
- Document troubleshooting steps
- Have manual backup processes
- Assign ownership for issues
5. Consider Costs
Section titled “5. Consider Costs”Automation can increase resource usage:
- Database query costs
- Storage costs for exports
- Email delivery costs
- Processing costs
Balance automation frequency with actual needs.
Next Steps
Section titled “Next Steps”- Scheduling Basics - Master cron expressions and advanced scheduling
- Automated Reports - Deep dive into email report customization
- Monitoring Automations - Advanced monitoring and alerting
Automate your dashboards to save time and ensure timely, reliable insights for your team!