Rank Top Customers by Revenue
When a constrained-supply week or quarterly planning review hits, the VP Supply Chain typically has to ask for or assemble a ranked customer revenue list for the relevant time window before any allocation discussion can start. In this workflow, that means pulling revenue totals from the sales warehouse table `sales_dw.fact_sales`, filtering by dates such as 2025-10-01 through 2025-12-31, grouping by customer, and manually ordering the results into a top-10 list for dashboard or KPI-pack use. Even for a simple query, this is repeat analysis work that recurs across executive reviews and supply allocation meetings; it is execution-layer data assembly that keeps the manager in spreadsheet and query prep work instead of decision-making.
Last Quarter Customer Concentration is a Decision Intelligence workflow designed for the VP Supply Chain. It automates the execution layer of the task—date-bounded querying, revenue aggregation, ranked list generation, and output formatting—which the candidate estimates as about 40% of the total cognitive labor, with 60% automation coverage of that layer. The result is that the VP gets back time for judgment: interpreting concentration risk, aligning with Sales, and making service-level trade-offs under constrained supply.
See the Decision Intelligence Workflow in Action
This workflow handles a narrow but recurring cognitive task: converting raw sales transactions into a ranked customer revenue view for a defined period. The business need is simple, but the operational burden is still real because the output has to be current, consistent, and ready to use in allocation and service-level conversations.
What the Decision Intelligence Workflow Does
This workflow handles a narrow but recurring cognitive task: converting raw sales transactions into a ranked customer revenue view for a defined period. The business need is simple, but the operational burden is still real because the output has to be current, consistent, and ready to use in allocation and service-level conversations.
Click any step below to see the business logic, data query, and sample output for that step of the workflow.
The workflow produces a top-10 customer-by-revenue list for the selected time window. That output is suitable for an executive dashboard module and for direct inclusion in a quarterly KPI pack snapshot.
Data Warehouse Integration
The workflow reads directly from the enterprise sales warehouse and returns a consistent ranked revenue view for a specified date range. That makes the result easy to reuse in executive dashboards, quarterly KPI packs, and constrained-supply planning discussions without waiting for a custom analyst pull.
In practice, the output becomes a cross-functional reference point between Supply Chain and Sales because the same customer revenue ranking informs allocation rules, service commitments, and contingency planning.
CREATE TABLE pura_vida_foods_dev.sales_dw.fact_sales (
sale_id VARCHAR NOT NULL,
sale_date DATE NOT NULL,
customer_id VARCHAR NOT NULL,
product_id VARCHAR NOT NULL,
order_id VARCHAR NOT NULL,
quantity DECIMAL(10,2) NOT NULL,
unit_price DECIMAL(10,2) NOT NULL,
unit_cost DECIMAL(10,2) NOT NULL,
revenue DECIMAL(15,2) NOT NULL,
cost DECIMAL(15,2) NOT NULL,
profit DECIMAL(15,2) NOT NULL,
profit_margin DECIMAL(8,4),
discount_amount DECIMAL(10,2),
discount_percent DECIMAL(5,2),
sales_channel VARCHAR,
order_priority VARCHAR,
shipping_cost DECIMAL(10,2),
created_at TIMESTAMP,
updated_at TIMESTAMP
);
SELECT
customer_id,
ROUND(SUM(revenue), 2) AS total_revenue
FROM pura_vida_foods_dev.sales_dw.fact_sales
WHERE sale_date BETWEEN string">'{start_date}' AND string">'{end_date}'
GROUP BY customer_id
ORDER BY total_revenue DESC
LIMIT 10;
Where the Work Sits in the Labor Stack
Not all cognitive labor is equally automatable. The KWF analysis breaks the workflow into three layers — execution, judgment, and strategic — and maps each step to the layer it belongs to. Execution-layer work is automatable. Judgment and strategic work stays with the manager.
The Business Case for Automation
Primary Valuation Metric: Number of constrained-supply decisions per quarter where the top-customer revenue list is referenced directly in meeting notes or BI audit logs.