Power BI & Data Analytics Workshop
Technical reference notes · Power BI · DAX · Power Query · Data Architecture · Forecasting
Documented by Girisha Malni N, Vishalini S, Syed Ameen G, Osho V
Content of Workshop Organized by Mrs. Sahebzathi, AP-III, CSE, VCET, Madurai
Student Reference

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.

Spreadsheet
Excel

Cell-oriented analysis

Calculations are often organized around cells, formulas, worksheets, tables and workbook operations.

Business Intelligence
Power BI

Model-oriented analysis

Tables, relationships, measures, filters and a semantic model form the foundation of interactive analytics.

Core advantage
VertiPaq

Columnar analytical engine

Import models can use compressed in-memory columnar storage for fast analytical operations.

02 · Why Power BI Can Be Fast

The basic performance idea
Data
SQL · Excel · CSV
→
Power Query
Transform
→
VertiPaq
Columnar Storage
→
DAX
Query
→
Visual

Columnar Compression — Visual Idea

Raw Row-Oriented Data
Customer
Region
Sales
101
South
500
102
South
700
103
South
400
104
North
900
→
Column-Oriented Representation
Region South · South · South · North
Encoding South=1 · North=2
Sales 500 · 700 · 400 · 900

Repeated values and encoding can significantly reduce model storage requirements.

Key idea Columnar engines are optimized for analytical workloads where queries often scan selected columns and perform aggregations over many rows.

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.

Important misconception Power BI is not automatically faster than Excel for every task. Its major advantage appears when working with analytical models, relationships, aggregations, filtering and interactive reporting.

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

Data Sources
SQL · Excel · API
→
Power Query
ETL
→
Semantic Model
Tables + Relationships
→
DAX
Measures
→
Reports
Visuals

06 · Star Schema

Dim Customer

CustomerID
Region
Segment
→
FACT SALES

DateID
CustomerID
ProductID
Quantity
Revenue
←
Dim Product

ProductID
Category
Brand

Dim Date

DateID
Year
Month
Quarter
→
FACT SALES
Why star schema? Dimensions describe business entities. Fact tables record measurable business events. Separating these roles generally produces cleaner relationships and more predictable analytical behavior.

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

What are you asking?
→
Compare
Categories
→
Bar / Column

Change over
Time
→
Line
→
Forecast / Trend

Relationship?
→
Scatter
→
Correlation / Pattern

Part of Total?
→
Stacked Bar / Treemap

02 · Visual Encyclopedia

Bar / Column Chart

Revenue by Region
North
South
East
West

Use: categorical comparison, ranking, top-N analysis.

Line Chart

Monthly Revenue

Use: time series, trend and ordered data.

Pie / Donut

Revenue Mix

Use: simple part-to-whole composition. Avoid many slices.

Scatter Plot

Advertising vs Revenue

Use: relationship, correlation and outlier analysis.

Waterfall

Profit Bridge
Start
Cost
Sales
End

Use: explain how positive and negative changes produce a final value.

Funnel

Sales Pipeline
1000 Leads
650 Qualified
280 Proposals
100 Won

Use: stage-based conversion processes.

Histogram

Transaction Distribution

Use: distribution, skewness and frequency.

Treemap

Product Contribution
Product A
Product B
Product C
Product D

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 is fundamental It evaluates an expression in a modified filter context. Many advanced DAX calculations are built by controlling filter context through 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

EXTRACT
SQL · Excel · CSV · API
→
TRANSFORM
Power Query
→
LOAD
Semantic Model
→
MODEL
Relationships + DAX
→
CONSUME
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

Source
→
Headers
→
Data Types
→
Clean
→
Merge / Append
→
Validate
→
Load

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

Bronze

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.

Silver

Trusted Sales Data

Customer identifiers standardized, invalid records handled, dates converted and duplicates removed.

Goal: create reliable integrated data.

Gold

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

ERP
CRM
IoT
Files
→
BRONZE
Raw
→
SILVER
Trusted
→
GOLD
Business
→
Semantic
Model
→
Power BI

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?

Core idea Do not treat raw data and business-ready data as the same thing. Medallion Architecture separates data according to its level of refinement: Bronze → Silver → Gold.

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

Layer 1

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.

Layer 2

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.

Layer 3

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

ERP
CRM
Files
APIs
IoT
→
INGESTION

Capture
Preserve
→
BRONZE

Raw
→
TRANSFORMATION

