Code Monkey home page Code Monkey logo

coffee-sales-project's Introduction

Coffee-Sales-Project

Step 1: Problem Statement

  • Understand Sales Perfomance from the period 2019 to 2022
  • Identify the top performing country sales for the period
  • Track the sales of each coffee roast type per country
  • Identify the top consumers.
  • Identify top consumers for each coffee size.
  • Identify the top consumers of each coffee roast type
  • Analyze the consumption of the 3 roast types per size
  • Identify the top valuable customers
  • Track sales on customers with and without royalty cards.
  • Track performance of each coffee size

Step 2: Collect and gather the data

The coffeeOrdersData (raw).xlsx file contains the data used. The data contains the orders, customers and products tables.

  1. On the orders table we are going to add the following columns
  • Customer Name
  • Email
  • Country
  • Coffee Type
  • Roast Type
  • Size
  • Unit Price
  • Sales
  1. We utilize DXLOOKUP function to collect data from the customers table for the columns Customer Name, Email, and Country.
  • Under Customer Name, the formula,
    • =DXLOOKUP(C2,customers!$A$1:$A$1001,customers!$B$1:$B$1001,,0)
  • Under Email column, the data source has some empty rows. The formula
    • =DXLOOKUP(C2,customers!$A$1:$A$1001, customers!$C$1:$C$1001,,0) gives a couple of zeros due to a lack of corresponding values. To eliminate this, IF statements come in handy.
    • =IF(DXLOOKUP(C2,customers!$A$1:$A$1001,customers!$C$1:$C$1001,,0)=0,"",DXLOOKUP(C2,customers!$A$1:$A$1001, customers!$C$1:$C$1001,,0))
  • Under the column Country we apply the formula
    • =DXLOOKUP(C2,customers!$A$2:$A$1001, customers!$G$2:$G$1001,,0)
  1. Next, we source information from the products table for the remaining columns. Utilizing index match since it will be dynamic.
  • =INDEX(products!$A$1:$G$49,MATCH(orders!$D2,products!$A$1:$A$49,0),MATCH(orders!I$1,products!$A$1:$G$1,0))
  1. The sales values are derived from the unit price * quantity.

Step 3: Data Wrangling and Formatting

  1. Add column Coffee Type name to reflect the full name of the coffee types utilizing the formula
  • =IF(I2="Rob","Robusta",IF(I2="Exc","Excelsa", IF(I2="Ara", "Arabica",IF(I2="Lib","Liberica","")))) Rob reflects to Robusta, Exc to Excelsa, Ara to Arabica and Lib to Liberica.
  1. Add column Roast type Name to reflect the full name of the roast type. M refers to Medium L refers to Light D refers to Dark
  • • =IF(J2="M","Medium",IF(J2="L", "Light",IF(J2="D","Dark","")))
  1. Format Order date column to reflect the date format dd-mmm-yyyy
  2. Add the metric in the Size column while keeping a one decimal place. In this scenario the metric is “Kg”
  3. Format the columns Unit Price and Sales into USD currency.
  4. Check for duplicates in the data

Pivot Tables, Charts, Findings and Dashboard

Coffee Sales Dashboard.png file is the dahsboard. An interactive dashboard is available on the coffeeordersdata.xlsx dashboard sheet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.