Our sales reporting system relies on static reports that require more flexibility and depth for practical analysis. We must transition from static reports to dynamic visual dashboards to enhance our sales monitoring and decision-making process. The primary challenges we face are:
-
Lack of Detailed Product and Client Insights: We cannot currently track the sales of individual products and understand the clients associated with each sale. This hampers our ability to tailor our sales strategies effectively.
-
Inability to Assess Performance Trends: We need a comprehensive system for evaluating the performance trends of our sales over time. This makes it difficult to make informed decisions and adapt to changing market dynamics.
-
Budgetary Comparison: Our budget data for the fiscal year 2022 needs to be more effectively integrated into our sales reporting, limiting our ability to compare actual sales performance against budgeted targets.
-
Need for Filter Functionality: Given the diverse range of products and clients managed by each salesperson, we require the capability to apply filters to analyze specific segments of our sales data.
- Reporter: Shenique N. – Sales Manager
- Value of Change: Visual dashboards and improved Sales reporting for Salesforce.
- Necessary Systems: PowerBI, CRM System
- Other Relevant Information: Budgets have been delivered in Excel for 2022
No. | As a | I want | So that | Acceptance Criteria |
---|---|---|---|---|
1 | Sales Manager | to access a PowerBI dashboard | effectively track which customers and products perform best each month/quarter/year | A PowerBI dashboard updated once daily. |
2 | Sales Rep | A detailed PowerBI dashboard | proactively engages with our most frequent customers and identifies potential future sales opportunities | A PowerBI dashboard that provides the functionality to filter data by each customer. |
3 | Sales Rep | a detailed overview of sales per product | efficiently monitor and manage the products that are selling the best | A PowerBI dashboard that provides the functionality to filter data by each product. |
4 | Sales Manager | comprehensive PowerBI dashboard to oversee our sales performance over time, enabling a comparison against our budget | can effectively evaluate our sales performance | A PowerBI dashboard that includes graphs and Key Performance Indicators (KPIs) to facilitate a comparison with the budget. |
Data Source: AdventureWorks 2022 Sample Database The project utilizes the AdventureWorks 2022 sample database, a comprehensive dataset provided by Microsoft, designed for learning and practicing SQL and database management.
This database contains information about a fictional bicycle manufacturer, Adventure Works Cycles, and encompasses various aspects of its operations, including sales, products, customers, and more.
- Internet Sales Data: The database contains sales-related information, including orders, order details, and sales territories.
- Budget: Data about budgets and financial performance.
- Product Data: Information about products, categories, and descriptions.
- Customer Data: Customer details, including names, addresses, and contact information.
- Calendar Data: Information about the year, quarter, month and day descriptions.
The data in AdventureWorks 2022 is designed to support a wide range of scenarios and use cases for database and SQL practice. This README file covers the data's use in improving sales reporting and creating dynamic visual dashboards. Please ensure the AdventureWorks 2022 database is installed and accessible for this project.
To clean and transform this data, I used Microsoft SQLServer to perform queries on the Calendar, Customers and Products Dimension Tables, and the Budget and Internet Fact Tables.
This SQL query cleans and structures the "DIM_Customers" table, providing a more organized view of the customer data. The resulting table includes essential customer attributes, such as customer key, first name, last name, full name (combined from first and last name), and gender (with values transformed from 'M' to 'Male' and 'F' to 'Female'). The query also incorporates data from the "DIM_Geography" table to include customer city information.
SELECT c.customerkey AS CustomerKey
,c.firstname AS [FirstName]
,c.lastname AS [LastName]
,c.firstname + ' ' + c.lastname AS [FullName]
CASE c.gender
WHEN 'M' THEN 'Male'
WHEN 'F' THEN 'Female'
END AS Gender
c.datefirstpurchase AS DateFirstPurchase
,g.city AS [Customer City]
FROM AdventureWorksDW2022.dbo.DimCustomer AS c
LEFT JOIN AdventureWorksDW2022.dbo.DimGeography AS g ON g.geographykey = c.geographykey
ORDER BY CustomerKey ASC
This SQL query is designed to cleanse and structure the "DIM_Products" table. It extracts specific attributes while providing a more organized view of the data. The resulting table includes essential product information, such as product key, item code, product name, sub-category, product category, product color, size, product line, model name, and product description.
-- Cleansed DIM_Products Table --
SELECT p.[ProductKey]
,p.[ProductAlternateKey] AS ProductItemCode
,p.[EnglishProductName] AS [Product Name]
,ps.EnglishProductSubcategoryName AS [Sub Category]
,pc.EnglishProductCategoryName AS [Product Category]
,p.[Color] AS [Product Color]
,p.[Size] AS [Product Size]
,p.[ProductLine] AS [Product Line]
,p.[ModelName] AS [Product Model Name]
,p.[EnglishDescription] AS [Product Description]
,ISNULL(p.STATUS, 'Outdated') AS [Product Status]
FROM AdventureWorksDW2022.dbo.DimProduct AS p
LEFT JOIN AdventureWorksDW2022.dbo.DimProductSubcategory AS ps ON ps.ProductSubcategoryKey = p.ProductSubcategoryKey
LEFT JOIN AdventureWorksDW2022.dbo.DimProductCategory AS pc ON ps.ProductCategoryKey = pc.ProductCategoryKey
ORDER BY p.ProductKey ASC
![cleansed_product_table_query](https://private-user-images.githubusercontent.com/107881738/275366806-9fb049d0-67de-4edd-b01f-d1fbf4876a21.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5OTk4MjYsIm5iZiI6MTcyMzk5OTUyNiwicGF0aCI6Ii8xMDc4ODE3MzgvMjc1MzY2ODA2LTlmYjA0OWQwLTY3ZGUtNGVkZC1iMDFmLWQxZmJmNDg3NmEyMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOFQxNjQ1MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT01M2M5ZmExMGZhZTAzNDdkNDhjMTgzNDE0OGViMjBmY2M5MzY1YzRjOTA1ODVjNWNmMDI2NGM3ZWYwYzk1OWQ2JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.gCJsP7yJb7BZzEbcQRTDaSM6LT2HHUBZMY1Oh9Ff6qU)
![sales_report_model](https://private-user-images.githubusercontent.com/107881738/275366795-6a6b3a1f-771a-412b-80f4-0e35750ff43e.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6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9MCJ9.3YdeYAHOl8eJLe5IIQXebvEeJY8k0NBsn_MAeOc7rM4)
![customer_details_report](https://private-user-images.githubusercontent.com/107881738/275366842-0bbf3801-0947-4e95-a56c-31c0f8025e03.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM5OTk4MjYsIm5iZiI6MTcyMzk5OTUyNiwicGF0aCI6Ii8xMDc4ODE3MzgvMjc1MzY2ODQyLTBiYmYzODAxLTA5NDctNGU5NS1hNTZjLTMxYzBmODAyNWUwMy5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODE4JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxOFQxNjQ1MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0xMTEzNmNiNzgxN2U1NTk2MTRjMWYwZjYxMmE4ZWNmM2UzMDc1ZGRjYzk1YjVjZTdhZjYwZjFhZDQ0OWI2YzUzJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.V6CzpxD-U5y7IvZkMaZ5nyjQkCKAQOjTerrjmGZ00Hc)
The created Power BI report comprises three pages catering to different user needs and roles. It is updated daily, ensuring that the data is current. The report can be filtered by customer, product, city, month, and year, providing a high level of customization. The report displays the top 10 products and top 10 customers, delivering valuable insights. It includes shipment information by category and subcategory, enabling detailed product analysis. The report intensifies the data analysis by showing the city and day of the week for the top 10 products.
To deploy this model, I published the dashboard here for users to test and give feedback to the team.
Some ideas for future work include:
- Sales Forecasting: Implement a sales forecasting system that uses historical sales data from AdventureWorks2022 to predict future sales.
- Inventory Management: Create an inventory management module that monitors product stock levels and generates alerts when products run low.
- Customer Segmentation: Develop a customer segmentation analysis to group customers based on their purchase behavior, demographics, and other attributes.
Please review my full analysis in my notebook or (my presentation). Feel free to contact me Tenicka Norwood at tenicka.norwood@gmail.com if you have more questions.
. └──sales_and_product_management/ ├── README.md Overview for project reviewers ├── queries/ Includes SQL queries ├── tables/ Includes tables used in the model ├── dashboards/ Includes PowerBI files ├── requirements/ Includes requirements of this project and instructions to obtain the dataset ├── images/ Includes images related to the project └── .gitignore Specifies intentionally untracked files