Clean
Validate
→
SILVER

Trusted
→
BUSINESS LOGIC

KPI
Aggregation
→
GOLD

Business Ready
→
Power BI

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"
}
Bronze principle Avoid destroying useful source information too early. Transformation should not make the original data impossible to audit or reproduce.

05 · Silver Layer — Technical Details

Raw Data
→
Data Types
→
Null Handling
→
Deduplication
→
Standardization
→
Validation
→
Trusted Data

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

ERP Sales

Raw Transactions
→
BRONZE

Source-faithful
→
SILVER

Clean + Validated
→
GOLD

Revenue
Profit
Margin
→
Power BI

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

BRONZE

"What arrived?"
→
SILVER

"Is it valid?"
→
GOLD

"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.

Historical Data

Already Processed
+
New / Changed Data

Current Period
→
Updated Dataset
Why it matters Incremental processing can reduce refresh time and unnecessary reprocessing when the dataset is large and only a relatively small portion changes between refreshes.

10 · Data Lineage

Source System
→
Bronze
→
Silver
→
Gold
→
Semantic Model
→
Report

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

Operational Sources
→
Bronze
→
Silver
→
Gold
→
Power BI Semantic Model
→
Reports
Dashboards
KPIs
Workshop takeaway Power BI is the analytical consumption layer; Medallion Architecture describes how data can be progressively refined before it reaches that analytical layer. They solve different but complementary problems.

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

Remember the progression Raw data is not automatically trusted data, and trusted data is not automatically business-ready information.

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

Forecast Historical observations

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

(p,d,q)

Autoregression + differencing + moving average.

→

SARIMA

(p,d,q)(P,D,Q)s

ARIMA + explicit seasonal structure.

→

SARIMAX

SARIMA + X

Seasonality + external explanatory variables.

03 · ARIMA

p

Autoregressive Order

Number of previous observations used to model the current value.

d

Differencing

Number of differences applied to make the series more stationary.

q

Moving Average Order

Number of previous forecast errors incorporated into the model.

ARIMA(p,d,q)

AR — Autoregressive component

yt = c + φ1yt-1 + φ2yt-2 + εt

I — Integrated component

Δyt = yt − yt-1

MA — Moving Average component

yt = μ + εt + θ1εt-1

04 · SARIMA

SARIMA extends ARIMA by explicitly modelling seasonal autoregressive, seasonal differencing and seasonal moving-average components.

ARIMA
(p,d,q)
+
Seasonal AR
P
+
Seasonal Difference
D
+
Seasonal MA
Q
→
SARIMA
SARIMA(p,d,q)(P,D,Q)s

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

Historical
Demand
+
Temperature
+
Holiday
+
Promotion
→
SARIMAX
→
Forecast

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

Original Series

100 → 108 → 115 → 121
→
First Difference

8 → 7 → 6
→
More Stable

Series

09 · ACF & PACF

ACF — Autocorrelation Function

Measures correlation between observations and their lagged versions.

Lag 1
Lag 2
Lag 3
Lag 4
Lag 5

Often useful when reasoning about MA-type structure.

PACF — Partial Autocorrelation

Measures correlation at a particular lag after accounting for shorter lags.

Lag 1
Lag 2
Lag 3
Lag 4
Lag 5

Often useful when reasoning about AR-type structure.

10 · Forecasting Workflow

1
Collect
→
2
Explore
→
3
Check Stationarity
→
4
Difference
→
5
ACF / PACF
→
6
Train
→
7
Validate
→
8
Forecast

11 · Time-Series Train/Test Split

TRAINING DATA
Past observations
TEST
Future-like observations
Do not randomly shuffle a conventional time series. A random split can allow future observations to influence training and produce an unrealistically optimistic evaluation.

12 · Forecast Accuracy

MAE

MAE = mean(|actual − forecast|)

Easy to interpret because it remains in the target variable's units.

MSE

MSE = mean(error²)

Large errors receive disproportionately higher penalty.

RMSE

RMSE = √MSE

Returns error to approximately the same units as the target.

13 · Practical Forecasting Example

Monthly Sales

Trend
+
Yearly Seasonality

s = 12
+
Promotion

External Variable
→
SARIMAX
→
Future Sales

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

Most important lesson A more complicated forecasting model is not automatically better. Compare against a simple baseline, validate chronologically and measure whether additional model complexity actually improves predictive performance.