Skip to content

Latest commit

 

History

History
123 lines (99 loc) · 7.95 KB

File metadata and controls

123 lines (99 loc) · 7.95 KB

Regional Sales Overview

image

Problem Statement:

Atliq Hardware, a prominent manufacturer of computer hardware and peripherals, operates nationwide with a presence in Surge Stores, Nomad Stores, Excel Stores, and Electricalsara Stores, supplying them with various hardware equipment. The company's headquarters is located in Delhi, and it maintains regional district offices across India. Heading the sales department is Bhavin Patel, the Sales Director of Atliq Hardware.

Bhavin Patel currently confronts a significant challenge: despite its widespread operations, the company has been experiencing a decline in sales. Identifying the underlying cause of this decline has proven elusive for him. In response, Bhavin Patel has taken the step of enlisting the assistance of a data analyst.

The primary objective is to extract valuable insights that can shed light on the reasons behind the decline in sales. These insights will serve as a foundation for refining the company's business strategies.

The specific insights that Bhavin Patel seeks to uncover through data analysis are as follows:

  1. Regional Sales Breakdown: The data analysis will provide a breakdown of sales across different regions, including Central, North, and South.
  2. Daily Sales: The data analysis will provide a line chart for last 2 weeks, offering a snapshot of sales performance on a daily basis per region.
  3. Top Sales-Generating Cities: The analysis will identify and visualize the cities per rigion that contribute the most to the company's sales figures.
  4. Year-on-Year Profit and Sales Comparison: A comparison of profit and sales figures from the current year with previous year will be presented, highlighting changes in percentage(%).
  5. Order Details: Detailed information about customer orders will be provided, offering insights into profit or loss value for each product sold.

Purpose:

By leveraging the capabilities of the hired data analyst, Bhavin Patel aims to unravel the complexities behind the sales decline and pave the way for data-informed strategies that can lead to a resurgence in the company's sales performance. Simultaneously, the intention is to streamline and automate these insights to minimize the manual effort and time currently invested in data collection processes.

Stakeholders:

  • Sales Director
  • Marketing Team
  • Customer Service Team
  • Data & Analytics Team
  • Information Technology (IT) Department

Success Criteria:

  1. Dashboard(s) Uncovering Sales Order Insights: The created dashboard(s) should effectively uncover insightful sales order trends, metrics, and comparisons using the data available. The dashboard should provide a clear and comprehensive view of the company's sales performance, aiding in identifying patterns and trends.

  2. Improved Decision-Making for Sales Team: The success will be evident if the sales team is empowered to make better-informed decisions based on the insights derived from the dashboard(s). This should lead to optimized strategies and tactics that positively impact sales performance.

  3. 10% Cost Savings of Total Spend: The success will be realized if the improved decision-making facilitated by the insights contributes to a measurable 10% reduction in costs from the total spending. This signifies the tangible impact of data-driven decisions on the company's financial efficiency.

  4. 20% Time Saving for Sales Analysts: The project will be deemed successful if the automation of insights and data visualization significantly reduces the manual effort spent by sales analysts in data gathering. Achieving a 20% reduction in the time spent on data collection will indicate improved efficiency and resource allocation.

  5. Value-Added Activity Reinvestment: Success will be apparent if the time saved by sales analysts due to reduced manual data gathering is reinvested in activities that add value to the business, such as deeper analysis, strategy formulation, and proactive decision support.

Actions Taken in the Project:

In PostgreSQL:

  1. Created a new database named 'sales_db'.

  2. Successfully downloaded and restored the ‘sales_dump.sql’ file into the ‘sales_db’ database.

  3. Conducted data analysis using SQL with following queries:

    • Displayed all customer records.
      SELECT * FROM customers;
    • Counted the total number of customers.
      SELECT COUNT(*) AS total_customers 
      FROM customers;
    • Displayed transactions for the Chennai market (market code 'Mark001').
      SELECT * 
      FROM transactions 
      WHERE market_code='Mark001';
    • Listed distinct product codes of items sold in the Chennai market.
      SELECT DISTINCT(product_code) 
      FROM transactions 
      WHERE market_code='Mark001';
    • Displayed transactions where the currency is US dollars.
      SELECT * 
      FROM transactions 
      WHERE currency="USD";
    • Combined the ‘transactions’ and ‘date’ tables based on the order date, displaying transactions for the year 2020
      SELECT * 
      FROM transactions INNER JOIN date ON transactions.order_date = date.date 
      WHERE year = 2020;
    • Calculated the total revenue for the year 2020 by summing up sales amounts from transactions.
      SELECT SUM(transactions.sales_amount) 
      FROM transactions INNER JOIN date ON transactions.order_date=date.date 
      where date.year=2020;
    • Calculated the total revenue for January 2020 by summing up sales amounts from transactions
      SELECT SUM(transactions.sales_amount) 
      FROM transactions 
      INNER JOIN date ON transactions.order_date=date.date 
      WHERE date.year=2020 and date.month_name="January";
    • Calculated the total revenue for the year 2020 specifically for the Chennai market.
      SELECT SUM(transactions.sales_amount)
      FROM transactions 
      INNER JOIN date ON transactions.order_date=date.date 
      WHERE date.year=2020 and transactions.market_code="Mark001";

By executing these SQL queries, valuable insights have been extracted from the data, contributing to a deeper understanding of various sales-related aspects.

In Tableau:

  1. Imported tables from PostgreSQL as CSV files in Tableau Public.
  2. Created a Star Schema by joining tables, with 'Transactions' as the fact table and other tables as dimension tables.
  3. Performed data cleaning:
    • Removed markets 'Mark097' and 'Mark999' as they don't apply to India.
    • Normalized sales amount by converting USD to INR using a calculated field.

Dashboard Creation in Tableau:

  1. Created calculated fields for various indicators, profit, sales, and order changes, and their respective percentage changes.
  2. Utilized Level of Detail (LOD) expressions to calculate indicators based on the current and prior years.
  3. Built a dashboard using the calculated fields to display various insights.

Regional Sales Dashboard -

Regional Sales Overview

Conclusion:

The insights derived from PostgreSQL analysis and showcased through Tableau dashboards provide a solid foundation for Atliq Hardware to navigate the challenges of declining sales and formulate effective strategies for business growth. This project not only demonstrates the potential of data-driven decision-making but also underscores its pivotal role in modern business environments.