Built with datascienceportfol.io

Mint Classics Dataset Analysis

Project photo

Project links

Skills

About this project

Project Overview: Analysis for Mint Classics Company

As part of a Coursera project utilizing a relational dataset provided by Mint Classics Company, I was tasked with conducting a data analysis to drive insights into product and warehouse management, with the ultimate goal of optimizing profitability by reducing costs.

EER Diagram:

                                                                     EER

Key Questions Addressed:

  • Determining optimal stock levels: What quantity of stock should be maintained to meet future demand, considering factors such as product type and line?
  • Warehouse cost analysis: What are the costs associated with each warehouse, and are there any limitations to consider?
  • Supply chain costs: What are the costs associated with supply, and are there any relevant constraints for the analysis?
  • Product line profitability: Can the company afford to discontinue specific products or entire product lines? Are there any potential repercussions on the sales of other products?
  • Dashboard Creation: To provide interactive insights for managers and stakeholders, I developed a dashboard showcasing data on all products, including quantity sold, earnings, stock levels, product line information, and warehouse details. That way managers can determine the actions from those insights and keep track of those measures.

Methodology:

  • Utilizing SQL queries, I extracted relevant data by joining various tables to create a consolidated dataset.
  • SQL Query:

    USE mintclassics; ## Calls for the database
    ## Instead of making many queries and a visualization for each table I decided to extract all relevant data in one table for the analisis and visualizations.
    ## Extracted data from products, ordersdetails and warehouses to show analysis filtering of warehouses usage and earnings from products on Tablau.
    SELECT 
        p.productCode,
        p.productName,
        p.productLine,
        SUM(od.quantityOrdered) AS sales,
        ## Sums all sales for each product
        SUM((od.priceEach - p.buyPrice) * od.quantityOrdered) AS earnings,
        ## Sums the earnings for every product
        p.quantityInStock,
        w.warehouseName,
        ROUND (warehouse_usage / (w.warehousePctCap * 0.01)) AS warehouse_capacity,
        ## Extracts warehouse capacity from the usage and PctCap (I assume it is the percent of use).
        p.quantityInStock / (SUM(od.quantityOrdered) / 2.383) AS years_of_stock
        ## Extracts the amout of years the stock satisfies the demand.
    FROM orderdetails od
    JOIN products p
    USING (productCode)
    ## Joins orderdetails with products table
    JOIN warehouses w
    USING (warehouseCode)
    ## Joins warehouse table.
    JOIN (
        SELECT warehouseCode,
        SUM(quantityInStock) AS warehouse_usage
        ## Sums stock for all the products on each warehouse and extracts usage
        FROM products pp
        GROUP BY warehouseCode
        ## Helps to extract relevant data summarizing it by warehouses.
    ) od USING (warehouseCode)
    ## Joins the output to the table to use the usage of every warehouse
    GROUP BY productCode
    ## Helps to extract relevant data summarizing it by products.
    ORDER BY earnings DESC
    ## It is not crusial since we can sort the data in the visualizations, yet I wanted to show products from most to last lucrative.

  • The extracted dataset was then uploaded to Tableau for visualization and dashboard creation. Link to Tableau.
  • Dashboard Caption:
    Dashboard Caption
  • Key visualizations included:
    • Bar graph displaying earnings for each product.
    • Pie graph illustrating the earnings contribution of each product line.
    • Bar graph depicting warehouse capacity and current stock levels.
    • Treemap showcasing product stock levels and the duration of demand satisfaction.
  • The interactive dashboard allows stakeholders to filter data by products, product lines, earnings, warehouses, and years of stock.

Recommendations:

  • Based on the analysis, I recommend retaining all products, as they contribute to profitability.
  • To optimize warehouse utilization, I suggest reducing stock levels to align with average yearly demand for each product.
  • Considering warehouse costs, consolidating operations to the warehouse with the highest capacity (East) may be advantageous, assuming similar rental costs across all warehouses.

This data-driven approach aims to provide Mint Classics Company with actionable insights to enhance operational efficiency and maximize profitability keeping track of those measures.