Business Intelligence & Data Analysis · Lab 01

Introduction to Business Intelligence & Power BI Desktop

Foundations of Business Intelligence, enterprise data workflows, Power BI ecosystem architecture, UI navigation, and building initial tabular & KPI visualizations.

1. Introduction to Business Intelligence (BI)

Modern commercial enterprises generate vast volumes of transactional data every single day. Organizations capture customer interactions, inventory shifts, logistics tracking, and point-of-sale receipts across diverse data stores—ranging from local Excel spreadsheets and CSV exports to relational databases (SQL Server, MySQL) and cloud-hosted REST APIs.

However, raw data in its unprocessed form does not directly inform leadership. The primary objective of Business Intelligence (BI) is to bridge the gap between raw data storage and strategic decision-making.

Output
+-----------------------+       +-----------------------+       +-------------------------+
|   Raw Data Sources    | ----> |    BI & Analytics     | ----> |   Actionable Insights   |
|  (Excel, SQL, APIs)   |       |   (Power BI Engine)   |       |  & Executive Decisions  |
+-----------------------+       +-----------------------+       +-------------------------+

The Business Scenario: A Motivating Case Study

Consider a growing retail enterprise managing thousands of sales records every month. At the end of the operating quarter, executive leadership asks five fundamental business questions:

  1. Top-Performing Products: Which individual products generate the highest sales volume?
  2. Temporal Trends: Which calendar month recorded peak revenue, and are sales trending upward or downward?
  3. Geographical Performance: Which territories or countries outperform other markets?
  4. Aggregate Revenue: What is the cumulative gross revenue for the period?
  5. Customer Behavior: How many unique customers made repeat purchases?

The answers to all five questions exist latent within the enterprise databases. However, attempting to answer them manually through static spreadsheets is slow, highly susceptible to human calculation error, and impractical at scale.

Enterprise BI tools such as Microsoft Power BI and Tableau automate data ingestion, modeling, and dynamic visualization, enabling organizations to answer executive questions in real time. In this laboratory series, we focus comprehensively on Microsoft Power BI.


2. Core Capabilities & Key Advantages of Power BI

Microsoft Power BI provides an end-to-end analytics pipeline. Its primary enterprise capabilities include:

2.1 Extensive Data Connectivity (200+ Connectors)

Power BI connects natively to more than 200 data sources without requiring custom ETL scripts. Regardless of whether data resides on-premises or in the cloud, native connectors handle extraction seamlessly:

Source CategorySupported TechnologiesTypical Use Case
Flat FilesExcel (.xlsx), CSV, Text, JSON, XMLAd-hoc exports, offline reporting
Relational DatabasesMicrosoft SQL Server, MySQL, PostgreSQL, OracleProduction transactional backends
Cloud & Data WarehousesAzure SQL, Snowflake, Google BigQuery, Amazon RedshiftEnterprise scale analytics
Online Services & APIsSharePoint, Salesforce, Google Analytics, Web REST endpointsMarketing & SaaS integration

2.2 Integrated Data Cleaning (Power Query ETL)

Real-world datasets are rarely analysis-ready upon arrival. The integrated Power Query engine allows analysts to perform extraction, transformation, and loading (ETL):

  • Imputing or filtering out missing and null values (null).
  • Detecting and removing duplicate transaction records.
  • Casting columns to strict data types (Currency, Integer, Datetime, String).
  • Splitting compound fields and unpivoting cross-tabulated tables.

2.3 Comprehensive Visualizations & Descriptive Statistics

Power BI includes a rich visual catalog (Bar/Column charts, Line graphs, Scatter plots, Matrix tables, Decomposition trees, and Geographical Maps). In addition to graphical rendering, the engine automatically computes essential descriptive statistics across dimensions:

  • Sum (∑xi\sum x_i)
  • Mean / Average (xˉ=1n∑xi\bar{x} = \frac{1}{n} \sum x_i)
  • Median (Middle value of sorted distribution)
  • Extrema (min⁡(x)\min(x), max⁡(x)\max(x))
  • Standard Deviation (σ=1n∑(xi−xˉ)2\sigma = \sqrt{\frac{1}{n} \sum (x_i - \bar{x})^2})

2.4 Interactive Reporting & Decision Support

Unlike static slides or PDF exports, Power BI reports are fully interactive. Selecting a specific product category immediately cross-filters every card, line chart, and geographic map on the canvas. Analysts and stakeholders interact directly with data to uncover root causes and guide capital allocation.


