Skip to content

cagandemirmr/FLO_SQL_server_to_Power_Bi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

FLO_SQL_Server_to_Power_BI

Project Overview

In 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.


Steps to Build the Dashboard

1. Data Connection

First, 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.

Data Connection


2. Creating Views in SQL Server

To 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.

Here, I used the Create View command to simplify the process:

  • Created a view using the CREATE VIEW statement to organize data efficiently.

Creating Views


3. Establishing Relationships

In 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.

Table Connections


4. Transferring Data

Depending 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.

Data Transfer


Dashboard Design

5. Key Performance Indicators (KPIs)

To highlight the most important metrics, I prepared a series of KPIs:

  • Amount
  • Total Revenue
  • Average Recency
  • Maximum Day Difference Frequency
  • Average Revenue

While "Amount" and "Total Revenue" are static values, the rest are interactive, allowing users to drill down into specific data points as needed.

KPIs


6. Slicers for Filtering

On 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.

Slicer


7. Visuals Overview

  • Tree Map: Placed on the bottom-right, showing shopping preferences.

    Tree Map

  • Donut Chart: Located in the center, it shows the distribution of orders by channel.

  • Customer Table: Displays customers with the highest number of purchases.

    Order Channel & Customer Table

  • 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.

    Online Channel Analysis

  • Line Chart: On the right-bottom, a line chart shows changes in offline revenue by year, month, and day.

    Offline Revenue


8. Final Dashboard

After completing all the visualizations and configurations, the final dashboard was ready, providing a comprehensive overview of key business metrics and trends.

Final Dashboard


Conclusion

This 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.

Technologies Used

  • SQL Server
  • Power BI

About

In this project, i connect Sql server to Power Bi to visualize my Project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors