I Built a Power BI Dashboard for a Cafe — And It Showed Us We Were Losing Money at 2 PM
I work in operations at a cafe. I know how to make coffee, manage staff, and handle a rush.
What I didn't know was which drink was actually making us money.
So I built this: A Power BI dashboard that turns daily cafe sales into profit decisions.
The Problem
Every day we were busy. But at the end of the month, profit was thin.
We were tracking sales in notebooks and Excel, but no one could answer:
- Which product makes the most profit, not just the most sales?
- What hour are we wasting staff hours?
- Where is waste killing us?
I decided to stop guessing.
The Dataset
I built the dataset from real cafe operations:
- Sales Table: Date, Time, Product, Category, Quantity, Unit Price, Total Sales
- Cost Table: Product, Ingredient Cost, Packaging, Staff Cost per Item
- Waste Table: Date, Product, Quantity Wasted, Reason (expired, over-made, spilled)
- Staff Table: Date, Shift, Staff Count, Hours, Total Staff Cost
No fancy API. Just clean, real operational data. I cleaned it in Power Query — removed duplicates, fixed date formats, created a proper Date table.
What I Built in Power BI
- KPI Cards (Top)
- Total Revenue
- Total Profit
- Profit Margin %
- Total Waste Cost
Profit by Product (Bar Chart)
This was the eye-opener. Espresso sold the most, but Iced Latte had higher profit margin because of lower milk waste.Sales by Hour (Line Chart)
Peak: 7 AM - 10 AM and 5 PM - 7 PM
Dead Zone: 2 PM - 4 PM — we had 3 staff on, selling almost nothing.Waste Analysis (Donut + Table)
Milk waste was #1. Mondays were worst. We were over-prepping for the weekend rush and throwing it away on Monday.Staff Cost vs Revenue (Combo Chart)
Showed we were overstaffed during dead hours.
Key DAX Measures I Used
`dax
Total Revenue = SUM(Sales[Total Sales])
Total Cost = SUM(Sales[Quantity]) * AVERAGE(Cost[Ingredient Cost]) + SUM(Waste[Waste Cost])
Total Profit = [Total Revenue] - [Total Cost] - SUM(Staff[Staff Cost])
Profit Margin % = DIVIDE([Total Profit], [Total Revenue])
Waste % = DIVIDE(SUM(Waste[Waste Cost]), [Total Revenue])
Simple DAX, but powerful when combined with slicers for Date, Category, and Product.
3 Insights That Changed How We Operate
1. Best Seller ≠ Most Profitable
Espresso = highest volume. Iced Latte = highest profit. We pushed Iced Latte in the afternoon promo and profit went up.
2. The 2 PM - 4 PM Problem
We cut staff from 3 to 2 during 2 PM - 4 PM and used that time for prep + cleaning. Saved ∼15% on staff cost with zero drop in sales.
3. Monday Waste
We reduced Monday milk prep by 30%. Waste cost dropped immediately.
What I Learned
- Power BI is not about pretty charts. It's about one question: "What decision will this change?"
- Data cleaning is 70% of the work. The dashboard is the easy part.
- If you work in operations, you already have the best data. You just need to visualize it.
What's Next?
I'm now building:
- A live Kenya Coffee Price Tracker with Python + PostgreSQL
- A Water Chemistry vs Coffee Extraction analysis
If you run a cafe, restaurant, or small business and you track sales in Excel, you are sitting on gold. Build the dashboard.
Tools: Power BI, Power Query, DAX, Excel
Connect: https://www.linkedin.com/in/solomoni-gichohi-33b263260



Top comments (0)