Basic Sales Analytics

Basic Sales Analysis

In this course, we'll dive into the world of sales data analysis using the dataacademykz.superstore.sales dataset. You'll learn essential SQL techniques to extract insights from sales data.

Task #1: Creating a Copy of the Dataset

To begin, it's important to create your own working copy of the dataset. This ensures that your analysis won't affect the original data. Execute the following query, but don't forget to replace your_project_name and your_dataset_name with a name of your choice:

CREATE TABLE
  `your_project_name.your_dataset_name.sales_analytics` AS
SELECT
  *
FROM
  `dataacademykz.superstore.sales`

Running this query in Google BigQuery will give you a clean slate to work with.

 

 

 

Task #2: Calculating Sales Amount Without a Discount

In sales analysis, determining the pre-discount sales amount is vital for understanding the gross revenue and for calculating key financial metrics like the Cost of Goods Sold (COGS). This requires adjusting the sales figures to account for any discounts given. The formula to calculate sales without a discount is:

Sales without a discount = Sales / (1 – Discount)

Objective: Create a new column named 'Sales_Without_Discount' in the new dataset that you will create that represents the sales amount before any discount is applied. Round the result of the column to one decimal.

Expected Result: A new table will be created with an additional column showing the sales amount without discounts.

Data Source: dataacademykz.superstore.sales

 

Task #3: Calculating COGS (Cost of Goods Sold)

The Cost of Goods Sold (COGS) is an essential metric in financial analysis, particularly in sales and profitability assessments. It represents the direct costs attributable to the production of the goods sold by a company. In this task, we will calculate COGS for each item by subtracting the Profit from the Sales_Without_Discount.

Objective: Create a new column named 'COGS' in the new dataset, representing the Cost of Goods Sold for each item.

Expected Result: A new table that you have already created will be updated, including the 'COGS' column, calculated for each record.

Data Source: your_project_name.your_dataset_name.sales_analytics

 

Task #4: Analyzing Sales by Sub-Category Within Categories

Categorizing sales by sub-category within each category is a valuable analytical approach. It helps in understanding which product categories and sub-categories are performing best in terms of sales. This analysis can inform strategic decisions such as inventory management, marketing focus, and product development.

Objective: Calculate the total sales for each sub-category within its respective category and display the results sorted by category and then by sales in descending order.

Expected Result: A sorted list showing the sum of sales for each sub-category within each category, helping to identify the top-performing areas.

Data Source: dataacademykz.superstore.sales_analytics

 

Task #5: Analyzing State-wise Sales Performance for "Technology" Category

Focusing on specific product categories is often crucial in business analytics to understand market dynamics and customer preferences in different regions. In this task, the aim is to analyze the sales performance of the "Technology" category across different states. This will help in identifying which states are leading in sales for technology products and where there may be room for growth or improvement.

Objective: Determine the total sales for the "Technology" category in each state, and rank the states based on their sales performance in this category.

Expected Result: A list of states sorted by their total sales in the "Technology" category, from highest to lowest.

Data Source: dataacademykz.superstore.sales_analytics

 

Task #6: Identifying the Top-5 Products by Revenue in the Technology Category

In the field of sales and product management, identifying the highest revenue-generating products within a specific category is crucial for strategic decision-making. This task focuses on pinpointing the top-5 products in terms of revenue within the "Technology" category. Such an analysis is instrumental in understanding customer preferences and market trends, and it can guide inventory and marketing strategies.

Objective: Determine the top-5 products by revenue in the "Technology" category.

Expected Result: A list of the top-5 technology products ranked by their total sales, from highest to lowest.

Data Source: dataacademykz.superstore.sales_analytics

 

Task #7: Discovering the Most Popular Products by Order Count

In the field of sales and marketing, understanding product popularity is as crucial as knowing revenue figures. Popularity can be gauged by the number of times a product appears in orders, offering insights into consumer preferences and demand patterns. This task aims to identify which products are most frequently ordered by counting the distinct orders associated with each product.

Objective: Determine the products that appear in the greatest number of distinct orders.

Expected Result: A list of products ranked by their order count, revealing the most popular products based on how frequently they are ordered.

Data Source: dataacademykz.superstore.sales_analytics