Cafe Profitability Analytics

The most popular drink was also the least profitable. Matcha had half the orders but generated more total profit than Coffee.

Contribution MarginProduct MixCustomer Lifetime ValueDiscount ImpactMonthly Trend
4,000
Transactions
Jan–Dec 2024
Period
RM 98,240
Total Revenue
RM 38,120
Total Profit
67.8%
Best Margin
1

Step 1 — Data Extraction from POS System

4,000 transaction records were exported from the Square POS system for the full year 2024. Each row is one order: product name, quantity, sell price, discount applied, and customer ID for CLV tracking.

Sample raw POS export — 10 transactions

TXN IDDateCustomer IDProductTypeQtyPriceDiscountRevenue
TXN-000012024-01-04CUST-0042Matcha LatteMatcha1RM 9.000%RM 9.00
TXN-000022024-01-04CUST-0118LatteCoffee2RM 7.000%RM 14.00
TXN-000032024-01-05CUST-0203CroissantPastry1RM 5.0015%RM 4.25
TXN-000042024-01-06CUST-0042Cold BrewCoffee1RM 8.000%RM 8.00
TXN-000052024-01-07CUST-0089Matcha FrappeMatcha2RM 9.500%RM 19.00
TXN-000062024-01-08CUST-0312CappuccinoCoffee1RM 6.5020%RM 5.20
TXN-000072024-01-09CUST-0156Banana MuffinPastry3RM 4.000%RM 12.00
TXN-000082024-01-10CUST-0042Matcha LatteMatcha1RM 9.0010%RM 8.10
TXN-000092024-01-11CUST-0271EspressoCoffee2RM 5.500%RM 11.00
TXN-000102024-01-12CUST-0118Cheese DanishPastry1RM 4.500%RM 4.50
2

Step 2 — Data Cleaning

Issues found and resolved

IssueCountActionResult
Zero-value transactions (voided orders)34RemovedExcluded
Duplicate TXN IDs (double-scan)8RemovedDropped
Discount > 100% (cashier error)2Removed and flaggedDropped
Unknown product names11Mapped via VLOOKUP to product masterResolved
Missing Customer ID (walk-in)156Assigned WALK-IN — excluded from CLVFlagged
3

Step 3 — Transform: VLOOKUP + Profit Calculation + Pivot

VLOOKUP joined the product cost table to each transaction row, enabling per-transaction profit. CLV was built by aggregating all profit by Customer ID in a secondary pivot table.

Calculated fields added

MetricFormulaPurpose
Cost per ItemVLOOKUP(Product, CostTable, 2, 0)Join COGS to each row
ProfitRevenue − (Cost × Qty)Contribution per transaction
Margin %Profit ÷ Revenue × 100Profitability ratio
CLVSUMIF(Customer_ID, ..., Profit)Total lifetime profit per customer

Pivot Output — Contribution Margin by Product

Products ranked by margin % — drives upsell training priorities

ProductTypePriceCostMargin %Avg Orders/Day
Cold BrewCoffeeRM 8.00RM 1.5081.3%6.4
Matcha LatteMatchaRM 9.00RM 2.2075.6%10.8
Matcha FrappeMatchaRM 9.50RM 2.5073.7%8.2
LatteCoffeeRM 7.00RM 1.8074.3%14.2
CappuccinoCoffeeRM 6.50RM 1.6075.4%9.8
EspressoCoffeeRM 5.50RM 1.2078.2%5.1
CroissantPastryRM 5.00RM 1.4072.0%9.2
Banana MuffinPastryRM 4.00RM 0.9077.5%7.8
🔍 KEY FINDING
Coffee has the highest order volume (Latte: 14.2/day) but Matcha generates more total profit. Matcha Latte and Matcha Frappe together account for 38% of monthly profit from just 22% of orders. Pastries are high-frequency, low-ticket — lots of staff effort for small margin contribution.
4

Step 4 — Analysis

RM 98,240
Total Revenue 2024
RM 38,120
Total Profit
38.8% margin
67.8%
Matcha Avg Margin
Best category
28.4%
Pastry Avg Margin
Lowest

Revenue and profit breakdown by product category

CategoryRevenueCostProfitMargin %% of Total Profit
CoffeeRM 42,180RM 18,220RM 23,96056.8%43.4%
MatchaRM 38,960RM 12,540RM 26,42067.8%47.8%
PastryRM 17,100RM 12,240RM 4,86028.4%8.8%
TOTALRM 98,240RM 43,000RM 55,24056.2%100%

Top 5 customers by lifetime value — built from pivot grouped by Customer ID

Customer IDVisitsTotal SpendTotal ProfitAvg OrderTop Product
CUST-004228RM 248RM 168RM 8.86Matcha Latte
CUST-011824RM 196RM 122RM 8.17Latte
CUST-008921RM 214RM 148RM 10.19Matcha Frappe
CUST-020319RM 167RM 98RM 8.79Cappuccino
CUST-015618RM 188RM 128RM 10.44Matcha Frappe
🔍 KEY FINDING
Top 10 customers generate 18% of total profit — all top 5 are Matcha buyers. Matcha customers return 40% more frequently than Coffee-only customers (21 visits vs 15/year). A Matcha loyalty programme retains the highest-value segment.
5

Step 5 — Visualisation

Revenue vs Profit by Category
Matcha generates MORE profit than Coffee despite less revenue
Contribution Margin % per Product
Ranked high to low — Cold Brew leads, Croissant lowest
Monthly Revenue Trend — Jan to Dec 2024
Q2 and Q4 peaks guide staffing and Matcha stock decisions
Revenue vs Profit by Product Type
Grouped bar — Matcha profit gap vs Coffee clearly visible despite lower revenue. Core product strategy insight.
Contribution Margin % per Product
Horizontal bar ranked high to low — Cold Brew leads, Pastries lowest. Drives upsell training focus.
Monthly Revenue Trend Jan–Dec 2024
Line with area fill — Q2 and Q4 peaks for seasonal staffing decisions.
Discount Impact on Margin
Before/after bars — 18% of txns discounted, costing RM 4,840 total. Drives policy tightening.
6

Step 6 — Report to Management

Actions submitted to management

FindingActionOwnerDeadlineImpact
Matcha = highest profit/orderTrain staff on Matcha upselling at counterOps ManagerFeb 20Est. +RM 5,800/month
Pastry margin at 28.4%Raise pastry price RM 0.80 OR renegotiate supplierOps ManagerMar 15Margin → 38%
18% txns discounted informallyLoyalty-only discount policy — no ad hocManagerThis weekStop RM 4,840/year leakage
Top CLV = Matcha buyersLaunch Matcha loyalty card (10th free)ManagerNext monthRetain highest-value segment
WHY MANAGEMENT MUST ACT
  • Revenue ceiling: Matcha at 22% of orders is underutilised daily. A 5% shift in order mix = +RM 580 profit/month with zero extra cost.
  • Opportunity cost: A Matcha Latte generates RM 6.80 profit. A muffin generates RM 0.90. Counter space and staff time are finite resources — the allocation matters.
  • Discount leakage: RM 4,840 lost in 2024 to informal discounts not tied to any loyalty programme. A one-page policy stops this immediately.
  • Loyalty programme ROI: Costs under RM 2k to implement. The top 10 Matcha customers alone generate RM 1,380 profit/year. Pays for itself in 2 months.