Overview
Built a suite of scheduled Power Automate flows that automatically pull sales and operations data and deliver tailored email reports to relevant stakeholders every week. Reports cover weekly sales performance, product discount breakdowns, product damage summaries, and customer returns — replacing hours of manual data extraction and report building with fully automated delivery.
Problem Being Solved
Management required weekly visibility into sales performance and operational metrics across multiple stores. Previously, staff manually extracted data from the POS/sales system, compiled it in Excel, and emailed reports — a process that took hours each week and was often delayed or inconsistently formatted. Automation was needed to ensure timely, consistent, and accurate reporting.
Reports Automated
Weekly Sales Performance Report
- Total sales revenue per store for the week
- Top-performing product categories
- Transaction count and average basket value
- Delivered every Monday morning covering the previous week
Product Discount Report
- Detailed breakdown of all discounts applied during the week
- Discount by product, discount type, and store
- Total discount value vs total sales — discount rate calculation
- Flags unusually high discount rates for management review
- Helps identify misuse of discount codes or pricing anomalies
Product Damage Report
- Summary of all products written off as damaged during the week
- Broken down by store, product category, and individual SKU
- Total cost of damaged goods for the week
- Trend comparison to prior weeks to identify patterns
- Enables proactive action on stores with unusually high damage rates
Returns Report
- Weekly summary of all customer returns and refunds processed
- Broken down by product, return reason, and store
- Return rate as a percentage of total sales
- High-return products flagged for quality or supplier review
Technical Architecture
- Python Scripts as cron jobs stored in a Django server.
- Gets data source from database server and user prepared reports.
- Data is processed and aggregated within the flow using expressions and variables
- HTML email body is dynamically constructed with formatted tables using Power Automate HTML/CSS
- Report sent via email using outlook account app code instead of password.
- Each report type has its own flow — independent scheduling, failure isolation, and easy maintenance
Outcome & Impact
- Hours of manual weekly report preparation eliminated entirely
- Reports delivered consistently every week on schedule — no delays or missed weeks
- Consistent format and data accuracy — no human transcription errors
- Management has reliable data to act on at the start of each week
- Operational issues (high damage, unusual discounts) surfaced proactively rather than reactively
- Easy to extend — adding a new report is a new flow, not a new manual process
Skills & Tools Used
- Power Automate — scheduled flows, data queries, expressions, variables, HTML email construction
- Microsoft 365 Outlook — automated email delivery to distribution groups
- SharePoint / SQL / REST API — data source integration depending on system
- Data aggregation and reporting logic using Power Automate expressions
- Process design — defining report structure, metrics, and stakeholder distribution