Power BI Fundamentals
From raw data to an interactive analytical report: understand the engine, storage model, data flow, semantic layer and real-time capabilities behind Power BI.
01 · Power BI vs Excel
The important difference is not simply "Power BI has better charts". Power BI is designed around a semantic model and analytical query engine.
Cell-oriented analysis
Calculations are often organized around cells, formulas, worksheets, tables and workbook operations.
Model-oriented analysis
Tables, relationships, measures, filters and a semantic model form the foundation of interactive analytics.
Columnar analytical engine
Import models can use compressed in-memory columnar storage for fast analytical operations.
02 · Why Power BI Can Be Fast
SQL · Excel · CSV
Transform
Columnar Storage
Query
Columnar Compression — Visual Idea
Repeated values and encoding can significantly reduce model storage requirements.
03 · RAM + VertiPaq + Columnar Compression
RAM
Imported data can reside in memory, reducing repeated disk access during interactive analytical queries.
More available memory can allow larger models and more concurrent workloads, subject to capacity and model constraints.
Columnar Storage
Values are organized by column rather than treating each complete row as the primary analytical unit.
This is particularly effective for aggregation-heavy workloads.
Compression
Encoding and compression reduce the physical size of model data.
Low-cardinality and repetitive columns can compress especially well.
04 · Import vs DirectQuery vs Real-Time
| Mode | Data location | Query behavior | Typical use |
|---|---|---|---|
| Import | Power BI model | Queries the imported model | Fast interactive BI |
| DirectQuery | Underlying source | Queries are sent to source | Large / frequently changing sources |
| Composite | Mixed | Import + DirectQuery | Hybrid analytical scenarios |
| Real-time / streaming scenarios | Operational/event data | Designed for low-latency data scenarios | IoT, monitoring, operational dashboards |
05 · Power BI End-to-End Architecture
SQL · Excel · API
ETL
Tables + Relationships
Measures
Visuals
06 · Star Schema
CustomerID
Region
Segment
DateID
CustomerID
ProductID
Quantity
Revenue
ProductID
Category
Brand
DateID
Year
Month
Quarter
Charts & DAX
A chart should answer a question. Select the visual based on whether the task is comparison, trend analysis, distribution, relationship, composition, geography or KPI monitoring.
01 · Chart Selection Map
Categories
Time
02 · Visual Encyclopedia
Bar / Column Chart
Use: categorical comparison, ranking, top-N analysis.
Line Chart
Use: time series, trend and ordered data.
Pie / Donut
Use: simple part-to-whole composition. Avoid many slices.
Scatter Plot
Use: relationship, correlation and outlier analysis.
Waterfall
Use: explain how positive and negative changes produce a final value.
Funnel
Use: stage-based conversion processes.
Histogram
Use: distribution, skewness and frequency.
Treemap
Use: hierarchical part-to-whole relationships.
03 · Chart Selection Table
| Analytical Question | Recommended Visual | Reason |
|---|---|---|
| Which category is highest? | Bar / Column | Accurate magnitude comparison. |
| How has revenue changed? | Line | Shows ordered temporal movement. |
| What percentage does each segment contribute? | Donut / Stacked Bar | Part-to-whole relationship. |
| Are advertising and revenue related? | Scatter | Shows numerical relationship. |
| How are transaction values distributed? | Histogram | Shows frequency distribution. |
| Where are unusual observations? | Box Plot | Shows spread and outliers. |
| How did profit move from start to finish? | Waterfall | Shows incremental contributions. |
| Where are sales concentrated geographically? | Map | Uses spatial encoding. |
| How many leads survive each stage? | Funnel | Shows process conversion. |
04 · DAX
DAX — Data Analysis Expressions — is the expression language used to create calculations in Power BI semantic models.
Basic Aggregations
Total Sales =
SUM(Sales[SalesAmount])
Total Cost =
SUM(Sales[Cost])
Average Sales =
AVERAGE(Sales[SalesAmount])
Transaction Count =
COUNTROWS(Sales)
Customers =
DISTINCTCOUNT(Customer[CustomerID])
DIVIDE
Profit Margin =
DIVIDE(
[Profit],
[Total Sales],
0
)
IF
Sales Status =
IF(
[Total Sales] >= 1000000,
"High",
"Low"
)
SWITCH
Performance =
SWITCH(
TRUE(),
[Profit Margin] >= 0.30, "Excellent",
[Profit Margin] >= 0.15, "Good",
[Profit Margin] >= 0.05, "Average",
"Poor"
)
CALCULATE
India Sales =
CALCULATE(
[Total Sales],
Customer[Country] = "India"
)
CALCULATE().
05 · Row Context vs Filter Context
Row Context
Think: "Which row am I currently evaluating?"
Line Total =
Sales[Quantity]
*
Sales[UnitPrice]
Common in calculated columns and iterator functions.
Filter Context
Think: "Which rows are currently visible to this calculation?"
Total Sales =
SUM(Sales[SalesAmount])
Created by slicers, filters, visual selections and DAX expressions.
Iterator Functions
SUMX()
AVERAGEX()
MINX()
MAXX()
COUNTX()
The X functions iterate through a table and evaluate an
expression for each row before aggregating the results.
Filter Functions
FILTER()
ALL()
REMOVEFILTERS()
ALLEXCEPT()
KEEPFILTERS()
VALUES()
Time Intelligence
Sales YTD =
TOTALYTD(
[Total Sales],
'Date'[Date]
)
Previous Year Sales =
CALCULATE(
[Total Sales],
SAMEPERIODLASTYEAR(
'Date'[Date]
)
)
YoY Growth =
[Total Sales] - [Previous Year Sales]
06 · DAX Function Map
Aggregation
SUM
AVERAGE
MIN / MAX
COUNTROWS
Filter
CALCULATE
FILTER
ALL
REMOVEFILTERS
Iterator
SUMX
AVERAGEX
MAXX
MINX
Logical
IF
SWITCH
AND
OR
Time Intelligence
TOTALYTD
DATEADD
SAMEPERIODLASTYEAR
DATESYTD
Relationship
RELATED
RELATEDTABLE
USERELATIONSHIP
Power Query & Data Architecture
Power Query is the preparation layer. Data architecture determines how raw data becomes trusted, reusable and business-ready information.
01 · ETL Pipeline to Power BI
SQL · Excel · CSV · API
Power Query
Semantic Model
Relationships + DAX
Reports
What happens at each stage?
| Stage | Typical operations | Output |
|---|---|---|
| Extract | Connect to databases, files, APIs and services. | Source data |
| Transform | Clean, filter, merge, append, reshape and type-convert. | Prepared data |
| Load | Load into analytical model. | Model tables |
| Model | Relationships, dimensions, facts and measures. | Semantic model |
| Visualize | Charts, slicers, KPIs and reports. | Business insight |
02 · Power Query Transformation Pipeline
Common transformations
Filter
Remove rows that do not satisfy business conditions.
Remove Duplicates
Prevent repeated records from corrupting analysis.
Merge
Join two tables using matching keys.
Append
Stack rows from similar tables.
Pivot / Unpivot
Reshape data between wide and long structures.
Data Types
Explicitly define text, number, date and other types.
03 · Power Query M
Power Query uses the M language internally to describe transformations. The graphical interface generates M expressions, while understanding basic M helps when debugging and creating reusable transformations.
let
Source =
Excel.Workbook(
File.Contents("sales.xlsx")
),
Data =
Source{
[Item="Sales",Kind="Table"]
}[Data],
ChangedType =
Table.TransformColumnTypes(
Data,
{
{"Amount", type number},
{"Date", type date}
}
)
in
ChangedType
04 · Medallion Architecture
A progressive data refinement pattern: preserve the source, improve data quality, then expose business-ready information.
BRONZE
RAW DATA · SOURCE-FAITHFUL · INGESTION · HISTORY
SILVER
CLEANED · VALIDATED · STANDARDIZED · INTEGRATED
GOLD
BUSINESS LOGIC · KPIs · AGGREGATIONS · ANALYTICS
05 · Bronze → Silver → Gold Use Case
Raw Sales Feed
Customer IDs may contain inconsistent formatting, dates may arrive in different formats and duplicate records may exist.
Goal: preserve the source and maintain traceability.
Trusted Sales Data
Customer identifiers standardized, invalid records handled, dates converted and duplicates removed.
Goal: create reliable integrated data.
Business Analytics
Monthly revenue, regional sales, profit margin and product KPIs are prepared for analytical consumption.
Goal: answer business questions efficiently.
06 · Full Modern Data Flow
CRM
IoT
Files
Raw
Trusted
Business
Model
07 · Power Query or DAX?
| Requirement | Prefer | Why |
|---|---|---|
| Remove duplicate rows | Power Query | Data preparation problem. |
| Fix data types | Power Query | Data quality / transformation. |
| Merge source tables | Power Query | Data integration. |
| Create reusable business KPI | DAX Measure | Should respond to report filters. |
| Year-over-year analysis | DAX | Dynamic analytical calculation. |
| Clean inconsistent category names | Power Query | Preparation task. |
08 · Data Quality
Completeness
Are required values present?
Validity
Are values within acceptable rules?
Uniqueness
Are records duplicated?
Consistency
Are definitions and formats aligned?
Accuracy
Does the data represent reality?
Timeliness
Is the information sufficiently current?
Medallion Architecture
A layered data architecture that progressively transforms raw source data into clean, validated and business-ready information through Bronze, Silver and Gold layers.
01 · What is Medallion Architecture?
BRONZE — RAW
SOURCE DATA · INGESTION · MINIMAL TRANSFORMATION
SILVER — CLEANED
VALIDATED · STANDARDIZED · DEDUPLICATED · INTEGRATED
GOLD — BUSINESS READY
BUSINESS LOGIC · KPIs · AGGREGATIONS · ANALYTICS
02 · The Three Layers
Bronze — Raw Data
The Bronze layer stores data close to its original source form.
Typical sources include ERP systems, CRM systems, APIs, IoT streams, CSV files, Excel files and operational databases.
Primary objective: preserve source information and maintain traceability.
Silver — Trusted Data
The Silver layer contains cleaned, standardized and validated data.
Typical operations include type correction, deduplication, standardization, validation and integration.
Primary objective: create reliable reusable data.
Gold — Business Data
The Gold layer represents information in a form optimized for business consumption and analytical workloads.
Business rules, KPIs, aggregations and analytical structures are typically introduced here.
Primary objective: deliver business-ready information.
03 · Technical Data Flow
CRM
Files
APIs
IoT
Capture
Preserve
Raw
Clean
Validate
Trusted
KPI
Aggregation
Business Ready
Analytics
04 · Bronze Layer — Technical Details
Source Preservation
Bronze data should generally retain the structure and values received from the source rather than immediately applying extensive business logic.
Ingestion Metadata
Useful metadata can include ingestion timestamp, source system, batch identifier, file name, ingestion status and processing date.
Traceability
Keeping source-faithful data makes it easier to investigate where a Silver or Gold value originated.
Historical Preservation
Bronze can provide a historical record of what arrived from upstream systems, depending on the retention strategy.
Example Bronze Record
{
"customer_id": "C001",
"customer_name": "ABC Ltd",
"region": "south ",
"sales_amount": "125000",
"transaction_date": "15/08/2026",
"source": "ERP",
"ingestion_timestamp": "2026-08-16 02:15:10"
}
05 · Silver Layer — Technical Details
Data Type Standardization
Convert dates, numbers, currencies and categorical fields into consistent representations.
Data Quality Rules
Check mandatory fields, valid ranges, duplicate keys and invalid relationships.
Deduplication
Identify records that represent the same business event and apply an explicit deduplication strategy.
Integration
Combine data from multiple sources while resolving naming, key and format inconsistencies.
Example Transformation
Raw:
Region = "south "
Sales = "125000"
Date = "15/08/2026"
↓
Silver:
Region = "South"
Sales = 125000
Date = 2026-08-15
06 · Gold Layer — Technical Details
The Gold layer is where the cleaned data becomes meaningful for a specific business domain or analytical workload.
Business Rules
Apply approved business definitions such as revenue, profit, margin, customer status or service-level measures.
Aggregations
Prepare summaries such as daily, monthly, regional or product-level metrics where appropriate.
Dimensional Structures
Gold data can be organized into analytical fact and dimension structures for BI consumption.
KPI Layer
Expose consistent definitions for business metrics so different reports do not independently calculate conflicting versions of the same KPI.
07 · Example: Sales Analytics
Raw Transactions
Source-faithful
Clean + Validated
Revenue
Profit
Margin
Dashboard
Transformation Example
| Layer | Example Data | Action |
|---|---|---|
| Bronze | "south " | Preserve source value. |
| Silver | "South" | Standardize category. |
| Silver | Sales = "125000" | Convert text to numeric. |
| Silver | Duplicate transaction | Apply deduplication rule. |
| Gold | Monthly Revenue | Apply business aggregation. |
| Gold | Profit Margin | Apply approved KPI definition. |
08 · Data Quality Across the Layers
"What arrived?"
"Is it valid?"
"Is it meaningful?"
Completeness
Required information exists.
Validity
Values satisfy defined rules.
Consistency
Definitions and formats agree across sources.
Uniqueness
Duplicate business records are controlled.
Accuracy
Values correctly represent the intended business event.
Timeliness
Data arrives within the required business window.
09 · Incremental Processing
For large datasets, processing the entire history every time may be inefficient. Incremental processing focuses on newly arrived or changed data according to an appropriate partitioning or change-detection strategy.
Already Processed
Current Period
10 · Data Lineage
Data lineage answers the question: "Where did this number come from?"
A well-designed pipeline allows analysts to trace a business metric back through transformations toward its source.
11 · Medallion Architecture vs Traditional ETL
| Concept | Traditional ETL View | Medallion View |
|---|---|---|
| Raw data | Often transformed during ETL | Explicit Bronze layer |
| Clean data | Transformation output | Explicit Silver layer |
| Business data | Warehouse / reporting layer | Explicit Gold layer |
| Traceability | Depends on implementation | Layer separation supports lineage |
| Reuse | Can vary by implementation | Silver data can serve multiple downstream use cases |
12 · Medallion Architecture + Power BI
Dashboards
KPIs
13 · Technical Checklist
Bronze
✓ Preserve source data
✓ Record ingestion metadata
✓ Maintain traceability
✓ Define retention strategy
Silver
✓ Standardize data types
✓ Handle nulls
✓ Remove duplicates
✓ Validate business rules
✓ Integrate sources
Gold
✓ Define business logic
✓ Create reusable KPIs
✓ Build analytical structures
✓ Optimize for consumption
BRONZE = Preserve → SILVER = Trust → GOLD = Analyze
Time-Series Forecasting
Forecasting uses historical temporal structure to estimate future values. ARIMA models temporal dependence, SARIMA adds seasonality, and SARIMAX adds external explanatory variables.
01 · Anatomy of a Time Series
Trend
Long-term direction of the series.
Seasonality
Repeating pattern at a known frequency.
Autocorrelation
Dependence between observations at different lags.
Noise
Random variation not explained by the model.
Exogenous Variable
External factor influencing the target.
Stationarity
Relatively stable statistical properties over time.
02 · ARIMA → SARIMA → SARIMAX
ARIMA
Autoregression + differencing + moving average.
SARIMA
ARIMA + explicit seasonal structure.
SARIMAX
Seasonality + external explanatory variables.
03 · ARIMA
Autoregressive Order
Number of previous observations used to model the current value.
Differencing
Number of differences applied to make the series more stationary.
Moving Average Order
Number of previous forecast errors incorporated into the model.
AR — Autoregressive component
I — Integrated component
MA — Moving Average component
04 · SARIMA
SARIMA extends ARIMA by explicitly modelling seasonal autoregressive, seasonal differencing and seasonal moving-average components.
(p,d,q)
P
D
Q
Seasonal Period Examples
| Data frequency | Possible seasonal period | Interpretation |
|---|---|---|
| Monthly | 12 | Annual seasonality |
| Quarterly | 4 | Annual seasonality |
| Daily | 7 | Weekly seasonality |
| Hourly | 24 | Daily seasonality |
05 · SARIMAX
Demand
The additional variables are called exogenous variables or regressors. Their future values generally need to be known or forecast as well when producing future forecasts.
06 · ARIMA vs SARIMA vs SARIMAX
| Capability | ARIMA | SARIMA | SARIMAX |
|---|---|---|---|
| Autoregression | Yes | Yes | Yes |
| Differencing | Yes | Yes | Yes |
| Moving Average | Yes | Yes | Yes |
| Seasonality | Not explicitly | Yes | Yes |
| External variables | No | No | Yes |
07 · Stationarity
Stationarity means that important statistical properties of the modeled series remain relatively stable over time. Classical ARIMA-family models typically work with a stationary series after appropriate transformations.
Visual Inspection
Look for changing mean, changing variance and persistent trend.
Rolling Statistics
Compare rolling mean and variance across time.
ADF Test
Augmented Dickey-Fuller test provides a statistical test related to a unit root and stationarity.
08 · Differencing
100 → 108 → 115 → 121
8 → 7 → 6
Series
09 · ACF & PACF
ACF — Autocorrelation Function
Measures correlation between observations and their lagged versions.
Often useful when reasoning about MA-type structure.
PACF — Partial Autocorrelation
Measures correlation at a particular lag after accounting for shorter lags.
Often useful when reasoning about AR-type structure.
10 · Forecasting Workflow
Collect
Explore
Check Stationarity
Difference
ACF / PACF
Train
Validate
Forecast
11 · Time-Series Train/Test Split
Past observations
Future-like observations
12 · Forecast Accuracy
MAE
Easy to interpret because it remains in the target variable's units.
MSE
Large errors receive disproportionately higher penalty.
RMSE
Returns error to approximately the same units as the target.
13 · Practical Forecasting Example
Trend
s = 12
External Variable
14 · Model Selection Cheat Sheet
Use ARIMA
When the important structure is primarily non-seasonal temporal dependence.
Use SARIMA
When repeating seasonal behavior is an important component of the series.
Use SARIMAX
When seasonal behavior exists and external variables contain useful predictive information.
15 · Student Forecasting Checklist
✓ Verify timestamp frequency
✓ Detect missing timestamps
✓ Check duplicate observations
✓ Plot the series
✓ Identify trend
✓ Identify seasonality
✓ Test stationarity
✓ Consider differencing
✓ Inspect ACF / PACF
✓ Train candidate models
✓ Compare with baseline
✓ Evaluate residuals