{"id":24696780,"url":"https://github.com/aviraltechie/sales_insight","last_synced_at":"2025-03-22T03:24:33.873Z","repository":{"id":273741846,"uuid":"920679134","full_name":"AviralTechie/Sales_Insight","owner":"AviralTechie","description":"Automate sales tracking and reporting. Uncover actionable insights for improved decision-making. Develop dynamic dashboards and reusable queries to simplify data analysis.","archived":false,"fork":false,"pushed_at":"2025-01-22T18:13:16.000Z","size":2140,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-03T02:06:55.607Z","etag":null,"topics":["dbms-project","mysql-database","powerbi"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AviralTechie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-22T15:30:52.000Z","updated_at":"2025-01-22T18:16:31.000Z","dependencies_parsed_at":"2025-01-22T18:36:34.127Z","dependency_job_id":null,"html_url":"https://github.com/AviralTechie/Sales_Insight","commit_stats":null,"previous_names":["aviraltechie/sales_insight"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralTechie%2FSales_Insight","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralTechie%2FSales_Insight/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralTechie%2FSales_Insight/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AviralTechie%2FSales_Insight/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AviralTechie","download_url":"https://codeload.github.com/AviralTechie/Sales_Insight/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244901145,"owners_count":20528870,"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":["dbms-project","mysql-database","powerbi"],"created_at":"2025-01-27T02:04:29.661Z","updated_at":"2025-03-22T03:24:33.855Z","avatar_url":"https://github.com/AviralTechie.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sales Insights Data Analysis Project\n![Power BI](https://img.shields.io/badge/Power%20BI-v2.139-yellow)\n![MySQL](https://img.shields.io/badge/MySQL-v8.40-blue)\n\n\n## Problem Statement\n\nA hardware company that supplies computer hardware and peripheral devices is experiencing challenges in the following areas:\n\n- `Sales Tracking:` Struggles to dynamically track sales performance in a rapidly growing market.  \n- `On-Site Business Analysis:` Difficulty in managing and analyzing on-site business operations effectively.  \n- `Cross-Reporting:` Inability to consolidate and analyze data scattered across multiple Excel records.  \n\n### Dashboard Screenshot\n![Project Image](ak.png)\n![Project Image](ak1.png)\n\n### Purpose\nThe primary purpose of this project is:  \n1. To unlock actionable sales insights for sales teams, enabling better decision-making.  \n2. To automate data analysis and reduce manual time spent on data engineering tasks.  \n\n### Key Challenges\n1. *Sales Growth*: The company is unable to monitor and strategize for consistent sales growth.  \n2. `*Declining Overall Sales*: The sales trends indicate a decline in overall performance, requiring in-depth analysis.  \n\n---\n\n## Instructions to Set Up MySQL on Your Local Computer\n\n1. The SQL database dump is provided in the `db_dump.sql` file.  \n2. Download the `db_dump.sql` file to your local computer.  \n3. Follow the instructions in the tutorial video to import the database into your MySQL environment.  \n\n---\n\n## Data Analysis Using SQL\n\n### Example Queries for Sales Analysis  \n\n1. **Show all customer records**\n```sql\n   SELECT * FROM customers;\n```\n   \n2. **Show total number of customers**\n```sql\nSELECT COUNT(*) FROM customers;\n```\n3.**Show transactions for the Chennai market\n(Market code for Chennai is Mark001)** \n```sql\nSELECT * FROM transactions WHERE market_code = 'Mark001';\n```\n4.**Show distinct product codes that were sold in Chennai**\n```sql\nSELECT DISTINCT product_code FROM transactions WHERE market_code = 'Mark001';\n```\n5. **Show transactions where the currency is US Dollars**\n```sql\nSELECT * FROM transactions WHERE currency = \"USD\";\n```\n6. **Show transactions in 2020\n(Join with the date table)**\n```sql\nSELECT transactions.*, date.* \nFROM transactions \nINNER JOIN date ON transactions.order_date = date.date \nWHERE date.year = 2020;\n```\n7. **Show total revenue in 2020**\n```sql\nSELECT SUM(transactions.sales_amount) AS total_revenue \nFROM transactions \nINNER JOIN date ON transactions.order_date = date.date \nWHERE date.year = 2020 AND (transactions.currency = \"INR\" OR transactions.currency = \"USD\");\n\n```\n8. **Show total revenue in January 2020**\n```sql\nSELECT SUM(transactions.sales_amount) AS total_revenue \nFROM transactions \nINNER JOIN date ON transactions.order_date = date.date \nWHERE date.year = 2020 AND date.month_name = \"January\" AND (transactions.currency = \"INR\" OR transactions.currency = \"USD\");\n```\n9. **Show total revenue in 2020 for Chennai**\n```sql\nSELECT SUM(transactions.sales_amount) AS total_revenue \nFROM transactions \nINNER JOIN date ON transactions.order_date = date.date \nWHERE date.year = 2020 AND transactions.market_code = \"Mark001\";\n```\n\n\n## Data Analysis Using Power BI\n\n```bash\n1. Formula to create norm_amount column\n\n= Table.AddColumn(#\"Filtered Rows\", \"norm_amount\", each if [currency] = \"USD\" or [currency] =\"USD#(cr)\" then [sales_amount]*75 else [sales_amount], type any)\n```\n\n### Clone this repository \n```bash\ngit clone https://github.com/AviralTechie/Sales_Insight.git\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviraltechie%2Fsales_insight","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faviraltechie%2Fsales_insight","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faviraltechie%2Fsales_insight/lists"}