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])
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