Sunday, July 27, 2025

๐ŸŒWorld Of Thoughts

 

๐ŸŒWorld Of Thoughts

1️⃣. Successful ๐ŸŽ— Men ๐Ÿ‘ฒ๐Ÿผ have only one thing is common, They lost their emotions ๐Ÿ’” at the early ๐Ÿ• stage of life, They are living with a dead Heart๐Ÿ–ค.

2️⃣. Never Blame anyone in your ๐Ÿƒ life, Good People Give you HappinessWorst People Give you a Lessons.

3️⃣. I've Killed ๐Ÿšซ So Many Version of Myself to Become this Calm.

4️⃣. Situation, Time ⏱️, People ๐Ÿง‘‍๐Ÿค‍๐Ÿง‘ These three things teach better lessons than Books ๐Ÿ“š.

5️⃣. It is better if there are fewer dreams, desires and people ๐Ÿง‘‍๐Ÿค‍๐Ÿง‘, and it is even better if there are none ๐Ÿšซ.

Thursday, July 24, 2025

Retail Analytics Dashboard on Zepto Dataset using PostgreSQL, Excel, and Power BI


๐Ÿ“ Retail Analytics Dashboard on Zepto Dataset using PostgreSQL, Excel, and Power BI

๐Ÿ“ Project Description:

๐ŸƒThe project focuses on analyzing a structured dataset from Zepto, a hyperlocal grocery delivery platform.

It involves performing data cleaning, transformation, and visualization to uncover insights across categories, pricing, discount strategies, and product performance.

The process integrates SQL for data explorationExcel for data modeling, and Power BI for interactive dashboards

to help understand business-critical KPIs like revenue distribution, stock status, discount optimization, and product-wise performance.

๐Ÿ“„ Dataset Overview (Zepto Dataset)

The dataset contains detailed information on products listed on Zepto, with the following key columns:

๐Ÿš Column_Name | ๐Ÿ—บ Description
๐Ÿ’ง Category | Product category (e.g., Beverages, Dairy, Fruits, etc.)
๐Ÿ’ง name | Product name
๐Ÿ’ง mrp | Maximum Retail Price
๐Ÿ’ง discountPercent | Discount applied on the product (in %)
๐Ÿ’ง availableQuantity | Number of units in stock
๐Ÿ’ง discountedSellingPrice | Actual selling price after discount
๐Ÿ’ง weightInGms | Weight of the product in grams
๐Ÿ’ง outOfStock | Boolean flag for stock status
๐Ÿ’ง quantity | Units sold or listed

✅ Additional calculated fields used in analysis:

๐Ÿ’ง Discount Amount

๐Ÿ’ง Total Revenue

๐Ÿ’ง Price per Gram

๐Ÿ’ง MRP Category (High, Medium, Low)

๐Ÿง‘‍๐Ÿ’ป POSTGRESQL Query Process (Data Exploration & KPI Extraction)

PostgreSQL was used to query the dataset stored in a relational format. Here are sample tasks:

✅ Sample Queries:

๐ŸŸข Beginner Level (1–5)

1 . View all product records ?

SELECT *
FROM Zepto;

2. List all distinct product categories ?

SELECT DISTINCT category
FROM Zepto;

3. Count total number of products ?

SELECT COUNT(*) AS total_products
FROM Zepto;

4. Find total available quantity in stock ?

SELECT SUM(available_quantity) AS total_stock
FROM Zepto;

5. Show products that are out of stock ?

SELECT name , category
FROM Zepto
WHERE out_of_stock = 'TRUE';

๐ŸŸก Intermediate Level (6–10)

6. Calculate total revenue (selling price × quantity) ?

SELECT SUM(discounted_Selling_Price * quantity) AS total_revenue
FROM Zepto
WHERE out_of_stock = 'FALSE';

7. Show top 5 highest MRP products ?

SELECT DISTINCT Name , MRP
FROM Zepto
ORDER BY MRP DESC
LIMIT 5;

8. Get average discount percentage per category ?

SELECT category
, ROUND(AVG(Discount_Percent),3) AS AVG_Discount
FROM Zepto
GROUP BY category;

9. Show products with more than 30% discount ?

SELECT Name , discount_Percent
FROM Zepto
WHERE discount_Percent > 30;

10. Count number of out-of-stock items per category ?

SELECT category
, COUNT(*) AS out_of_stock_count
FROM Zepto
WHERE out_of_stock = 'TRUE'
GROUP BY category
ORDER BY out_of_stock_count DESC;

๐Ÿ”ต Advanced Level (11–15)

