A complete workflow for cleaning, transforming, and analyzing retail coffee sales data using Excel and Power Query.
This project provides an end‑to‑end analysis of a multi‑sheet coffee sales dataset. It covers data preparation, merging, calculated fields, exploratory data analysis (EDA), and visualization. The goal is to transform raw operational data into meaningful insights using accessible tools. The workflow includes:
- Cleaning and standardizing raw data
- Building a unified analytical dataset
- Exploring sales trends, product performance, and customer behaviour
- Visualizing insights using Pivot Tables and Pivot Charts
coffeeOrdersData.xlsx: Raw dataset containing Products, Customers, and Orders.data_cleaning_and_transformation.pq: Power Query script used for data preparation.visualizations.xlsx: Pivot Tables and Pivot Charts.README.md: Documentation and methodology.
The dataset (coffeeOrdersData.xlsx) contains three sheets:
- Product ID
- Coffee Type
- Roast Type
- Size
- Unit Price
- Price per 100g
- Profit
- Customer ID
- Customer Name
- Phone Number
- Address Line1
- City
- Country
- Postcode
- Loyalty Card
- Order ID
- Order Date
- Customer ID
- Product ID
- Quantity
- Customer Name
- Country
- Coffee Type
- Roast Type
- Size
- Unit Price
- Price per 100g
- Profit
- Excel
- Power Query Editor
- Pivot Tables & Pivot Charts
Data preparation was performed using Power Query Editor, following a structured sequence:
Imported all sheets from coffeeOrdersData.xlsx
- Identified nulls across customer and product fields
- Replaced or removed missing values where appropriate
- Converted numeric fields to proper types
- Ensured date fields were recognized correctly
Created a unified dataset by merging:
- Orders with Customers
- Orders with Products This produced a single fact table containing all relevant attributes.
Added fields to support deeper analysis:
- Sales_Amount (Quantity × Unit Price)
- Month, Year, Day extracted from Order Date
The full transformation logic is stored in data_cleaning_and_transformation.pq.
Key analytical questions explored:
Examined monthly and yearly patterns to identify seasonality and growth.
Segmented customer base to understand loyalty distribution.
Compared product categories to identify high‑performing items.
Analysed geographic performance to highlight strong markets.
Visual insights were created using Pivot Tables and Pivot Charts:
All visualizations are available in visualizations.xlsx.
To replicate or extend the analysis:
- Open coffeeOrdersData.xlsx in Excel
- Load and apply transformations using Power Query Editor
- Build Pivot Tables and Pivot Charts from the transformed dataset
- Explore or modify the analysis based on new questions or hypotheses
For any questions or inquiries, please contact [revathigangadaran@gmail.com].


