{"id":21050393,"url":"https://github.com/cagandemirmr/flo_sql_server_to_power_bi","last_synced_at":"2025-08-08T01:05:15.537Z","repository":{"id":262236954,"uuid":"886564292","full_name":"cagandemirmr/FLO_SQL_server_to_Power_Bi","owner":"cagandemirmr","description":"In this project, i connect Sql server to Power Bi to visualize my Project","archived":false,"fork":false,"pushed_at":"2024-11-12T07:25:44.000Z","size":97,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T23:12:51.734Z","etag":null,"topics":["data-visualization","dataanalysis","dataanalyst","directquery","powerbi","queries","sqlserver"],"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/cagandemirmr.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":"2024-11-11T07:50:36.000Z","updated_at":"2024-11-12T07:25:48.000Z","dependencies_parsed_at":"2024-11-11T11:24:37.497Z","dependency_job_id":"91322d25-6496-43f6-a2bf-07544df91f73","html_url":"https://github.com/cagandemirmr/FLO_SQL_server_to_Power_Bi","commit_stats":null,"previous_names":["cagandemirmr/flo_sql_server_to_power_bi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/cagandemirmr/FLO_SQL_server_to_Power_Bi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagandemirmr%2FFLO_SQL_server_to_Power_Bi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagandemirmr%2FFLO_SQL_server_to_Power_Bi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagandemirmr%2FFLO_SQL_server_to_Power_Bi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagandemirmr%2FFLO_SQL_server_to_Power_Bi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cagandemirmr","download_url":"https://codeload.github.com/cagandemirmr/FLO_SQL_server_to_Power_Bi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cagandemirmr%2FFLO_SQL_server_to_Power_Bi/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":269348296,"owners_count":24401933,"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","status":"online","status_checked_at":"2025-08-07T02:00:09.698Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["data-visualization","dataanalysis","dataanalyst","directquery","powerbi","queries","sqlserver"],"created_at":"2024-11-19T15:30:10.922Z","updated_at":"2025-08-08T01:05:15.480Z","avatar_url":"https://github.com/cagandemirmr.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# **FLO_SQL_Server_to_Power_BI**\n\n## **Project Overview**\nIn this project, I connected an SQL Server database to Power BI to create an interactive dashboard for data visualization. The goal was to visualize real-time data by using Power BI's **Direct Query** feature, ensuring the dashboard always reflects the latest data.\n\n---\n\n## **Steps to Build the Dashboard**\n\n### **1. Data Connection**\nFirst, I opened the \"Get Data\" menu in Power BI and selected \"SQL Server\". I entered the server details and chose the relevant table. The **Direct Query** option was selected to enable real-time data refresh, ensuring that any changes in the database would be immediately reflected in the Power BI dashboard.\n\n![Data Connection](https://github.com/user-attachments/assets/9463bb80-256e-49cf-ae9f-571bab094cd4)\n\n---\n\n### **2. Creating Views in SQL Server**\nTo optimize the data for visualization, I created views directly in SQL Server. This allowed me to summarize data and streamline the process before importing it into Power BI.\n\nHere, I used the **Create View** command to simplify the process:\n- Created a view using the `CREATE VIEW` statement to organize data efficiently.\n  \n![Creating Views](https://github.com/user-attachments/assets/9d4a3867-1664-48c0-9128-b884a47566b5)\n\n---\n\n### **3. Establishing Relationships**\nIn Power BI, I established relationships between tables to ensure that all imported data is properly linked and can be analyzed cohesively. This step is crucial for accurate visualizations and data integrity.\n\n![Table Connections](https://github.com/user-attachments/assets/0ef546de-cc81-42f1-b49b-e44bd2113e0d)\n\n---\n\n### **4. Transferring Data**\nDepending on the analysis needs, I created additional tables in SQL Server and imported them into Power BI using the **Direct Query** method. This ensured the data was always up-to-date without the need for manual refreshes.\n\n![Data Transfer](https://github.com/user-attachments/assets/d98eb837-6856-4ccc-9413-5b0892d30ba3)\n\n---\n\n## **Dashboard Design**\n\n### **5. Key Performance Indicators (KPIs)**\nTo highlight the most important metrics, I prepared a series of KPIs:\n- **Amount**\n- **Total Revenue**\n- **Average Recency**\n- **Maximum Day Difference Frequency**\n- **Average Revenue**\n\nWhile \"Amount\" and \"Total Revenue\" are static values, the rest are interactive, allowing users to drill down into specific data points as needed.\n\n![KPIs](https://github.com/user-attachments/assets/045d9efd-6b21-4226-81e3-84334d3324a7)\n\n---\n\n### **6. Slicers for Filtering**\nOn the right side of the dashboard, I added slicers to filter the data by years and months. The slicers use a transparent background and corporate colors to match the overall design, providing a smooth and user-friendly experience.\n\n![Slicer](https://github.com/user-attachments/assets/d530a34f-d179-40b3-80ad-71d42685d4f2)\n\n---\n\n### **7. Visuals Overview**\n\n- **Tree Map**: Placed on the bottom-right, showing shopping preferences.\n  \n  ![Tree Map](https://github.com/user-attachments/assets/d3c17577-3719-427a-8d29-f7fb2095ddfe)\n\n- **Donut Chart**: Located in the center, it shows the distribution of orders by channel.\n- **Customer Table**: Displays customers with the highest number of purchases.\n\n  ![Order Channel \u0026 Customer Table](https://github.com/user-attachments/assets/d21328c1-56f2-4484-81c8-c4699409c0f3)\n\n- **Line and Stacked Column Chart**: In the middle-bottom section, it displays the count of online channels and the sum of online average revenue by channel.\n\n  ![Online Channel Analysis](https://github.com/user-attachments/assets/d62c4467-a785-404f-9a12-6ef282d61c5e)\n\n- **Line Chart**: On the right-bottom, a line chart shows changes in offline revenue by year, month, and day.\n\n  ![Offline Revenue](https://github.com/user-attachments/assets/28533fce-e3c0-43b0-b887-99f0a40900a6)\n\n---\n\n### **8. Final Dashboard**\nAfter completing all the visualizations and configurations, the final dashboard was ready, providing a comprehensive overview of key business metrics and trends.\n\n![Final Dashboard](https://github.com/user-attachments/assets/9ac60e2c-fe77-4dbf-a625-7188d60dec6f)\n\n---\n\n## **Conclusion**\nThis project demonstrates how to effectively connect SQL Server to Power BI using the **Direct Query** option and create an interactive dashboard to monitor business performance. With the use of KPIs, charts, and slicers, users can explore data dynamically to gain valuable insights.\n\n### **Technologies Used**\n- **SQL Server**\n- **Power BI**\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcagandemirmr%2Fflo_sql_server_to_power_bi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcagandemirmr%2Fflo_sql_server_to_power_bi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcagandemirmr%2Fflo_sql_server_to_power_bi/lists"}