11. Max in Weight_In_Gms per Category ?

SELECT category
, Name
, Weight_In_Gms
FROM Zepto
WHERE Weight_In_Gms = (SELECT MAX(Weight_In_Gms) FROM Zepto)

12. List categories with more than 3 products ?

SELECT category
, COUNT() AS product_count
FROM Zepto
GROUP BY category
HAVING COUNT(
) > 3
ORDER BY product_count DESC;

13. Rank products by discount percentage (highest first) ?

SELECT Name
, discount_Percent
, RANK() OVER (ORDER BY discount_Percent DESC) AS rank_by_discount
FROM Zepto;

14. Find the product(s) with the maximum available quantity ?

SELECT Name
, Available_quantity
, Quantity
FROM Zepto
WHERE Available_quantity = (SELECT MAX(available_quantity) FROM Zepto)
ORDER BY Quantity DESC;

15. Group products into “High”, “Medium”, “Low” MRP buckets ?

SELECT Name
, MRP
, CASE
WHEN MRP >= 4000 THEN 'High'
WHEN MRP BETWEEN 2000 AND 3999 THEN 'Medium'
ELSE 'Low'
END AS mrp_category
FROM Zepto;

๐Ÿ“Š Excel Process (PivotTables & Static Dashboard)

✅ Excel Steps :

1️⃣ Data Cleaning:

๐Ÿ€„️ Verified column data types

๐Ÿ€„️ Removed blanks, duplicates

⏩ Created helper columns:

Discount Amount = mrp - discounted_Selling_Price

Total Revenue = discounted_Selling_Price * quantity

Price per Gram = discounted_Selling_Price / weight_In_Gms

MRP Category = IF(MRP>=4000, "High", IF(MRP>=2000, "Medium", "Low"))

2️⃣ PivotTable Metrics:

Revenue by Category

Top Selling Products by Quantity

Quantity by Product

Out of Stock Count by Category

Category Wise Product count and Quantity

Revenue by MRP Category (High, Medium, Low)

3️⃣ Charts & Visuals:

Stacked Bar Chart

Pie Chart

Stacked Column Chart

๐Ÿ’น Excel Dashboard

Image

๐Ÿ“ข Insights :

⏩ Premium categories (Cooking Essentials, Munchies) contribute the most to revenue.

⏩ High number of out-of-stock items observed in fast-moving categories.

⏩ 95%+ revenue generated from High-MRP products.

๐Ÿ“ˆ Power BI Dashboard Process (Interactive & Dynamic Reporting)

✅ Power BI Workflow :

๐Ÿชธ Data Modeling :

Applied data types, formatting.

Created DAX measures for:

๐Ÿ’ง Total Revenue

๐Ÿ’ง Avg Discount %

๐Ÿ’ง Out of Stock Count

๐Ÿ’งTop Price per Gram

⛓️‍๐Ÿ’ฅ Visuals Created :

๐ŸชญBar Chart : Total Revenue by Category

๐ŸชญPie Chart : Revenue Share by MRP Category

๐ŸชญCard KPIs : Total Revenue, Quantity Sold, Avg Discount, Out of Stock

๐ŸชญTable Visuals : Top Products by Revenue, Highest Price per Gram

๐ŸชญStacked Columns : Product Count vs Quantity Sold

⛓️‍๐Ÿ’ฅ Slicers/Filters:

๐ŸชญTotal Revenue

๐ŸชญTotal Quantity

๐ŸชญOut-of-Stock Status

๐ŸชญAverage of discount_Percent

๐Ÿ’น Power BI Dashboard

ImageImageImageImage

๐Ÿ“ข Key Business Insights from Dashboard

๐Ÿ† Top Revenue Categories | Cooking Essentials, Munchies, and Chocolates generate highest revenue

❗ Inventory Alert | Over 3,700 items are marked out of stock — indicating missed sales

๐Ÿ“‰ Discount Leverage | Categories with highest revenue also have heavy discounting — profitability risk

๐ŸงŠ High-Margin Products | Items like Saffron and Lip Balm generate ₹10,000+ per gram

๐Ÿ’ก Skewed Revenue | 95% of revenue comes from high MRP products, emphasizing reliance on premium pricing

๐ŸŒWorld Of Thoughts

  ๐ŸŒWorld Of Thoughts 1️⃣. Successful ๐ŸŽ— Men ๐Ÿ‘ฒ๐Ÿผ have only one thing is common, They lost their emotions ๐Ÿ’” at the early ๐Ÿ• stage of life, ...