One recorded transaction row
Transactions
Transaction_ID, Date, Customer_ID, Product_ID, Quantity, Discount_Pct, Total_Amount and Status.
CASE 02 / Retail · Commercial performance
A commercial review of recorded transactions, product mix and category budgets turns scattered tables into focused sales and marketing decisions.
RetailCo
Anonymized collaboration case
THE BUSINESS QUESTION
THE KEY FINDING
40.8% of transaction records are not completed. Investigate pending orders, cancellations and returns separately before increasing acquisition spend.
01 / THE INPUTS & THE WORK
Connect product, customer, transaction and budget tables to identify which operational and commercial questions need attention before increasing demand generation.
One recorded transaction row
Transaction_ID, Date, Customer_ID, Product_ID, Quantity, Discount_Pct, Total_Amount and Status.
Product and customer lookup tables
Product category and cost; anonymized customer identity, region and loyalty tier.
12 months × 4 categories
Budget_Revenue, Actual_Revenue, Budget_Orders and Actual_Orders. Coverage differs from the transaction sample.
| Transaction | Product | Status | Quantity | Value (USD) |
|---|---|---|---|---|
| T-10001 | P-1021 | Pending | 1 | 15.29 |
| T-10002 | P-1003 | Completed | 4 | 139.96 |
Two source transaction records, selected columns. Customer identifiers are omitted from this public sample.
DATA JUDGMENT
Handling decisionKeep both records and flag the identifier for source-owner review; do not silently deduplicate.
Why it mattersDeleting one could discard a legitimate transaction. Headline counts are row counts, not verified unique orders.
Handling decisionKeep its $29.99 in completed value; label its customer segment “Unmatched.”
Why it mattersAn inner join would silently remove revenue and bias customer comparisons.
Handling decisionUse the structured, anonymized Customers sheet in the supplied Sales_Analytics workbook.
Why it mattersCustomer segmentation needs valid keys and dimensions; this is a source choice, not a claim that the malformed sheet was repaired.
Handling decisionAnalyze their scopes separately: $13.82K completed transaction value versus $268.83K actual revenue in the monthly summary.
Why it mattersCombining them would produce an invalid completion or budget-performance metric.
ANALYTICAL APPROACH
Inspect sheets and use Product_ID to attach categories. Match Customer_ID to loyalty tiers while preserving unmatched transaction rows.
A transaction-level analytical view with product and customer dimensions.
Filter Status = Completed before summing Total_Amount. Calculate completed share as 296 ÷ 500 and AOV as completed value ÷ 296.
$13,816.93 completed value, 59.2% completion and $46.68 completed AOV.
Group statuses as a snapshot, rank completed category value, compare tier completion with sample counts, and calculate budget variance from its own table.
Status distribution, category ranking, loyalty comparisons and a separate budget variance view.
Separate pending-order follow-up from cancellation and return investigations. Use category gaps to propose targeted tests rather than a universal discount.
A Sales follow-up priority and a Marketing testing plan.
Representative logic from the website reconstruction. This code was added for the portfolio; it is not presented as the original project team’s source code.
# Website reconstruction: preserve unmatched customers
for row in transactions:
row['category'] = products[row['Product_ID']]['Category']
customer = customers.get(row['Customer_ID'], {})
row['tier'] = customer.get('Loyalty_Tier', 'Unmatched')
completed = [r for r in transactions if r['Status'] == 'Completed']
revenue = sum(r['Total_Amount'] for r in completed)
completion_rate = len(completed) / len(transactions)
average_order_value = revenue / len(completed)ONE QUESTION, TRACED END TO END
Completed share = 296 ÷ 500 = 59.2%. Pending value = sum(Total_Amount where Status = Pending) = $2,907.95 across 71 rows.
40.8% of recorded rows are pending, cancelled or returned. These are different outcomes, not steps of a sequential funnel.
Review pending-order age and fulfillment / payment blockers first. Pending value is a review opportunity, not a forecast of recoverable revenue.
EXPLORE THE EVIDENCE
Switch views to explore the analysis.
Open the underlying values for more detail.
500 recorded rows. These are mutually exclusive statuses, not stages of a sequential conversion funnel.
Completed transaction value only, joined to product category. USD.
| Status | Recorded transactions | Value (USD) |
|---|---|---|
| Completed | 296 | 13816.93 |
| Pending | 71 | 2907.95 |
| Cancelled | 75 | 3216.69 |
| Returned | 58 | 2320.64 |
SOURCE: RetailCo_Sales_Analytics.xlsx · Transactions, Products, Customers, Monthly_Budget · 2025
03 / APPLYING AI TO THE BUSINESS PROCESS
Proposed AI extension.
The analysis is available; the AI workflow below is a design for a future pilot.
INPUT CONTRACT
Validated status / category aggregates. A future operational pilot would additionally need order age, fulfillment events and permissioned cancellation / return reasons; those fields are not in this dataset.
Project context: graduate AI/analytics club industry collaboration. The technical walkthrough documents the reproducible portfolio implementation.
RECOMMENDATIONS BY TEAM
Specific actions. Clear measures.
Select a department to see its priorities.
RECOMMENDED ACTION / SALES
Review pending-order age and payment or fulfillment blockers. Assign owners to follow-up; investigate cancellation and return reasons separately.
Pending transactions total $2,907.95. A further 75 records are cancelled and 58 are returned.
Track pending-to-completed conversion, time to resolution and recovered transaction value.
METHOD & CONTEXT
Selected work completed through a graduate AI/analytics club’s industry collaborations. Company names are portfolio pseudonyms.
There are 500 transaction rows but 499 unique transaction IDs. Both distinct rows sharing an ID are retained pending source review. One completed record ($29.99) has an unmatched customer. Statuses are a snapshot, not sequential funnel stages. Monthly budget actuals and transaction totals have different coverage and are not combined.