3. The Power BI Ecosystem Architecture

Power BI is not a single isolated executable. It consists of three complementary components designed for different stages of the analytics lifecycle:

Output
+-----------------------+        Publish         +-----------------------+
|   Power BI Desktop    | ---------------------> |   Power BI Service    |
|  (Developer / Windows)|                        |     (Cloud SaaS)      |
+-----------------------+                        +-----------------------+
            |                                                |
            | Local Authoring                                | Web & Mobile Sharing
            v                                                v
    [Model, Clean, Build]                        [Dashboards, Alerts, Teams]
                                                             |
                                                             v
                                                 +-----------------------+
                                                 |    Power BI Mobile    |
                                                 |     (iOS / Android)   |
                                                 +-----------------------+

3.1 Power BI Desktop

  • Platform: Windows desktop application (free installation).
  • Target User: Business Analysts, BI Developers, Data Engineers.
  • Functionality: Connecting to raw data sources, building ETL queries in Power Query, establishing star-schema data models, writing DAX expressions, and designing multi-page reports. This will serve as our primary software workbench throughout the course.

3.2 Power BI Service

  • Platform: Cloud-hosted Software-as-a-Service (SaaS) on Microsoft Azure.
  • Target User: Executives, Team Leads, Department Stakeholders.
  • Functionality: Publishing reports from Desktop to shared workspaces, configuring scheduled automated data refreshes, creating high-level management dashboards, and controlling role-based access security (RLS).

3.3 Power BI Mobile

  • Platform: iOS and Android native applications.
  • Target User: Field managers and on-the-go decision-makers.
  • Functionality: Securely viewing published reports, receiving push notifications when KPI thresholds are breached, and interacting with responsive touch-optimized dashboard layouts.

4. Hands-on Walkthrough: Exploring the Desktop UI

4.1 Launching Power BI Desktop & Canvas Setup

  1. Launch Power BI Desktop from your workstation.
  2. In the startup splash screen, select Blank report to initialize a new canvas.

The user interface is organized into three primary operational zones:

  • Ribbon (Top): Hosts command tabs (Home, Insert, Modeling, View, Optimize) for data ingestion, visual formatting, and calculation tools.
  • Report Canvas (Center): The primary design stage where visuals are positioned, resized, and arranged. At the bottom edge, tabs allow analysts to create (+) and manage multiple report pages.
  • Side Panes (Right): Houses the Visualizations Pane (visual picker and field formatting wells) and the Data Pane (accessible tables and schema columns).

4.2 The Three Core Views (Left Navigation Rail)

Located on the far-left edge of the screen is the primary view selector rail:

Output
+---------+
| [Chart] |  1. Report View  --> Design layout, canvas visuals & storytelling
+---------+
| [Table] |  2. Table View   --> Raw tabular inspection, column data types & filters
+---------+
| [Relat] |  3. Model View   --> Schema architecture, table relationships & keys
+---------+
  1. Report View: The default authoring environment where visualizations, KPI cards, slicers, and interactive charts are assembled for end users.
  2. Table View (Data View): Displays the underlying tables in row-column grid format. This view is used to verify loaded records, confirm data types, and review calculated columns.
  3. Model View: Displays the Entity-Relationship Diagram (ERD). In complex enterprise schemas, this view illustrates how dimension tables connect to central fact tables via primary and foreign key relationships (1:∞1:\infty).

5. Connecting to Data: Load vs. Transform Data

5.1 Ingesting a Flat File (CSV / Text)

To demonstrate ingestion, we utilize a standardized enterprise retail dataset (Superstore_Sales.csv), containing transaction IDs, order dates, ship dates, customer demographics, country locations, product details, and revenue figures.

  1. Navigate to the Home tab in the top ribbon.
  2. Click Get Data →\rightarrow select Text/CSV (or click the quick shortcut icon on the blank canvas).
  3. Browse and select your dataset file (Superstore_Sales.csv), then click Open.

5.2 The Critical Decision Dialog: Load vs. Transform Data

Power BI displays a data preview window containing the first 200 rows of the file. At the bottom right of the dialog, two essential action buttons appear:

Output
+-------------------------------------------------------------+
|  Superstore_Sales.csv (Preview)                             |
|  [OrderID]   [Product]       [Country]         [Sales]      |
|  CA-1001     Wireless Mouse  United States     25.99        |
|  CA-1002     Ergo Keyboard   United Kingdom    89.50        |
|  CA-1003     USB-C Hub       Germany           45.00        |
+-------------------------------------------------------------+
|                     [ Load ]       [ Transform Data ]       |
+-------------------------------------------------------------+

