Basics of Power BI
Basics of Power BI
BASICS OF POWER BI
of the class RUSHIKA KALE
better analysis.
MCQ
• MCQs will be released for
practice
• You need to download the
dataset using the link
• Perform operations as per
the requirement
• Choose correct option as per
your observation
WHO ALL HAVE GIVEN ANALYST INTERVIEWS?
Were you asked about dashboarding?
Any skill that you are asked very often?
• At Newton School we have designed our curriculum to cover the most relevant fields
that would ensure higher chances of success in data related fields.
• We cover Data Analyst, Business Analyst, and Data Science + Machine Learning +
Deep Learning in this order only.
• We also provide electives of Tableau, Entrepreneurship, Gen AI, etc which learners are
free to choose from.
Myntra is struggling with stagnant profits, slow sales growth, and varied customer
satisfaction. The company is seeking to hire a Data Analyst to address the underlying
issues impeding their profitability. Initially, stakeholders are interested in determining
the total number of orders placed by customers. Individuals who can assist Myntra in
resolving this issue may be considered for the Data Analyst position.
Use this link for copying and then manipulating the dataset
Let’s look at a dashboard that can be useful for the requirement
What is Business Intelligence (BI)? And Why is it Important?
Let’s discuss and solve this problem step by step using Power BI.
We’ll be going through each of the functionalities used in the steps on a very
high level and will cover all of these things very thoroughly as we go deep in
our module.
• Step 1: Importing Data in Power BI
⚬ Click 'Get Data' under the 'Home' tab.
⚬ Select your data source (e.g., Excel, SQL Server, CSV).
⚬ Preview data in the Navigator window
⚬ Choose tables or datasets to import.
⚬ Click 'Load' to import data into Power BI.
Data Importing using Web
Let’s look at steps in order to get the data from a web link.
Step 2: After importing the file if we look at the data in table view, we noticed
some missing values. How can we address this in Power BI?
Data Cleaning with Power Query in Power BI
To remove null follow the steps shown below:
Step 1: Open power query editor
Step 2: Select the column containing null values and then click on the filter and
deselect null.
Step 3: Check headers and Data type of those columns
• If your dataset lacks column headers, select the 'Use First Row
as Headers' option in Power Query to assign headers based on
the first row.
• Review the data types assigned to each column to ensure
they accurately reflect the nature of the values within. This
step is crucial for accurate data analysis.
Because consider if original Price was a string and if we apply
functions considering it to be a numerical column, then these
functions will fail.
Solution (Cont..):
Step 4: Splitting Shipping Address into City and State
Use the 'Split Column' feature to divide the Shipping Address into separate City and
State columns:
• Select the Shipping Address column.
• Navigate to 'Home' and click on 'Split Column'.
• Choose your delimiter (e.g., ' -') and confirm with 'OK'.
Solution (Cont..):
Step 5:
a. firstly we’ll create a measure for total orders
b. We can use card visuals to show the key metric of total sales
After solving the last problem with the Myntra dataset, you have cracked the
interview. But now, you have a group discussion with the team where they will discuss
the Power Query Editor. Let's learn what it is and what more we can do using this tool.
• This requirement that we are asked by the team will be solvable by Group By
function, which is also a function present in Power Query Editor.
• Since Power Query is mentioned so many times and important while data
preparation let’s understand Power Query in this session.
Introduction to Power Query Editor
Power Query in Power BI connects to different data sources, facilitating data cleaning,
reshaping, and consolidation. It ensures accurate, structured datasets for analysis
and visualization, enabling insightful reporting in Power BI.
Live demonstration
1. Query Editor Ribbon: The Query Editor Ribbon acts as a command center for shaping
and refining your data.
We can sort data in ascending or descending order using the filter button on a
column.
Sorting is ideal for organizing data for better analysis and visualization.
Column Data Quality and Analysis
The challenge in getting the requirement here is that if we don’t have the relationship
defined between the product id of Orders and product id of Products, it would be
difficult for us to visualize the output if we simply merge or combine these tables.
Use this Link for copying and then manipulating the dataset.
Data Modeling in Power BI
Essence of Data Modeling:
A process to organize data in Power BI, creating the relationships between tables.
Key Role:
Acts as a blueprint for crafting interactive reports and insightful dashboards.
Joins in Power BI
Joins is responsible for combining/joining two existing tables together based on
matching values from one or multiple columns.
Types of Join: There are different types of joins which are required in different
situations like in few cases, all the observations from the right table is required to be
safe.
• Problem Statement Recap: How can we calculate the total sales amount by
product name and product ID in our dataset?"
• Solution Steps:
⚬ Step 1: Go to the 'Home' tab and select 'Merge Queries'.
⚬ Step 2: Select the column to which you want to apply the merge.
⚬ Step 3: Then go to ‘Join Kind’ and select ‘Left Join’.
⚬ Step 4: Click 'OK', and the tables will join to provide the result.
• Problem Statement Recap: How can we calculate the total sales amount by
product name and product ID in our dataset?"
• Solution Steps:
⚬ Step 1: Go to the 'Home' tab and select 'Merge Queries'.
⚬ Step 2: Select the column to which you want to apply the merge.
⚬ Step 3: Then go to ‘Join Kind’ and select ‘Left Join’.
⚬ Step 4: Click 'OK', and the tables will join to provide the result.
Fun Fact!
Joins is a concept that is also widely used in SQL.
• Joins in SQL help combine data from multiple tables based on common columns.
• Types of Joins:
⚬ INNER JOIN – Returns only matching rows.
⚬ LEFT JOIN – All rows from the left table + matching from right.
⚬ RIGHT JOIN – All rows from the right table + matching from left.
⚬ FULL OUTER JOIN – All rows from both tables.
• Joins are essential for analyzing relational data in databases.
needs to be really good with their SQL and problem solving skill.
Here just knowing the concepts like CTE, Join, etc won’t help you need to understand
how to solve problems how to calculate metrics, and so on to work optimally in a
In this session, we will start learning how to understand an SQL problem and
Arena offers practice questions to help learners apply their knowledge and sharpen
their skills.
1.Almost 100 SQL-Python, 50 Spreadsheet Coding Questions.
2.Interview Aligned questions in different difficulty spectrum.
3.All the important topics are included in this Questionnaire.
• Problem Statement
• You are working as a Data Analyst at Croma Store, where the team has provided a
dataset containing customer details along with their purchases. The team now
wishes to examine the total sales. how can you accomplish this task?
Use this Link for copying and then manipulating the dataset
To complete the previous problem, we need to create a new column in which we will
calculate the 'Total Sales' using a calculated column. Then, we will measure that
column by following these steps:
Step 1: Create a new column to calculate total sales by multiplying units sold by unit
price.
Step 2: After calculating that column, we will use a calculated measure for total sales
value.
Solution:
Calculated columns are new columns that are added to a table. These columns are
calculated for each row in the table.
The formula for the new column is highlighted in the red box (formula bar). These
columns are made using the existing value of the rows.
Scenario: After completing all tasks, do you believe this is the correct method for
submitting the report to stakeholders? If you are familiar with any other data
analysis tool (eg. Excel) what do you think will the stakeholders feel
fine/comfortable with looking at the numbers or do they want something which is
easier to interpret visually?