Microsoft Power BI Guide — Part 2(Getting Familiar with Power BI through a Mini Project)

Sandaruwan Herath
Data Science and Machine Learning
5 min readJun 7, 2024

Before diving into complex projects, it’s crucial to become familiar with the Power BI interface and understand its core functionalities. This guide will walk you through a mini-project to help you get started quickly and efficiently.

Understanding the Power BI Interface

Power BI is structured to streamline the process of data analysis and visualization. Each project typically involves three main tasks: transforming data, creating a model, and visualizing data. Power BI provides distinct sections for each of these tasks within its interface:

Transforming Data:

Power Query Window

· Use the Power Query Editor to clean and prepare your data.

· This includes tasks such as renaming columns, merging tables, and removing unnecessary data.

Creating the Model:

Model View

· Establish relationships between different tables.

· Define hierarchies and measures to support complex analyses.

Visualizing Data:

Report View

· Build interactive reports and dashboards.

· Use various visualization tools to represent your data effectively.

Starting Your First Mini Project

To get hands-on experience with Power BI, we will begin with a simple project. This project will not cover everything in detail but will give you a good understanding of how Power BI works and what it can do.

Step 1: Setting Up Power BI

Download and Install Power BI Desktop:

· Visit the Power BI website, download the desktop application, and install it on your computer.

· Configure Regional Settings:

o Go to File > Options and Settings > Options > CURRENT FILE > Regional Settings.

· Set the locale to “English (United States)” to ensure consistency in how numbers, dates, and other data are interpreted.

Configure Regional Settings

Step 2: Connecting to Data Sources

Get Data:

Importing Data

· Click on Get data in the lower part of the interface.

· Select your data source, such as an Excel file, and navigate to the folder where your files are located.

Load Data:

Loading Data

· After selecting your data file (e.g., gdp_data.xlsx), you will see a preview of the data.

· Check the data and click on Transform Data to open the Power Query Editor.

Step 3: Transforming Data

Transform Data using Power Query

Rename Columns and Tables:

· In the Power Query Editor, double-click on the table name and column headers to rename them for better readability.

Handle Null Values:

· Remove rows with null values that are not necessary for your analysis.

Promote Headers:

· Use the option Use First Row as Headers to set the first row as your column headers.

Close & Apply:

· After making the necessary transformations, click on Close & Apply to load the cleaned data into your model.

Step 4: Visualizing Data

Views in Power BI

Create Visualizations:

Creating visulilzations

· In the Report View, select the type of visualization you want to create (e.g., Stacked Column Chart, Line Chart).

· Drag the necessary fields (e.g., GDP, Years, Countries) into the visualization pane.

Format Visualizations:

Formatting

· Use the paint roller icon to format and style your visualizations.

Use Filters and Slicers:

Visualization with Slicers
Slicer

· Add slicers to create interactive filters for your visualizations, allowing you to focus on specific data points.

Step 5: Building a Data Model

Establish Relationships:

· Add Another table to the power bi(Adding Population data set from https://data.worldbank.org/indicator/SP.POP.TOTL)

· Go to the Model View and connect related tables by dragging and dropping the relevant columns between tables.

Verify and Adjust Relationships:

Connecting two data sets

· Ensure that the relationships are correctly defined to support your data analysis.

Step 6: Advanced Data Integration

Add More Data Sources:

· Connect to additional data sources and repeat the transformation and visualization steps to integrate more data into your project.

Unpivot Data:

· Use the unpivot function to transform columns into rows, creating a more usable format for analysis.

Aggregate Data:

with Different aggregations

· Change the default aggregation settings to ensure accurate data representation (e.g., sum, average).

Summary

By following these steps, you will gain a practical understanding of the Power BI interface and its core functionalities. This mini-project serves as a foundational exercise, preparing you to tackle more complex projects and analyses in Power BI. As you progress, you will explore advanced features and techniques, enhancing your ability to create insightful and impactful data visualizations. Happy analyzing!

Data Source

https://data.worldbank.org/indicator/SP.POP.TOTL

--

--

Sandaruwan Herath
Data Science and Machine Learning

IT Consultant/Lecturer | Data Analyst/BI Consultant/Machine Learning