Crucial Concept: When to choose which button?

  • Choose Load: When the source data has already been cleansed, normalized, properly typed, and contains no missing or corrupted headers. Clicking Load bypasses the query editor and ingests the data directly into the analytical memory model.
  • Choose Transform Data: When the dataset requires cleaning, filtering, null handling, renaming columns, changing data types, or removing duplicate records. Clicking Transform Data launches the Power Query Editor. (We will master Power Query operations in Lab 03).

For this introductory lab, click Load. Once ingestion completes, the empty canvas placeholders disappear, and the Superstore_Sales table appears in the Data Pane on the right side.


6. Building Your First Visualizations

6.1 Creating a Multi-Column Table Visual

A table visual organizes multi-dimensional data into structured rows and columns.

  1. In the Visualizations Pane on the right, click the Table visual icon (a small grid icon).
  2. An empty table container will appear on the Report Canvas. Resize it using the corner bounding handles.
  3. Open the Data Pane and expand the Superstore_Sales table.
  4. Check the boxes next to the following three fields (or drag them into the Columns well):
    • Product
    • Country
    • Sales

Power BI automatically renders the data in a sorted table and calculates the sum of sales for each product and country combination.

Output
+-----------------------------------------------------+
| Product              Country            Sales       |
+-----------------------------------------------------+
| Ergonomic Keyboard   Germany            $  4,250.00 |
| Mechanical Keyboard  United Kingdom     $  6,820.00 |
| UltraWide Monitor    United States      $ 18,400.00 |
| Wireless Mouse       United States      $  2,110.00 |
+-----------------------------------------------------+
| Total                                   $ 31,580.00 |
+-----------------------------------------------------+

6.2 Creating an Executive KPI Card (Single Value Metric)

Executives often require instantaneous visibility into overarching business benchmarks—such as total quarterly revenue—without reading through hundreds of individual line items. In Power BI, this is presented using the Card visual.

  1. Click on an empty area of the canvas to deselect the table.
  2. In the Visualizations Pane, click the Card visual icon (represented by the badge 123).
  3. Drag the Sales field from the Data Pane into the Fields well of the Card.
  4. By default, Power BI detects numeric fields and applies the SUM aggregation.
  5. The card immediately displays the total cumulative revenue (e.g., $2.30M).
Output
+--------------------------------+
|         TOTAL REVENUE          |
|                                |
|           $2.30M               |
|                                |
+--------------------------------+

7. In-Class Interactive Challenge

To reinforce the mechanics of field binding and aggregations, complete the following challenge:

Challenge Statement

Executive Prompt: "The board requires a real-time count of our total active customer base displayed alongside our total sales figure."

Step-by-Step Solution:

  1. Deselect any active visual on the canvas.
  2. Insert a new Card visual next to the Total Sales card.
  3. Drag the Customer ID (or Customer Name) field into the card's Fields well.
  4. Since Customer ID is categorical (text), Power BI will default to displaying the First or Last alphabetical value.
  5. In the Fields well, click the downward arrow next to Customer ID and change the aggregation from First to Count (Distinct).
Output
+--------------------------------+
|        UNIQUE CUSTOMERS        |
|                                |
|             793                |
|                                |
+--------------------------------+

Analytical Difference:

  • Count yields the total number of order rows (which includes duplicate transactions from repeat customers).
  • Count (Distinct) calculates the precise cardinality of unique individual buyers.

8. Summary & Next Lab Preview

In this lab, we established the foundational architecture of enterprise business intelligence:

  • Defined the conversion of Raw Data into Actionable Insights.
  • Analyzed the Power BI Ecosystem across Desktop, Service, and Mobile.
  • Navigated the primary authoring environments: Report View, Table View, and Model View.
  • Ingested tabular data and differentiated between Load and Transform Data.
  • Built our first analytical report comprising a Table Visual and high-impact KPI Cards.

What to Expect in Lab 02:

In Lab 02, we will elevate report aesthetics and interactivity:

  • Implementing Bar and Column charts to analyze category distributions.
  • Applying color theory, custom hex themes, and typography formatting.
  • Integrating Slicers (Date pickers and Regional dropdowns) for dynamic cross-filtering.