Skip to content

Arun-Kumar-Venugopal/Retail-Brand-Performance-PowerBI-AzureSQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

End-to-End Power BI Project 4

Data Source: Microsoft Azure SQL Database

GitHub Repository

https://github.com/Arun-Kumar-Venugopal/Retail-Brand-Performance-PowerBI-AzureSQL


Project Overview

This project demonstrates an end-to-end Power BI solution using Microsoft Azure SQL Database as the cloud data source.

It covers:

  • Azure SQL Database creation and configuration
  • Data loading and SQL-based data cleaning
  • Secure Power BI connectivity (SQL Authentication & Microsoft Account)
  • Data transformation using Power Query
  • Business calculations using DAX
  • Interactive dashboard design
  • Publishing and sharing reports using Power BI Apps

Business Context

This project helps retail and merchandising teams evaluate brand performance. It analyzes discount strategies, profitability, pricing, and brand variety to optimize product mix, pricing decisions, and overall retail performance.

Problem Statement

The retail business needs to evaluate brand-level performance to understand pricing strategies, discount effectiveness, and profitability.

Key KPIs

  • Average Discount %
  • Average Profit %
  • Sales Price vs Marked Price
  • Top 5 Brands by Profit %
  • Bottom 5 Brands by Profit %
  • Brand Variety Count

Assumptions & Limitations

  • Profit % is simulated for analytical purposes
  • Cost price is derived using calculated logic, not actual procurement data
  • Analysis is limited to available brand and pricing records

Architecture & Data Flow

Microsoft Azure SQL Database
→ SQL Server Management Studio (Data Prep & Validation)
→ Power BI Desktop (Transformations & DAX)
→ Power BI Service
→ Power BI App


Data Source

  • Platform: Microsoft Azure SQL Database
  • Dataset: Men’s T-Shirt Retail Data
  • Initial Columns:
    • Brand
    • Title
    • Original_Price
    • Sale_Price

Azure Setup & Data Loading

  • Created a free Microsoft Azure account
  • Created Azure SQL Database and SQL Server
  • Configured SQL Authentication and firewall rules
  • Connected via SQL Server Management Studio (SSMS)
  • Imported flat file data (Men Tshirt) into Azure SQL
  • Updated column data types for price fields

Data Cleaning (Azure SQL)

  • Removed invalid characters (?) from price columns
  • Cleaned Original_Price and Sale_Price using SQL queries
  • Prepared data for numeric conversion

Power BI Connectivity

  • Connected Power BI Desktop using:
    • SQL Server Authentication
    • Microsoft Account authentication (via Microsoft Entra ID)
  • Verified schema and refresh functionality

Data Transformation (Power Query)

  • Enabled column profiling for entire dataset
  • Identified and handled missing (NA) values
  • Filtered invalid rows
  • Estimated missing original prices using conditional logic

Final cleaned columns:

  • Brand
  • Title
  • Sales Price
  • Marked Price

Data Modeling & DAX

Calculated Columns

  • Discount %
  • Profit %
  • Cost Price

Final data model:

  • Brand
  • Title
  • Sales Price
  • Marked Price
  • Discount %
  • Profit %
  • Cost Price

Dashboard Pages

Page 1 – Brands (Title Page)

  • Landing page for the report
  • Displays available brands using Multi-row Card
  • Focused on branding and navigation

Title Page

Page 2 – Details (Analysis Page)

Contains all analytical visuals:

  • Top 5 Brands by Average Discount % (Bar Chart)
  • Top 5 Brands by Variety Count (Donut Chart)
  • Top 5 Brands by Average Sales Price (Ribbon Chart)
  • Top 5 Brands by Average Profit % (Area Chart)
  • Bottom 5 Brands by Average Profit % (Circle Chart)
  • Scrolling company banner using App Source visual

Brand Performance


Publishing & Sharing

  • Published report to Power BI Service
  • Created a dedicated workspace
  • Shared report via Power BI App
  • Granted access to organization users

What I Learned

  • Creating and managing Azure SQL Databases
  • Performing SQL-based data cleaning
  • Secure Power BI authentication methods
  • Advanced Power Query transformations
  • DAX calculations for pricing and profitability
  • Designing executive-ready dashboards
  • Sharing reports using Power BI Apps

Possible Enhancements

  • Replace simulated profit with actual cost data from ERP systems
  • Add time-based analysis if transaction dates become available
  • Implement row-level security for brand managers
  • Enable incremental refresh for large retail datasets

Live Demo (Power BI Service)

🔗 View-only Power BI App (Microsoft login required)

https://app.powerbi.com/links/vnl4pRjYJy?ctid=4b05e781-4500-43c7-a12b-f7a45bcd4a54&pbi_source=linkShare


Author

Arun Kumar Venugopal
Power BI | SQL | Azure | Data Analytics

About

End-to-end Power BI project using Microsoft Azure SQL Database with DAX-driven retail analytics.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors