{"id":20698268,"url":"https://github.com/mrankitgupta/sales-insights-data-analysis-using-tableau-and-sql","last_synced_at":"2025-08-13T06:06:58.972Z","repository":{"id":65225850,"uuid":"482779782","full_name":"mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL","owner":"mrankitgupta","description":"India based Hardware company Sales Insights - A Data Analysis Project performed on Tableau \u0026 SQL","archived":false,"fork":false,"pushed_at":"2022-11-16T07:03:00.000Z","size":5188,"stargazers_count":36,"open_issues_count":0,"forks_count":11,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-11-17T00:27:20.733Z","etag":null,"topics":["66daysofdata","analysis","analytics","ankitgupta","data-analysis","data-cleaning","data-science","data-visualization","excel","mrankitgupta","mysql","powerbi","rdbms","sql","sql-server","statistics","tableau","tableau-dashboards","tableau-desktop","tableau-public"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mrankitgupta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-04-18T08:56:33.000Z","updated_at":"2024-11-09T14:46:56.000Z","dependencies_parsed_at":"2023-01-15T16:45:46.105Z","dependency_job_id":null,"html_url":"https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrankitgupta%2FSales-Insights-Data-Analysis-using-Tableau-and-SQL","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrankitgupta%2FSales-Insights-Data-Analysis-using-Tableau-and-SQL/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrankitgupta%2FSales-Insights-Data-Analysis-using-Tableau-and-SQL/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mrankitgupta%2FSales-Insights-Data-Analysis-using-Tableau-and-SQL/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mrankitgupta","download_url":"https://codeload.github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234415578,"owners_count":18829133,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["66daysofdata","analysis","analytics","ankitgupta","data-analysis","data-cleaning","data-science","data-visualization","excel","mrankitgupta","mysql","powerbi","rdbms","sql","sql-server","statistics","tableau","tableau-dashboards","tableau-desktop","tableau-public"],"created_at":"2024-11-17T00:23:59.806Z","updated_at":"2025-01-17T18:55:40.341Z","avatar_url":"https://github.com/mrankitgupta.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003eSales Insights - Data Analysis using Tableau \u0026 SQL \u003ca href=\"https://public.tableau.com/app/profile/mrankitgupta\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/mrankitgupta/a768d6bf0a001f03327578ae12f8867e4056cbaf/tableau-software.svg\" alt=\"tableau\" width=\"55\" height=\"40\"/\u003e \u003c/a\u003e \u003c/h1\u003e\n\n**I am sharing India based Hardware company Sales Insights - A Data Analysis Project performed on Tableau \u0026 SQL in my journey into Data Science.** \n\nFor more detials, refer: \u003ccode\u003e[Data Analyst Roadmap](https://github.com/mrankitgupta/Data-Analyst-Roadmap)\u003c/code\u003e :hourglass:\n\n### About Project 👨‍💻\n\n- Performed India based hardware company sales insights - A Data Analysis project.\n\n- Developed ETL mappings using SQL to extract the data from unstructured data and transformed it to the staging area to conduct data cleaning and design star schema data model on Tableau.\n\n- Developed a Tableau dashboard to perform analysis, producing quantitative visualizations in Tableau to draw valuable insights based on different parameters affecting the company performance year on year and further provide business solutions.\n\n## Technologies used ⚙️\n\n* \u003ca href=\"https://coursera.org/share/064db4645159df788ad0b31abebf1556\"\u003eAdvance Excel\u003c/a\u003e\u003ca href=\"https://coursera.org/share/064db4645159df788ad0b31abebf1556\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/66DaysOfData/60139fb461ef56a19afd68ea4094f6069f27ce49/icons8-microsoft-excel%20(1).svg\" alt=\"excel\" width=\"25\" height=\"25\"/\u003e \u003c/a\u003e\n\n* \u003ca href=\"https://www.mysql.com/\"\u003eMySQL\u003c/a\u003e\u003ca href=\"https://www.mysql.com/\" target=\"_blank\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/devicons/devicon/master/icons/mysql/mysql-original-wordmark.svg\" alt=\"mysql\" width=\"35\" height=\"20\"/\u003e \u003c/a\u003e   |  \u003ca href=\"https://www.microsoft.com/en-us/sql-server\"\u003eSQL Server\u003c/a\u003e\u003ca href=\"https://www.microsoft.com/en-us/sql-server\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003ca href=\"https://www.microsoft.com/en-us/sql-server\" target=\"_blank\"\u003e \u003cimg src=\"https://www.svgrepo.com/show/303229/microsoft-sql-server-logo.svg\" alt=\"sql-server\" width=\"28\" height=\"22\"/\u003e \u003c/a\u003e \n\n* \u003ca href=\"https://public.tableau.com/app/profile/mrankitgupta\"\u003eTableau\u003c/a\u003e\u003ca href=\"https://public.tableau.com/app/profile/mrankitgupta\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/mrankitgupta/a768d6bf0a001f03327578ae12f8867e4056cbaf/tableau-software.svg\" alt=\"tableau\" width=\"20\" height=\"20\"/\u003e \u003c/a\u003e  |\n\u003ca href=\"https://powerbi.microsoft.com/en-us/\"\u003ePower BI\u003c/a\u003e\u003ca href=\"https://powerbi.microsoft.com/en-us/\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/mrankitgupta/a768d6bf0a001f03327578ae12f8867e4056cbaf/power-bi.svg\" alt=\"powerbi\" width=\"20\" height=\"20\"/\u003e \u003c/a\u003e\n\n* \u003ca href=\"https://github.com/mrankitgupta/Statistics-for-Data-Science-using-Python\"\u003eStatistics\u003c/a\u003e\u003ca href=\"https://github.com/mrankitgupta/Statistics-for-Data-Science-using-Python\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/66DaysOfData/c8c040f1c85d921db317152567f331354446286a/statistics-21.svg\" alt=\"Statistics\" width=\"25\" height=\"25\"/\u003e \u003c/a\u003e\n\n\u003ch2 align=\"left\"\u003eCertifications 📜 🎓 ✔️\u003c/h2\u003e\n\n- [Data Visualization with Tableau](https://www.simplilearn.com/skillup-certificate-landing?token=eyJjb3Vyc2VfaWQiOiI3OTUiLCJjZXJ0aWZpY2F0ZV91cmwiOiJodHRwczpcL1wvY2VydGlmaWNhdGVzLnNpbXBsaWNkbi5uZXRcL3NoYXJlXC90aHVtYl8zMzkyNjI4XzE2NTAxMTE0NzcucG5nIiwidXNlcm5hbWUiOiJBbmtpdCBHdXB0YSJ9\u0026utm_source=shared-certificate\u0026utm_medium=lms\u0026utm_campaign=shared-certificate-promotion) - by Simplilearn\n  \n- [Databases and SQL for Data Science with Python](https://github.com/mrankitgupta) - by IBM\n\n- [Statistics for Data Science with Python](https://www.credly.com/badges/354576a0-b672-4245-8cad-82dc3f3df76f/public_url) - by IBM\n\n- [Data Visualization with Advanced Excel](https://www.coursera.org/account/accomplishments/certificate/CY9V466RB36R) - by PWC\n\n## Project - India based Hardware company Sales Insights - Data Analysis performed on Tableau \u0026 SQL\n  \n### [Tableau Dashboard Link](https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link) \u003ca href=\"https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/mrankitgupta/a768d6bf0a001f03327578ae12f8867e4056cbaf/tableau-software.svg\" alt=\"tableau\" width=\"40\" height=\"20\"/\u003e \u003c/a\u003e  🔗\n\n### Problem Statements\nSales director wants to know the performance of the company in various Indian states \u0026 accordingly provide some discount.\n\n- Q1. Revenue breakdown by cities.\n\n- Q2. Revenue brekdown by years \u0026 months.\n\n- Q3. Top 5 customers by revenue \u0026 sales quantity.\n\n- Q4. Top 5 Products by revenue.\n  \n- Q5. Net Profit \u0026 Profit Margin by Market\n\n### Approach - Project Planning \u0026 [Aims Grid](https://www.youtube.com/watch?v=6118I9HViuQ)\n  \n#### 1. Purpose: What? Why? What do we want to achieve?\nTo unlock sales insights that are not visible before for sales team for decision support \u0026 automate them to reduced manual time spent in data gathering.\n\n#### 2. Stake Holders: Who will be involved?\n- Sales Director, \n- I.T. Team, \n- Customer Service Team, \n- Data \u0026 Analytics Team.\n\n#### 3. End Result: What do we want to achieve?\nAn automated dashboard providing quick \u0026 latest sales insights in order to support data driven decision making.\n\n#### 4. Success Criteria: What will be our success criteria?\n- Dashboards uncovering sales order insights with latest data available.\n- Sales team able to take better decision \u0026 prove 10% cost savings of total spend.\n- Sales analysts stop data gathering manually in order to save 20% of their business time \u0026 reinvest it in value added activity.\n\n### Data Analysis - Approach\n\u003cp  align=\"center\"\u003e\u003ca href=\"https://github.com/mrankitgupta\"\u003e\u003cimg width=\"80%\" src=\"https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/blob/main/images/flow.jpg\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\n### Setup Process\n  \nStep 1: Download file: \u003ccode\u003e[db_dump.sql](https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/blob/main/Databases/db_dump.sql)\u003c/code\u003e or \u003ccode\u003e[db_dump.xlsx](https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/blob/main/Databases/db_dump.xlsx)\u003c/code\u003e\n\nStep 2: Import it in MySql do ETL(Extract, Transform, Load) if required\n\nStep 3: Download [Tableau Public](https://www.tableau.com/products/public/download) (Free) or [Tableau Desktop](https://www.tableau.com/products/desktop/download) (14 days trial) to perform Data Analysis\n  \nStep 4: Connect Tableau with MySql database or Excel database\n  \nStep 5: Save the file as (.twb or .twbx)\n\n  \n## Data Analysis Using SQL\n  \n1. Show all customer records\n\n    `SELECT * FROM customers;`\n\n1. Show total number of customers\n\n    `SELECT count(*) FROM customers;`\n\n1. Show transactions for Chennai market (market code for chennai is Mark001)\n\n    `SELECT * FROM transactions where market_code='Mark001';`\n\n1. Show distrinct product codes that were sold in chennai.\n\n    `SELECT distinct product_code FROM transactions where market_code='Mark001';`\n\n1. Show transactions where currency is US dollars.\n\n    `SELECT * from transactions where currency=\"USD\"`\n\n1. Show transactions in 2020 join by date table.\n\n    `SELECT transactions.*, date.* FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020;`\n\n1. Show total revenue in year 2020.\n\n    `SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020 and transactions.currency=\"INR\\r\" or transactions.currency=\"USD\\r\";`\n\t\n1. Show total revenue in year 2020, January Month.\n\n    `SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020 and and date.month_name=\"January\" and (transactions.currency=\"INR\\r\" or transactions.currency=\"USD\\r\");`\n\n1. Show total revenue in year 2020 in Chennai.\n\n    `SELECT SUM(transactions.sales_amount) FROM transactions INNER JOIN date ON transactions.order_date=date.date where date.year=2020and transactions.market_code=\"Mark001\";`\n\n\n## Data Analysis Using Tableau \n  \n### Tableau Public Dashboards: [Revenue \u0026 Profit Analysis](https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link)  \u003ca href=\"https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link\" target=\"_blank\" rel=\"noreferrer\"\u003e \u003cimg src=\"https://raw.githubusercontent.com/mrankitgupta/mrankitgupta/a768d6bf0a001f03327578ae12f8867e4056cbaf/tableau-software.svg\" alt=\"tableau\" width=\"40\" height=\"20\"/\u003e \u003c/a\u003e\n\n#### Creating Star Schema in Tableau\n\t\n\u003cp  align=\"center\"\u003e\u003ca href=\"https://public.tableau.com/app/profile/mrankitgupta\"\u003e\u003cimg width=\"80%\" src=\"https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/blob/main/images/Star%20Schema.png\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\n#### Tableau Dashboard - [Revenue Analysis](https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link)\n\t\n\u003cp  align=\"center\"\u003e\u003ca href=\"https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link\"\u003e\u003cimg width=\"100%\" src=\"https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/blob/main/images/Tableau%20Dashbpard%20Revenue%20Analysis.png\" /\u003e\u003c/a\u003e\u003c/p\u003e\n\n#### Tableau Dashboard - [Profit Analysis](https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-ProfitAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link)\n\t\n\u003cp  align=\"center\"\u003e\u003ca href=\"https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-ProfitAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link\"\u003e\u003cimg width=\"100%\" src=\"https://github.com/mrankitgupta/Sales-Insights-Data-Analysis-using-Tableau-and-SQL/blob/main/images/Tableau%20Dashbpard%20Profit%20Analysis.png\" /\u003e\u003c/a\u003e\u003c/p\u003e\n  \n## Project References: 🔗\n\n|**Sr.No. 🔢**|**References 👨‍💻**| **Links :link:**|\n|------|--------------------|---------------------|\n|1| **Tableau Project Dashboard :** Sales Insights - Data Analysis using Tableau | [Dashboard](https://public.tableau.com/views/SalesInsights-DataAnalysisProject/Dashboard-RevenueAnalysis?:language=en-US\u0026:display_count=n\u0026:origin=viz_share_link)|\n|2| **Tableau Public Profile** | [Tableau Public Dashboard](https://public.tableau.com/app/profile/mrankitgupta) |\n|3| Tutorial | [YouTube 1](https://www.youtube.com/playlist?list=PLeo1K3hjS3utcb9nKtanhcn8jd2E0Hp9b) | \n|4| MySQL installation | [YouTube 2](https://www.youtube.com/watch?v=WuBcTJnIuzo) |\n|5| OLTP \u0026 OLAP | [Geeks for Geeks](https://www.geeksforgeeks.org/difference-between-olap-and-oltp-in-dbms/) | \n|6| Star Schema: Fact Table \u0026 Dimension Table | [Microsoft docs.](https://docs.microsoft.com/en-us/power-bi/guidance/star-schema) | \n  \n## Related Projects:question: 👨‍💻 🛰️\n\n\u003ccode\u003e[Spotify Data Analysis using Python](https://github.com/mrankitgupta/Spotify-Data-Analysis-using-Python)\u003c/code\u003e 📊\n\n\u003ccode\u003e[Statistics for Data Science using Python](https://github.com/mrankitgupta/Statistics-for-Data-Science-using-Python)\u003c/code\u003e 📊\n \n\u003ccode\u003e[Python Lessons](https://github.com/mrankitgupta/PythonLessons)\u003c/code\u003e 📑\n\n\u003ccode\u003e[Python Libraries for Data Science](https://github.com/mrankitgupta/PythonLibraries)\u003c/code\u003e 🗂️\n  \n  \n### Liked my Contributions:question:[Follow Me](https://github.com/mrankitgupta/):point_right: [Nominate Me for GitHub Stars](https://stars.github.com/nominate/) :star: :sparkles:\n\n## For any queries/doubts 🔗 👇 \n\n### [Ankit Gupta](https://bio.link/AnkitGupta)\n\u003cp align=\"left\"\u003e \u003ca href=\"https://twitter.com/MrAnkitGupta_/\" target=\"blank\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/MrAnkitGupta_?logo=twitter\u0026style=for-the-badge\" alt=\"MrAnkitGupta_\" /\u003e\u003c/a\u003e \u003c/p\u003e\n\n\u003ca href=\"https://www.linkedin.com/in/mrankitgupta\" target=\"blank\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/badge/-MrAnkitGupta-blue?style=flat-square\u0026logo=Linkedin\u0026logoColor=white\u0026link=https://www.linkedin.com/in/mrankitgupta/\" alt=\"MrAnkitGupta\" height=\"20\" width=\"100\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://www.instagram.com/MrAnkitGupta_\" target=\"blank\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/badge/-@MrAnkitGupta_-D7008A?style=flat-square\u0026labelColor=D7008A\u0026logo=Instagram\u0026logoColor=white\u0026link=https://www.instagram.com/MrAnkitGupta_\" alt=\"MrAnkitGupta_\" height=\"20\" width=\"110\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://bio.link/AnkitGupta\" target=\"blank\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/badge/website-000000?style=for-the-badge\u0026logo=About.me\u0026logoColor=white\u0026link=https://bio.link/AnkitGupta\" alt=\"AnkitGupta\" height=\"20\" width=\"90\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://github.com/mrankitgupta/\" target=\"blank\"\u003e\u003cimg align=\"center\" src=\"https://img.shields.io/github/followers/mrankitgupta?label=Follow\u0026style=social\u0026link=https://github.com/mrankitgupta/\" alt=\"MrAnkitGupta\" height=\"20\" width=\"90\" /\u003e\u003c/a\u003e\n\n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrankitgupta%2Fsales-insights-data-analysis-using-tableau-and-sql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmrankitgupta%2Fsales-insights-data-analysis-using-tableau-and-sql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmrankitgupta%2Fsales-insights-data-analysis-using-tableau-and-sql/lists"}