This project demonstrates how to create a sales simulation for a bakery business using SQL Server and display its real-time sales information in Power BI Desktop. The tutorial guides you through setting up the database, generating sales data, and visualizing the results using the Direct Query connection.
Real.Time.Sales.Dashboard.LinkedIn.mp4
- SQL Server Setup: Create and manage a database for bakery sales.
- Automated Sales Generation: Use SQL queries to simulate real-time sales.
- Power BI Integration: Link the database to Power BI using the Direct Query method.
- Real-Time Dashboard: Visualize sales information dynamically using Power BI dashboards.
- Relational Modeling: Establish relationships between tables to enable meaningful insights.
This project includes the following steps:
-
Database Creation
- Create a SQL Server database named
Star Bakery
. - Add tables to store product, salesperson, order type, and order data.
- Create a SQL Server database named
-
Data Population
- Populate the tables with initial data using SQL queries.
- Implement a SQL script to generate sales data automatically.
-
Power BI Integration
- Connect the SQL Server database to Power BI using Direct Query.
- Build a relational model in Power BI to link tables.
-
Dashboard Creation
- Design a Power BI dashboard to visualize real-time sales data.
-
Simulation Execution
- Run the SQL-based simulation and observe live updates in Power BI.
To run this project, you need the following tools installed:
- SQL Server Management Studio (SSMS)
- Power BI Desktop
-
Open SQL Server Management Studio.
-
Create a new database named
Star Bakery
. -
Run the provided SQL scripts to create and populate the following tables:
Product
: Stores product information (ID, title, price).Sales Person
: Stores salesperson details (first name, last name).Order Type
: Stores order types (ID, order type).Orders
: Records customer orders (ID, date, product ID, salesperson ID, order type ID, etc.).
-
Execute the SQL script to generate sales data automatically.
- Open Power BI Desktop.
- Connect to the SQL Server database using the Direct Query connection method.
- Build a relational model by linking tables.
- Create a dashboard to display real-time sales information.
- Start the SQL script to simulate sales generation.
- Refresh the Power BI dashboard to view real-time updates.
power_bi.pbix
: Power BI file with the dashboard setup.
- Clone this repository to your local machine.
- Follow the setup instructions to configure the SQL Server database and Power BI dashboard.
- Run the simulation and observe real-time updates in the Power BI dashboard.
If you have suggestions or improvements, feel free to open a pull request or submit an issue.
For questions or feedback, feel free to reach out:
- Email: [email protected]
- GitHub: Pratik-Khose