Think of data modeling as brain of Power BI — without it, everything else is just decoration
When I first started using #PowerBI, I thought visuals & DAX were “main game.”
But soon I realized: If your data model is weak, nothing else will save your dashboard.
A Complete🧵
Think of it like this:
1) Visuals = House front
2) DAX = Electricity & plumbing
3) Data Model = Foundation
Without a strong foundation, everything else collapses.
☑️ What exactly is a Data Model?
It’s simply the way you organize & connect your data so Power BI can:
- Understand it
- Perform fast calculations
- Show correct insights
And this magic happens inside Model View of Power BI.
Here are the building blocks of a strong data model
1) Fact Table → Numbers & metrics (e.g., Sales, Revenue) 2) Dimension Table → Descriptions/details (e.g., Products, Dates, Customers) 3) Relationships → Connections between tables (usually 1 → many) 4) Primary Key → Unique ID (e.g., ProductID) 5) Foreign Key → The matching ID in another table (e.g., Sales[ProductID])
☑️ Where do Measures belong?
Always in the Fact Table, Because measures represent aggregated business events (e.g., Total Sales).
Dimensions are only there to categorize & filter those events (e.g., Sales by Product or City).
☑️ Filter Flow Types
1) Single (→) → Filter flows one way (Dimension → Fact), Default & Recommended
2) Both (↔) → Filter flows both ways, Use only in special scenarios
Interview Question
Q1). Why is Star Schema preferred in Power BI even though Snowflake saves space?.
Snowflake normalizes data more, which saves storage but increases query complexity (more joins).
Power BI is optimized for Star Schema:
Simple 1-to-many relationships
Faster DAX queries
Easier for business users to understand
In analytics, query performance > storage optimization, so Star Schema wins.
Q2). What would happen if your data model doesn’t have a Calendar (Date Dimension) table?
Without a proper Date table:
Time intelligence functions (YTD, MTD, DATESBETWEEN) won’t work correctly.
You can’t ensure continuous dates (missing days won’t show).
Business reporting like “Sales growth YoY” would break.
So a dedicated Date Dimension is critical for serious analytics.
Top #SQL Q&A Every Data & Business Analyst Must Master
Complete 🧵
Q) @Oracle SQL Question:
We have two tables:
1️⃣ employee_contract
base
commission
quota
accelerator
2️⃣ deals → All deals they made, with deal amounts.
We need to calculate:
If total deals < quota →
total_compensation = base salary + commission * total deals
If total deals ≥ quota →
total_compensation =
base salary
commission * quota (normal commission for sales up to quota)
commission * accelerator * (total deals - quota) (boosted commission on sales after quota)
Q2) @salesforce
Write a query to calculate average annual revenue per Salesforce customer in three market segments: SMB, Mid-Market, & Enterprise. Each customer is represented by a single contract. Format output to match the structure
▫️ #BackPropagation is an algorithm to train neural networks. It is the method of fine-tuning weights of a neural network based on error rate obtained in previous epoch (i.e., iteration)
A Complete 🧵
✅Backpropagation is an algorithm for supervised learning of artificial neural networks using #gradientdescent
Given an artificial neural network and an error function, method calculates gradient of error function with respect to neural network's weights using chain rule
▫️ #Padding is simply a process of adding layers of zeros to our input images
▫️ #Stride describes step size of kernel when you slide a filter over an input image
A Complete 🧵
▫️ Padding is simply a process of adding layers of zeros to our input images.
The purpose of padding is to preserve original size of an image when applying a #convolutional filter & enable filter to perform full convolutions on edge pixel
▫️ So to prevent this-
We will be using padding of size 2 (i.e. original image(5) – feature map(3)).
It is also known as zero padding because we are padding it with 0