Calculate total sales revenue and order quantity for each month.
Identify month-on-month sales and order trends.
Quantify differences in monthly sales and order quantities.
Identify top-selling products and analyze category performance.
Compare sales across different locations.a
Analyze sales variations by day of the week and time of day.
Track individual product sales over time.
Explore correlations between product types and sales performance.
Dataset Source: Kaggle, uploaded by Ahmed Abbas link is here.
Scope: Transaction records for Maven Roasters, a fictional coffee shop chain with three NYC locations.
Data Includes:
Dates & Times: Transaction dates and timestamps.
Locations: Store locations in NYC.
Product Details: Product ID, category, type, and detailed descriptions.
Sales Metrics: Quantity sold and unit price.
Purpose: Educational use and practicing data analysis techniques.
Ā Ā **To check original queries, please refer to Github Gist embedded below.**
Creating a Copy of the Data : A backup of the original table is created for safe data cleaning and analysis.
Creating a Copy of the Data : A backup of the original table is created for safe data cleaning and analysis.
Verifying Table Creation Ā : Ensures the table copy was successful and lists all records.Ā
Printing Column Names Ā : Retrieves and prints column names for referenceĀ
Checking for Duplicate Transaction IDs : Identifies duplicate transaction IDs.Ā
*Dynamic SQL for Duplicates Check Across All Columns Ā :Ā Dynamically check for duplicates in all columns without writing repeating queries for all columns.
Checking for Null Values in transaction_date : Counts records with null transaction dates.Ā
Dynamic SQL for Null Check Across All Columns : Dynamically check for null values in all columns without writing repeating queries for all columns.Ā
Removing Records with Null transaction_date: Deletes records with missing transaction dates.
Sales and Orders insights:
Highest sales are recorded in August, followed by October and September.
Top orders are also recorded in August, with October marginally surpassing September in the number of orders.
June and July have the lowest sales and orders.
Seasonal , Monthly Sales and Order Trends:
Sales and orders decrease from the start to the end of summer.
Sales and orders increase as winter approaches, showing a trend of higher activity in colder months.
Sales and orders increase at the beginning of winter and start to decrease as summer approaches.
Product Performance:
Coffee is the top-selling product in both sales and order numbers, followed by teas and bakery items, with slight month-to-month variations.
Tea maintains more or less constant sales and good order numbers, with a decrease in sales during summer months and a rise as colder months approach.
Bakery products perform well in summer but generate less revenue compared to coffee and tea during colder months.
Other products follow more or less similar trends to coffee and tea, with variations in performance based on seasonal changes.
Top Revenue Locations:
Hell's Kitchen leads in overall sales and order numbers.
Astoria and Lower Manhattan follow, with almost equal shares of sales distribution.
Product-Specific Trends:
For coffee, sales decrease each month with a gradual spike in August and September.
For tea, sales and orders are relatively stable, with decreases in summer and increases in colder months.
For bakery products, sales and orders peak during summer and decrease during colder months.
Other products exhibit trends similar to those of coffee and tea, with seasonal variations impacting their performance.
**For a detailed view, you can explore the Power BI dashboard here and SQL queries notebook here. These will offer \data visualization to support the analysis.**
Seasonal Influence on Sales and Orders:
From the analysis we can see seasonal pattern where sales and orders dip during the summer months and rise during the winter months. This could be influenced by consumer behavior, with more people likely to consume hot beverages like coffee and tea during colder months.
Product Preferences:
Coffee remains the most preferred product regardless of the season, indicating strong customer loyalty and preference. Teas also show consistent performance, suggesting a stable customer base.
Location-Based Performance:
Hell's Kitchen stands out in sales and order numbers, possibly due to higher foot traffic or better marketing strategies. The nearly equal distribution of sales between Astoria and Lower Manhattan suggests a balanced market presence.
Actionable Insights:
Marketing and Promotions: Consider ramping up marketing efforts and promotions for coffee and tea products during the colder months to maximize sales. For bakery items, focus on summer promotions to leverage their peak performance during that season.