0% found this document useful (0 votes)
70 views318 pages

Data Analytics Cheat Sheet

The document provides an overview of data analytics, its workflow, and the roles of data analysts, highlighting the importance of data in decision-making across various industries. It includes case studies from Netflix, disaster management, Johnson & Johnson, and the aviation sector to illustrate the application of data analytics. Additionally, it introduces Power BI as a tool for data visualization and outlines its significance, products, and installation process.

Uploaded by

yadavsap0736
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views318 pages

Data Analytics Cheat Sheet

The document provides an overview of data analytics, its workflow, and the roles of data analysts, highlighting the importance of data in decision-making across various industries. It includes case studies from Netflix, disaster management, Johnson & Johnson, and the aviation sector to illustrate the application of data analytics. Additionally, it introduces Power BI as a tool for data visualization and outlines its significance, products, and installation process.

Uploaded by

yadavsap0736
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 318

Introduction of Data Analytics and Workflow |

Cheat Sheet
Content
• Data Analytics
• Data Analytics Everyday Example
• Why Data Analytics?
• Workflow of Data Analytics

Data Analytics
Process of Finding Meaning Insights.
• Draw Conclusions
• Make Predictions
• Derive Informed Decision Making
Data Analytics is the science of analyzing raw data to make conclusions about that information.
Data Analytics help a business optimize its performance, perform more efficiently, maximize profit,
or make more strategically-guided decisions.

Data Analytics Everyday Example


Online Shopping
Flipkart and Amazon Recommend Products based on user history, search and trends.

Recommended Videos
• YouTube recommends videos based on our past searches, watch time, number of likes.
• YouTube will recommend similar videos further.

Google Maps
Google Maps recommends the routes based on traffic conditions and transport mode.

Why Data Analytics?


• Social media, e-commerce and other digital platforms, we generating more data than ever
before.
• This data can be used to gain valuable insights into consumer behavior and market trends.
• A Data Analyst plays an important role in an organization’s Decision-making process by
analyzing and interpreting data.

Workflow
Workflow is a series of steps that need to be completed in a specific to achieve a goal or objective.
Workflow of Data Analytics
• Problem Definition
• Data Collection
• Data Wrangling
• Modelling
• Data Visualization

Problem Definition
Clearly defining the business problem or question that needs to be answered.

Data Collection
Data Collection is the process of gathering relevant information or data from various sources.

Data Wrangling
It is the process of cleaning raw data in preparation for analysis. It involves identifying and
resolving mistakes, filling in missing data, and organising and transferring it into an easily
understandable format.

Modelling
A Data Model is a way of organizing and structuring data so that it can be easily understood.

Data Visualization
Data Visualization is the process of generating graphical representations of data for various
purposes.

Data Analyst Roles and Responsibilities | Cheat Sheet


Content
• Who is a Data Analyst?
• Data Analyst Roles and Responsibilities
• Data Engineer vs Data Analyst vs Data Scientist
• Skills and Tools Required for Data Analyst

Who is a Data Analyst?


A Data Analyst is a problem solver who collects, analyzes, and interprets data to identify trends,
patterns, and insights that can be used to inform business decisions.

A Day in the life of a Data Analyst looks like


• Understanding the Business Problem
• Reviewing and Organizing Data
• Data Cleaning and Preparation
• Create Visualizations and Reports
• Conducting Analysis
• Communicating with Stakeholders
Data Analyst Roles and Responsibilities
Prepare
• Data preparation is the process of taking raw data and turning it into information that is
trusted and understandable.

Model
• Data modeling is the process of determining how your tables are related to each other.

Visualize
• The visualization task is where you get to bring your data to life.

Analyze
• The analyzing task is an important step of understanding and interpreting the information
that is displayed on the report.

Manage
• The management of your content helps to strengthen collaboration between teams and
individuals.

Data Engineer vs Data Analyst vs Data Scientist


Data Engineer
• They build and maintain the infrastructure and tools needed to collect and store large
amounts of data.

Data Analyst
• Primarily focuses on analyzing and interpreting data.
• A Data Analyst answers questions about present trends.

Data Scientist
• Finds patterns in the data and answers the questions about future (Predictions).
• Uses Machine Learning and Deep Learning technologies to solve business problems.

Skills and Tools Required for Data Analyst


• Knowledge on Data Aanlytics Fundamentals
• Analytics Tools and/or Programming Languages
• Analytical Skills
Data analytics in multiple industries | Cheat
Sheet
Content
• Netflix Case Study
• Disaster Management Sector Case Study
• Johnson And Johnson Case Study
• Aviation Sector Case Study

Netflix Case Study


Netflix collects data on
• The time during which their subscribers watch the show.
• Whether subscribers binge-watched it or it took them some time to finish.
• Did the subscribers pause the show and if they resumed it after pausing.

This helps them serve just the right shows to their consumers.
• They retain up to 93% of their Consumers Using Data Analytics.
• They even have plans to create different trailers for different audiences.

Disaster Management Sector Case Study


How Indian Meteorological Department (IMD) used Data Analytics to save people from
cyclone.
In April 2019 "Fani" cyclone affected East Coast of India(Odisha-puri coast).
The data and insights provided by the IMD were critical in helping the state governments prepare
for the cyclone and evacuate people from the affected areas.
• The IMD analyzed satellite image data, weather data to predict the path and intensity of the
cyclone.
• Collected data on rainfall, temperatures below and above the sea, along with wind speed.
• Also used weather model, which used data from multiple sources, including satellites, radar,
and ground-based sensors, to generate accurate weather forecasts.

Impact created by data analysis in Disater Management Sector


• Successfully predicted the path and intensity of a cyclone.
• Saved lives of more than 12 lakh people.
• Helped to reduce the damage and loss of resources.

Johnson And Johnson Case Study


Three Innovative Ways Johnson & Johnson Used Data Analytics to fight COVID-19
pandemic.
1. Tracking Data - Using data to track the pandemic and forecast hotspots.
2. Harnessing Data - To learn about who might be most at risk of getting sick.
3. Leveraging Data - To inform decisions about returning to the workplace.

1. Track the Pandemic / Forecast Hotspots


• Built a global surveillance dashboard.
• The vast majority of clinical trial sites that were predicted to be hot spots for COVID-19.
• Ultimately had extremely high number of cases.

2. Who might be most at risk of getting sick.


• Old Adults, as they have a higher risk of severe illness and death from the virus.
• By targeting these groups Johnson distributed vaccine and helped prevent illness and saved
lives.

3. Decision about returning to the workplace.


• They are using Data Analytics to make tactical decisions about which labs and offices can
remain open.
• How many people can be on-site at a time, and how different company facilities are
sanitized, etc.

Aviation Sector Case Study


Qantas is an Australian airline that uses Data Science and Predictive Analytics to mitigate losses
and improve their business operations.

Predictive Maintenance
• Which is essentially being able to determine when there might be a fault with an aircraft
ahead of time. By analyzing data on factors like:
• Equipment usage
• Temperature
• Vibration and other parameters
• It helps them to identify patterns and anomalies that may indicate when equipment is likely
to fail or requires maintenance.

Fuel Optimization
• Qantas Airways does predictive maintenance using "FlightPulse" software.

Note:
"FlightPulse" is a software platform that provides data analytics and business intelligence
solutions for the aviation industry, helping airlines optimize their operations and improve their
profitability.

• This helps its pilots fly more efficiently and reduces fuel usage and emissions.
Introduction of Power BI | Cheat Sheet

Content
• Introduction
• Significance of Power BI
• Companies which use Power BI
• Power BI Products
1. Introduction
• Power BI is an interactive data visualization software product developed by Microsoft.
• BI in Power BI stands for Business Intelligence (BI).
• Power BI is a tool that helps you turn data into meaningful insights.
• Power BI offers a range of data visualization tools, including charts, graphs, tables, and
maps, and allows users to create custom visuals.
• BI allows organizations to collect data from various sources, such as databases, spreadsheets
and enterprise applications and turn that into actionable insights.
• power BI is consistently ranked as a leader in the BI market by independent research firms
like 'Garther' and 'Forrester'.

2. Significance of Power BI

• Easy to use: Power BI has an intuitive and user-friendly interface that allows users to easily
connect to different data sources, build data models, and create compelling visualizations.
• Powerful analytics: Power BI provides advanced analytics capabilities, such as forecasting,
clustering, and trend analysis, that allow users to gain insights and make predictions from
their data.
• Seamless integration: Power BI integrates seamlessly with other Microsoft tools, such as
Excel and SharePoint, as well as other third-party tools, making it easier to work with data
across different platforms.
• Scalability: Power BI is a scalable tool that can handle large volumes of data and support
multiple users, making it suitable for businesses of all sizes.
• Collaboration: Power BI allows users to collaborate with each other by sharing reports,
dashboards, and data models, enabling teams to work more efficiently and effectively.

3. Companies which use Power BI


Power BI is used by a wide range of companies across various industries, from small startups to
large enterprises. Here are some examples.

• Financial Services: Uses Power BI to gain insights into customer behavior, market trends
and risk analysis.
• Retail: Uses to track sales performance, inventory management and customer buying
patterns to optimize pricing and promotional strategies.
• Healthcare: Healthcare providers use Power BI to track patient outcomes, manage costs and
analyze healthcare data to improve treatment plans.
• Manufacturing: Manufacturers use Power BI to track production performance, inventory
management and quality control.
• Education: Uses to track student performance, analyze course data and identify trends in
enrollment to improve their educational programs.
• Government: Government agencies use Power BI to track and analyze data related to
public health, transportation and social services to improve public policy decisions.
4. Power BI Products

Power BI Desktop
• Windows desktop application is known as Power BI Desktop.
Power BI Service
• Power BI Service is a web version of PowerBI.
• It is a cloud-based platform provided by Microsoft.
• It allows users to publish their Power BI reports and dashboards to the cloud, where they can
be accessed, viewed and interacted by others.
Power BI Mobile apps
• Power BI Mobile apps for Windows, iOS, and Android devices.
• It is a mobile version of Power BI that allows users to access their reports and dashboards on
the go from their smartphones or tablets.

Download and Install Power BI | Cheat Sheet

Content
• Download and Install Power BI Desktop
• Minimum system requirements

1. Download and Install Power BI Desktop


Note:

Power BI Desktop only works on Windows operating system and is not compatible with Mac
OS or Ubuntu.

There are two ways to install Power BI Desktop.


1. Install as an app from the Microsoft Store.
• Step 1: Open Microsoft Store.
• Step 2: Search Power BI Desktop
.
• Step 3: Select Install
.

2. Download directly from the browser

Quick Tip:
You can either Start from step 1 or click Here and start at step 4
Step 1: Open your browser and search Power BI.
• Step 2: Go to Products Drop Down and select Power BI Desktop
.

• Step 3: Click on See Download or language options


.

• Step 4: Click on Download


• Step 5: Choose the Download you want and Click on Next

• Step 6: Go to the downloaded file and open it.


• Step 7: You're prompted to run the installation file after you finish downloading it,
click on the Next button. Click on
Next
• Step 8: Select I accept the terms in the license agreement and Click on Next
.

• Step 9: Click on Install


.
• Step 10: Wait until it is fully installed and Click on Next

• Step 11: Click on Finish


.
2. Minimum system requirements
• Windows 8.1 or later
• Memory(RAM)
• At least 2 GB available.
• 4 GB or more recommended.
• CPU
• 1 Gigahertz (GHz)
• 64-bit (x64) processor or better recommended
Note:
Power BI Desktop is no longer supported on Windows 7.
Exploring Power BI | Cheat Sheet

Content
• Exploring Power BI
• Building Blocks of Power BI

1. Exploring Power BI
Ribbons
Ribbon in Power BI is a user interface element that provides easy access to the various tools and
features in the application.
Views
In Power BI, there are three main views.

• Report View:
• This is the default view that you will see when you open a report in Power BI.
• In this view, you can design and create your report by adding and arranging
visualizations, formatting the layout and appearance of the report.
• Data View:
• This view allows you to see and modify the data that is being used in your report.
• In this view, you can work with the data tables and fields, modify data types and
formats, and create calculated columns and measures.
• Model view:
• In this view, you can manage the relationships between different tables and data
sources.
• This view is useful for more advanced data modeling tasks.

Visualization pane
• The Visualization pane is located on the right side of the Power BI Desktop interface, it
contains different visuals(graphs) header that you can use to display your data.
• The Visualization pane includes various types of visualizations, such as tables, matrices,
cards, and maps.
• It also allows you to add fields to the various areas of the visualization, such as the Axis,
Legend, and Values.

Pages Tab
• Pages tab can be found at the bottom of the page.
• It allows you to navigate between pages, add, select, remove the report page.
• Also, you can create a duplicate report page from here.
Canvas
• Canvas is a single page, in report view.
• It is the main workspace in Power BI Desktop where you create and design your reports.

2. Building Blocks of Power BI


There are five major Power BI building blocks-
• Visualizations
• Datasets
• Reports
• Dashboards
• Tiles

Visualization
Visualization is the represenatation of data in a graphical form.
Datasets:
A dataset is a collection of data or information that is organised and presented in a structured
format. It can include various types of data, such as numbers, text, and images.

City Customer type Gender Product line


Hyderabad Member Male Health
Bangalore Normal Female Beauty
Mumbai Normal Male Electronic
Chennai Member Female Travel
Pune Member Female Lifestyle

Reports:
Reports is a collection of visualizations, tables and other visual elements that are arranged on one or
more pages to provide a visual represenation of data insights.
Dashboards:
Power BI dashboard is a collection of data visualizations, reports and other elements that provide an
overview of business metrics

Dashboards vs Reports:
Item Dashboards Reports
Pages Dashboards are created only on one page Can be created in one or more pages
Dashboards are created from multiple
Data Sources Reports are created from a single dataset
datasets or reports
Dashboards always concentrate on Reports are not concentrated on the
Visualization building insights into the data by using visualization part of the data rather it
graphs ,visuals , charts, etc. looks to create summary pages

Tiles:
Tiles is a single visualization or visual in a report or on a dashboard.
Project Overview | Cheat Sheet

Content
• Project Overview
• Problem Statement
• Objective
• Significance of Supermarket Sales Data

Project Overview
Realmart is planning to start a new Supermarket in another city. To do so, analytics needs to be
performed for the existing branches. The project involves analyzing sales data of realmart stores
having branches across other cities.

Problem Statement
The challenge is to analyze this data effectively and create a report that provides actionable insights
and recommendations for the new branch. For example, we took existing data such as customers,
products, quantity, tax, payment, rating, profit, etc. Based on this report, Realmart will open their
new branch.
Objective
The objective of the project is to build a report that provides insights, helps the company to make
more informed decisions, and improves its performance.

Significance of Supermarket Sales Data


Sales data is a critical component of business intelligence, providing insights that can be used to
improve performance, increase revenue, and drive growth. In the real world, a Data Analyst mostly
deals with sales data to help companies in business growth. Therefore, the project involves building
a dashboard with our existing supermarket data.

Understanding Your Dataset | Cheat Sheet

• Dataset
• Columns in the Dataset

Dataset
• A dataset is a collection of data or information that is organised and presented in a structured
format.
• It can include various types of data, such as numbers, text and images.
• Datasets are important because they allow us to collect, organise and analyse large amounts
of data in a structured and meaningful way.
• Datasets are used to study trends or patterns in the data.
• Data sets are a critical component of Power BI, as they provide the foundation for creating
insightful reports and visualisations.
• Once a dataset is created, it can be analysed using various techniques to extract insights and
gain a better understanding of the data.

Columns in the Dataset


Quick Tip:

Realmart Sales Dataset: Download.

In the Realmart sales dataset, The following are the column names.

• Invoice ID: A unique identifier for each sales transaction in the supermarket.
• Branch: The branch of the supermarket where the transaction took place (there are three
branches - A, B, and C).
• City: The city in which the branch is located.
• Customer type: Whether the customer is a member or a non-member.
• Gender: The gender of the customer making the purchase.
• Product line: The type of product being purchased (e.g., fashion accessories, sports and
travel, food and beverages, etc.).
• Unit price: The price of one unit of the product.
• Quantity: The number of units of the product being purchased.
• Tax 5%: The amount of tax (5% of the total cost) charged on the purchase.
• Total: The total cost of the purchase (including the unit price, quantity, and tax).
• Total = Unit price * Quantity + Tax 5%
• Date: The date on which the purchase was made.
• Time: The time of day at which the purchase was made.
• Payment: The method of payment used for the purchase (cash, credit card, or e-wallet).
• COGS: Cost of goods sold, which is the direct cost of producing the product or service that
was sold.
• COGS = Total - Tax 5%
• Gross margin percentage: The percentage of revenue that represents gross profit after
deducting the cost of goods sold.
• Gross margin percentage = (gross income / Total) * 100
• Gross income: The amount of gross profit made from the sale.
• Gross income = Total - COGS
• Rating: The customer's rating of their shopping experience (on a scale of 1 to 10).
By understanding the columns in the dataset, we can determine which variables are relevant to our
analysis.

Note:
Given dataset is already organised and made ready for creating a report in Power BI Desktop.

Importing Data into Power BI | Cheat Sheet


• Introduction
• Steps of import dataset in Power BI

Introduction
• Power BI is a powerful data visualisation tool that allows users to create interactive reports
and dashboards using data from various sources.
• Importing data into Power BI is the first and most critical step in building any data
visualisation or business intelligence solution.
• Power BI supports various Data sources to connect and import data from, including Excel
files, text/CSV files, databases cloud services and more.

Steps to import dataset in Power BI


• Step 1: Click on
"Get Data"
in the Home tab.
• Step 2: Select "Excel" in the list of data sources.

• Step 3: Browse and select the Excel workbook you want to import.

• Step 4: Choose the sheet or table you want to import.


• Step 5: Click on "Load" to import the data.
Adjusting the Canvas and Adding Title | Cheat Sheet

Content
• Canvas
• Adjusting the Canvas
• Title
• Adding Titles

Canvas

In Power BI, The canvas is the main workspace where you design and build your reports or
dashboards. It's the area where you place visuals, tables, charts and other elements to create your
data presentation.
The canvas is a blank area that you can customize according to your needs. You can add new pages,
change the size of the canvas, adjust the background color and more.
When you add a visual to the canvas, you can use the fields pane to define its properties, such as the
data source, type of visualization and formatting. You can also apply filters, create hierarchies and
drill down or up to get insights from your data.

Adjusting the Canvas


1. Click on "Format your report page" in Visualization pane.
2. Page Information: You can change Page Name.
3. Canvas Setting: You can change the layout of page(16:9, 4:3 etc) and Vertical alignment of
canvas.
4. Canvas background: you can change or add Color background image and adjust
Transparency of canvas.

Title
In Power BI, the title is a text box that appears at the top of a report. The title can be used to provide
a brief description or summary of the content that is being displayed.
The title can be added to a report page or a visualization by selecting the
"Text box"
option and dragging it to the desired location. Once the text box is added, you can edit the text to
create the title.

Adding Titles
1. Click on Home in Ribbon.
2. Click on Text box.

3. Add title in the text box that appears on canvas. you can format your title such as Font,
Color, Style etc of your title
4.Go to the
Format
, Here you can change or add background color, border, height and width of titles.

Adding Cards | Cheat Sheet

Content
• Card
• When to use a Card
• How to add a Card
• How to Customize a Card

Card
• Card is a visual tool used to display
key performance indicators (KPIs)
and other metrics in a concise and easy to understand format.
• Card can helps users monitor progress towards specific goals and objectives and quickly
identify areas that require attention or improvement.
When to use a Card
• Card are particularly useful when the focus is on a specific KPI or metric that is critical to
the organization's success.
• They help users quickly identify areas of strength and weakness, and can be used to drive
action and improve performance.

How to add a Card


Step 1:Click on the "Card" icon in the "Visualizations" pane.

Step 2: Add the data by drag and drop onto the "Fields" section in the Visualizations pane.
How to Customize a Card
Click on the card you want to customize.
In the Visualizations pane, click on the
“Format your visual”
to access the formatting options for the selected card.
Callout Value: you can change the Font, Size, Color and Display Unit of value.
Category Label: you can change the Font, Size and Color of the label.
Adding a Bar Chart | Cheat Sheet

Content
• Bar Chart
• When to use a Bar Chart
• How to add a Bar Bhart
• How to customize a Bar Chart

Bar Chart
A bar chart in Power BI is a type of visualization that displays data using rectangular bars, where
the length of each bar is proportional to the value it represents. The x-axis displays categories or
groups being compared, while the y-axis represents the values being measured.
In Power BI, there are 6 types of bar and column charts.
• Stacked Bar Chart
• Stacked Column Chart
• Clustered Bar Chart
• Clustered Column Chart
• 100% Stacked Bar Chart
• 100% Stacked Column Chart

• Stacked Bar Chart: This chart type is similar to the stacked column chart, but the bars are
displayed horizontally instead of vertically. It is useful for comparing the composition of
each category or group.
• Stacked Column Chart: This chart type divides each column into segments representing
different values, allowing you to see the total value for each category as well as the value for
each segment.
• Clustered Bar Chart: This chart type is similar to the clustered column chart, but the bars
are displayed horizontally instead of vertically. It is useful for comparing values across
categories or groups.
• Clustered Column Chart: This chart type displays columns side-by-side, making it easy to
compare values across categories or groups.
• 100% Stacked Bar Chart: This chart type is similar to the 100% stacked column chart, but
the bars are displayed horizontally instead of vertically. Each bar represents 100% of the
data, making it easier to compare the proportion of each value across categories.
• 100% Stacked Column Chart: This chart type is similar to a stacked column chart, but
each column represents 100% of the data, making it easier to compare the proportion of each
value across categories.
Note: A bar chart displays the data horizontally, with the bars extending along the y-axis, while a
column chart displays the data vertically, with the columns extending along the x-axis.

When to use a Bar Chart:


• To compare values across different categories or groups.
• To show changes in values over time.
• To highlight the highest or lowest values in a dataset.
• To visualize data that is easily segmented into different categories.

How to add a Bar Chart.


• Click on the "Bar chart" icon in the "Visualizations" pane on the right-hand side of the
screen.

• Drag and drop the fields you want to use for the x-axis and y-axis into the respective fields
on the "Values" and "Axis" sections of the "Visualizations" pane.
How to customize a Bar Chart.
• Click on the bar chart visual to select it.
• Use the options under the "Visualizations" pane to customize the chart, such as changing the
color of the bars, adjusting the font size, or adding a title to the chart.
• In the Visualizations pane, click on the “Format your visual” to access the formatting
options for the selected bar chart.
Use the available formatting options to customize the chart's appearance. These options include:
Axis settings: You can change the minimum and maximum values for the axis, adjust the tick
marks and labels, value font and color and add a secondary axis.
Legend settings: You can change
the position and orientation of the legend, adjust the font size, color, turn the legend on or off and
add title text.

Data label settings: You can show or hide the data labels, adjust the position, orientation and font
size of the labels.
Columns: you can change the colors of the columns and spacing(inner padding) of the columns.
Adding a Line Chart | Cheat Sheet

Content
• Line Chart
• When to use a Line Chart
• How to add a Line chart
• How to customize a Line Chart
• Area Chart

Line Chart
A line chart in Power BI is a type of data visualization that displays information as a series of data
points connected by straight line segments. It is commonly used to show trends over time or to
compare the relationship between two variables.
In a line chart, the x-axis typically represents time or some other continuous variable, while the y-
axis displays the value of the variable being measured. Each data point is represented by a dot or
other shape, and these are connected by straight lines to show the trend over time or across the
variable being measured.
Line charts in Power BI can be customized with different colors, shapes, and sizes of data points, as
well as the appearance of the lines connecting the data points. They can also include axis titles, data
labels, legends, and other features to help interpret the data.

When to use a Line Chart


A line chart in Power BI is useful when you want to display trends in data over time or show the
relationship between two variables. Here are some common scenarios where a line chart can be
used effectively in Power BI:
• Time-series analysis: Line charts are ideal for displaying trends in data over time. For
example, you can use a line chart to display monthly sales figures for a year, showing the
trend of sales over time.
• Comparing two or more variables: Line charts can be used to show the relationship
between two or more variables. For example, you can use a line chart to compare the
performance of two or more products over time.
• Showing progress towards a goal: Line charts can be used to show progress towards a
goal. For example, you can use a line chart to track progress towards a sales target over time.
• Visualizing continuous data: Line charts are useful for displaying continuous data, such as
temperature, stock prices, or website traffic.

How to add a Line Chart


You can add a Line Chart in Power BI by following these steps:
Step 1: Open the report or dashboard where you want to add the Line Chart.
Step 2: Click on the "Line Chart" icon from the "Visualizations" pane on the right-hand side of the
screen.

Step 3: Drag and drop the field(s) you want to use for the x-axis and y-axis onto the "Axis" and
"Values" sections of the "Visualizations" pane.
How to customize a Line Chart.
You can customize a Line Chart in Power BI in several ways. Here are the steps to customize a Line
Chart:
Select the Line Chart visual that you want to customize.
Click on the "Format your visual" icon from the "Visualizations" pane on the right-hand side of the
screen.
Customize the Line Chart by using the various formatting options available in the "Format" pane.
Some of the common formatting options include:
Lines: You can customize the lines in a Line Chart by changing the line color, thickness, and style.
To do this, select the Line Chart visual, go to the "Visualizations" pane, and click on the "Format"
icon. Under "Lines" you can change the line color, thickness, and style, such as dashed or dotted.

Marker: You can add markers to the data points on a Line Chart to make them stand out. To do
this, select the Line Chart visual, go to the "Visualizations" pane, and click on the "Format" icon.
Under "Data Colors," you can select "Markers" and choose the marker shape and size.
Data Labels: You can add data labels to a Line Chart to show the actual value of each data point.
To do this, select the Line Chart visual, go to the "Visualizations" pane, and click on the "Format"
icon. Under "Data Labels," you can turn on the data labels and choose the font size, color, and
position.

Axis: You can customize the axis in a Line Chart by changing the axis title, font size, color, and
position. To do this, select the Line Chart visual, go to the "Visualizations" pane, and click on the
"Format" icon. Under "X-Axis" and "Y-Axis," you can change the axis title, font size, color, and
position.
Area Chart
• The area chart is similar to a line chart, but with the addition of shaded areas below or above
the line to create a filled-in area.
• A visual representation of data that displays the quantitative data as an area between the x-
axis and the plotted line.

Adding a Pie Chart and Donut Chart | Cheat Sheet

Content
• Pie Chart
• Donut Chart
• When to use a Pie Chart
• How to add a Pie chart
• How to customize a Pie Chart

Pie Chart
In Power BI, a pie chart is a type of data visualization that represents data in a circular format. It
displays data as a circle divided into slices, each slice of the chart is proportional to the value it
represents in relation to the whole and the sum of all the slices is 100%.
In Power BI, you can create a pie chart by selecting the chart type, selecting the data fields to
include, and customizing the formatting and appearance of the chart as needed. You can also add
additional elements, such as labels or data points, to help communicate your insights.
Donut Chart
A donut chart in Power BI is a variant of a pie chart that displays data as sectors of a circle with a
hole in the center. It is similar to a pie chart but with a blank center, which can be used to show
additional information or leave it empty for a more aesthetically pleasing look.
In a donut chart, each data category is represented by a segment of the circle, with the size of the
segment proportional to the value of the data. The segments are usually color-coded or labeled for
easy identification. Donut charts are useful for displaying data with several categories, where each
category's value contributes to the whole.

When to use a Pie Chart


Pie charts in Power BI are best used when you need to compare the relative proportions of different
categories or show how much each category contributes to the whole. Here are some scenarios
where a pie chart could be appropriate:
Showing the distribution of sales by product category: If you want to show the percentage of
sales generated by each product category, a pie chart could be an effective way to visualize the data.
Displaying market share by company: A pie chart can be used to show the market share of each
company in a particular industry, with each slice representing the proportion of market share for
each company.
Presenting budget allocations by category: Pie charts can be used to display the percentage of the
budget allocated to each category, such as salaries, marketing, or supplies.
Comparing the contribution of each team member to the project: Pie charts can be used to
compare the contribution of each team member to a project, with each slice representing the
percentage of their total contribution.
Note:
• Pie charts and Donut chart may not be the best option for some scenarios, such as when
there are too many categories to display
• when the differences between the values are too small to be easily distinguished.
• In such cases, other visualizations, such as bar charts or stacked charts, may be more
appropriate.

How to add a Pie Chart


You can add a Pie Chart in Power BI by following these steps:
Step 1: Open the report or dashboard where you want to add the Pie Chart.
Step 2: Click on the "Pie Chart" icon from the "Visualizations" pane on the right-hand side of the
screen.

Step 3: Drag and drop the required fields from the Fields pane to the "Values" and "Legend" fields
well in the Visualizations pane.
Note:
The process of adding donut chart is almost same as pie chart, only difference in step 2 Click on
the "Donut Chart" icon from the "Visualizations" pane

How to customize a Pie Chart.


To customize a pie chart in Power BI, you can follow these steps:
Legend: To customize the legend in your pie chart, click on the chart and go to the "Visualizations"
pane on the right side of the screen. In the "Legend" option, you can choose to turn on or off the
legend, change its position (top, bottom, right, or left) or modify its font, color,size and title.
Slices: To customize the slices in your pie chart, select the chart and go to the "Visualizations" pane.
In the "Slices" card, you can change the color for each slice.

• In Donut chart, there is one more option that is spacing . you can use spacing to change the
inner radius of donut chart.
Detail labels: To add detail labels to your pie chart, click on the chart and go to the "Visualizations"
pane. In the "Detail labels" card, you can choose to turn on or off the labels, change their position
(inside, outside, prefer outside and prefer inside), or modify their font, color, and size. You can also
choose to show additional information, such as the data value, percentage and category name by
selecting the appropriate options.

Rotation: To rotate your pie chart, click on the chart and go to the "Visualizations" pane. In the
"Rotation" option you can rotate your pie chart.

By customizing the legend, slicer, detail labels, and rotation in your pie chart, you can make it more
informative, interactive, and visually appealing. You can experiment with different settings and
options to find the best way to present your data and communicate your insights to your audience.

Note:
All the customization option of donut chart is almost same as pie chart, you can use the all the
customize option of pie chart in donut chart such as Legend, Slices, Detail labels and Rotation.

Adding a Table | Cheat Sheet

Content
• Table Visual
• When to use a Table Visual
• How to add a Table Visual
• How to customize a Table Visual
Table Visual
• A table visual is a type of visualization in Power BI that displays data in a tabular format.
• It consists of a logical series of rows and columns that represent the data.
• The table visual is useful for displaying large amounts of data and for allowing users to filter
and sort the data to find specific information.
• It can display any type of data, including text, numbers, and dates.

When to use a Table Visual


• Use a table visual when you want to see and compare detailed data and exact values (instead
of visual representations).
• Use it to display data in a tabular format, such as a list of items, products, or customers.
• Use it to display numerical data by categories, such as sales by region or product.

How to add a Table Visual


• To use a table visual in Power BI, select it from the Visualizations pane.

• Drag and
drop data
• You can add multiple number of data column from your dataset in Table

How to customize a Table Visual

• Style presets: Power BI provides built-in style presets that you can use to change the
appearance of the table. You can choose from various preset styles that include colors, fonts,
and other visual elements.
• Totals: If you want to display a total row at the end of the table, you can turn on the Totals
option in the Values section of the Fields pane. You can also choose which columns to show
totals for and customize the appearance of the total row.

• Cell Elements: You can format individual cells in the table by changing their background
color, font color, icons, and other visual elements. You can also use conditional formatting to
highlight cells based on their values. To format a cell, select it and use the Format pane to
make your changes.
Adding a Matrix | Cheat Sheet

Content
• Matrix visual
• When to use a Matrix visual
• Matrix vs Table
• How to add a Matrix visual
• How to customize a Matrix Visual

Matrix Visual
• A highly interactive visual that enables users to analyze data by summarizing and comparing
it across different categories or groups.
• Rows and columns of the matrix are populated by grouping data based on the values of one
or more fields.
• Data can be aggregated using functions such as sum, count, average, etc.
• Resulting values are displayed in the cells of the matrix.

When to use a Matrix Visual


• When there are multiple categories or groups to compare and summarize.
• When you need to display hierarchical information, such as totals, subtotals, and details in a
structured format.
• When you need to drill down into the data to see more details or expand/collapse rows and
columns to focus on specific areas.

Matrix vs Table

Point of
Table Visualization Matrix Visualization
Difference
Displays data in a Tabular format in Rows Summarizes data by aggregating values
Format
and Columns across rows and columns
Useful for displaying detailed data and Useful for summarizing data and
Purpose allowing users to interact with the data by displaying totals, subtotals, and details in
sorting, filtering, and grouping data a hierarchical format
Users can drill down into the data to see
Users can interact with the data by more details, and to expand or collapse
Interactivity
sorting, filtering, and grouping data rows or columns to focus on specific
areas
Shows total sales amounts by region and
Shows individual sales records with fields
by product, with the ability to expand or
Example such as date, product, region, and sales
collapse rows or columns to see more
amount
details

How to add a Matrix visual


• Add the matrix visual to the report canvas from visualization pane.

• Drag and drop the data fields from dataset into the Rows, Columns and Values field wells of
the matrix.
Note:
The formatting options available for the Table visual in Power BI can also be applied to the Matrix
visual.

• Style presets: Power BI provides built-in style presets that you can use to change the
appearance of the matrix.
• Row subtotals/Column subtotals: If you want to display a total of rows and columns at the
end of the matrix, you can turn on the these option.
• Cell Elements: You can format individual cells in the marix by changing their background
color, font color, icons, and other visual elements. You can also use conditional formatting to
highlight cells based on their values.

Adding a Slicer| Cheat Sheet

Content
• Slicer
• When to use a Slicer
• How to add a Slicer
• How to customize a Slicer

Slicer
• A Slicer is a type of visual element in Power BI that allows users to filter data in a report or
dashboard.
• It provides an interactive way to narrow down the data displayed in visualizations by
allowing users to select one or more values from a list of options.
• Slicers are useful for exploring data across different dimensions or scenarios, and for
providing a quick way to filter data.
• They work by creating a filter based on the selected values, which in turn updates the data
displayed in other visualizations in the report or dashboard.

When to use a Slicer


Slicers are a useful tool in Power BI that allows users to filter data and narrow down the displayed
information in their reports or dashboards. Here are some situations when slicers can be particularly
helpful:
To slice and dice data on visuals: When you have a large dataset with many variables, a slicer can
help you quickly slice and dice the data by selecting one or more values from a list of options. This
can help you explore your data from different perspectives and gain insights that might not be
immediately apparent.
To provide a quick way to filter data: Slicers provide a quick and intuitive way to filter data
without having to go through the process of creating a new filter. This can save time and effort and
help you focus on the most relevant data.
To explore data across different dimensions or scenarios: Slicers can be used to explore data
across different dimensions or scenarios, such as time periods, regions, or product categories. This
can help you identify trends and patterns in your data that might not be obvious from a static report
or visualization.

How to add a Slicer


You can add a slicer in Power BI desktop by following these steps:
Step 1:In the Visualizations pane, click on the "Slicer" icon to add a slicer visual to your report.
Step 2: Drag and drop the data field you want to use for your slicer into the "Fields" pane at the
bottom of the screen. In our case add product category in fields

How to customize a Slicer


To customize a Slicer in Power BI, you can follow these steps:
Select the Slicer visual in your report canvas.
In the Visualizations pane, click on the "Format" option.
Slicer Settings: To customize the slicer style, you can change the slicer view such as
Vertical list, Tile and Dropdown.

Slicer Header: You can modify the slicer header such as title, font and color of header and header
border such as position, color and width of header board.

Values: You can modify the slicer value such as font, color, padding, background and border of the
values of the slicer.
Organizing your Dashboard | Cheat Sheet

Content
• Organizing your Dashboard
• Tips for designing a great Power BI dashboard

Organizing your Dashboard


• When creating a report, it's important to organize your visuals in a way that makes sense and
communicates your message clearly. The way you organize your visuals can greatly impact
the user's understanding of the data and the insights they can derive from it.
• There are several key factors to consider when organizing your visuals, such as the order of
the visuals, the use of space etc.
• By paying attention to these factors, you can create a report that is easy to read, visually
appealing, and highly informative.
• Additionally, you can use design principles such as color, font choice, and visual consistency
to enhance the overall impact of your report.

Tips for designing a great Power BI dashboard


Background Color
• Light color allows the elements inside it to get highlighted
• High contrast colors disturb concentration
• Adequate High Contrast colors in the charts ensures the Quality.
• Light colors for every slice will make the Information Quality less and less understandable.

Quick Tip: Pie charts are best if they have fewer than five categories.

• White or light color showcases the elements present inside the tile.
• Dark colors dominate the elements.

Legend Spacing
• Space between the title, bars and text will enhance the information.
• Do not keep the Title in the corner of the tile adjust them with the settings.

Tile Arrangement

Combo chart | Cheat Sheet

Content
• Combo Chart
• When to use a Combo Chart
Combo chart
• A combo chart in Power BI combines a line chart and a column chart into one visualization.
• A combo chart is helpful when you want to show multiple types of data in one chart, or
when you want to compare data that has different value ranges.
• This allows for a quicker comparison of the data.

When to Use a Combo chart


• When you have a line chart and a column chart with the same X-axis. You can combine
them into a combo chart to show the relationship between the two.
• To compare multiple data columns with different value ranges. For example, if you want to
compare sales revenue (measured in dollars) with units sold (measured in numbers), you can
use a combo chart to show both data points on the same chart.
• To illustrate the relationship between two data columns in one visualization.
• To conserve canvas space.
• When you want to show trends over time, such as monthly sales revenue as bars and moving
average of sales as a line on the same chart.

Combo Chart | Hands on Guide

Content
• How to add a Combo Chart
• How to customize a Combo Chart

How to add a Combo Chart


• To create a combo chart in Power BI, select "Line and Clustered column chart" from the
"Visualization" pane.

• Add the X-axis data by dragging and dropping it into the "X-axis" field in the "Fields" pane.
• Add the column chart data by dragging and dropping it into the "Column y-axis" field.
• Add the line chart data by dragging and dropping it into the "Line y-axis" field
How to Customize
a Combo Chart
• To format the
line in your
combo chart,
go to "Format
your visual" >
"Visual" >
"Lines" Here,
you can change
the color and
thickness of
the line. You
can change the
shape type of
the line.
• To format the column in your combo chart, go to "Format your visual" > "Visual" >
"Column" Here, you can change the color and transparency of the column, and adjust the
spacing between columns.
• You can also Show Markers, can Change Shape type in "Markers".
Scatter Chart | Cheat Sheet

Content
• Scatter Chart
• When to use a Scatter Chart

Scatter Chart
• Scatter chart in Power BI is a type of visualization that displays data points as dots on a two-
dimensional chart.
• Scatter charts are used to show the relationship between two variables, such as how one
variable affects the other.
• In a scatter chart, one variable is plotted on the horizontal axis (x-axis), and the other
variable is plotted on the vertical axis (y-axis).
• Each data point represents a combination of the two variables and the position of the point
on the chart corresponds to the value of each variable.
• Scatter charts can be used to identify patterns or trends in the data, such as a positive or
negative correlation between the two variables.
When to use a Scatter Chart
• To show relationships between two numerical values.
• To plot two groups of numbers as one series of x and y coordinates.
• To use instead of a line chart when you want to change the scale of the horizontal axis.
• To display worksheet data that includes pairs or grouped sets of values.
• To show patterns in large sets of data, for example by showing linear or non-linear trends,
clusters, and outliers.
• To compare large numbers of data points without regard to time.
• The more data that you include in a scatter chart, the better the comparisons that you can
make.

Scatter Chart | Hands on Guide

Content
• How to add a Scatter Chart
• How to customize a Scatter Chart

How to add a Scatter Chart


You can add a Scatter Chart in Power BI by following these steps:
Step 1: Open the report or dashboard where you want to add the Scatter Chart.
Step 2: Click on the "Scatter Chart" icon from the "Visualizations" pane on the right-hand side of
the screen.
Step 3: Drag and drop the fields you want to use for the x and y-axis into the "X axis" and "Y axis"
field well.

Step 4: You can also drag and drop additional fields into the "Legend" or "Size" field wells to add
more dimensions to your scatter chart.

How to customize a Scatter Chart


To customize a Scatter Chart in Power BI, you can follow these steps:
Select the scatter chart you want to customize.
Click on the "Format" icon on the right-hand side of the screen.
In the "Visualizations" pane, you'll see various formatting options that you can use to customize
your chart. Some of the most common options include:

Marker: you can change the appearance of the data points or markers on the chart. Some of the
marker options that you can customize in Power BI include:
Marker shape: You can choose from a variety of marker shapes, such as circles, squares, diamonds,
triangles, and more.
Marker size: You can adjust the size of the markers using a slider or by typing in a specific value.
This allows you to make the markers larger or smaller, depending on your preference.
Marker color: This allows you to use different colors to represent different data points or to make
the chart more visually appealing.
Zoom Slider: The Zoom Slider is a customization option in a Scatter Chart in Power BI that allows
you to zoom in and out of the chart to focus on specific data points or areas.
This feature can be particularly useful when you have a large amount of data and want to focus on a
specific subset of that data.

Gauge Chart | Cheat Sheet

Content
• Gauge Chart
• When to use a Gauge Chart
Gauge chart
• A Gauge Chart is a circular arc that shows a single value that measures progress toward a
goal or target.
• The line or needle on the chart represents the goal or target value, and the shading represents
the progress toward that goal.
• Gauge charts are useful for displaying metrics that are best understood in the context of a
range or a target value.
• For example, a gauge chart can be used to show progress towards a sales target, with the
pointer moving towards the target value as sales increase.

When to use a Gauge chart?


• Gauge charts can be used to represent progress towards a goal or target, such as a sales
target or a fundraising goal.
• Gauge charts are useful when you want to track a single metric, such as sales or revenue,
and display it in a visually appealing way.
• Use it for tracking Key Performance Indicators (KPIs).
• Use it to display information that you can quickly scan and understand.

Gauge Chart | Hands On guide

Content
• How to add a Gauge chart?
• How to customize a Gauge chart?

How to add a Gauge chart


For example, we have a dataset containing information on profits and target profits. In order to track
the progress towards achieving our target profit, we can utilize a gauge chart as a data visualization
tool.
• Go to the "Visualization" pane.
• Select the "Gauge" icon
• Add the "Profit" from the "Orders" table in the "Value" field.
• Add the "Target profit" in the "Target value" field.
How to Customize a Gauge chart
Select you Gauge visualization. Go to "Format your visual" in Visualization pane.
• Gauge Axis: You can set the minimum and maximum range of the gauge axis.
• Color: You can change the fill color of the progress bar and the target line color.

• Data Label: You can format the data label, target label, and call out value.
• Title: You can format the title in General option.
Waterfall Chart | Cheat Sheet

Content
• Waterfall Chart
• When to use a Waterfall Chart

Waterfall Chart
• A waterfall chart displays how an initial value(like net income) is affected by a series of
positive and negative values, resulting in a final value.
• It is often used to show how different factors contribute to a change in a specific metric,
such as sales revenue or expenses.
• A waterfall chart in Power BI consists of columns that represent the individual changes, with
the length of the column proportional to the magnitude of the change.
• The resulting chart provides a clear visual representation of the total change and how it is
composed of individual contributing factors.

When to use a Waterfall Chart


• When you have changes for the data across time or different categories.
• To audit the major changes contributing to the total value.
• To plot your company's annual profit by showing various sources of revenue and arrive at
the total profit (or loss).
• To illustrate the beginning and the ending headcount for your company in a year, showing
hires, terminations, and other changes.
• To visualize how much money you make and money you spend each month, and the running
balance for your account.
Waterfall Chart | Hands on Guide

Content
• How to add a Waterfall Chart
• How to customize a Waterfall Chart

How to add a Waterfall Chart


For example of when to use a waterfall chart in Power BI is to visualize changes in monthly profits
over time. By displaying the monthly profits as individual columns with positive or negative values,
the chart can clearly show which months had a positive or negative impact on overall profit.
• Open the "Visualization" pane in Power BI.
• Select "Waterfall Chart" from the list of visualizations.

• Drag and drop the fields you want to use into the correct fields:
• Month from Date hierarchy in Category field.
• Profit in Y-axis field.
How to customize a Waterfall Chart
Note: Waterfall charts have all the customization options just like the column charts such as X-axis,
Y-axis, legend, Data labels etc.
• You can change the color of the columns from the Columns option.
Map Visualization | Cheat Sheet

Content
• Map visualization
• When to use a Map

Map Visualization
• The map visual in Power BI is a type of visualization that allows you to display location-
based data on a map.
• With map visualization, users can display data in a way that is visually appealing and easy to
understand.
• Users can add their own data to the map by using latitude and longitude coordinates or by
using geographical data such as city names, postal codes, or country names.
• Map visualization can be used for various purposes such as sales analysis, demographic
analysis, and market research.
Note:
In Power BI, map visualization uses Bing Maps to display data.
Types of maps in Power BI
There are two types of default map visuals available in Power BI.
1. Basic Map
• It displays points on a map as circles or bubbles that vary in size based on a specific
value or data point.
2. Filled Map
• It shows how a value varies in proportion over geography or region by using shading,
coloring, or patterns.

When to use a Map


• Maps are used to analyze data that is related to a specific location, such as sales by region,
states, and customer demographics by ZIP code.
• When you want to visualize the geographic distribution of your data and show the relative
size or value of a metric across different regions.

Map visualization | Hands On guide

Content
• Points to Remember
• How to add a Basic Map

Points to Remember
Quick Tip:
Whenever working with location fields (country, state, city, etc.), it's better to tell Power BI which
column is location-based. Therefore, we need to categorize columns as country, state, city, etc. for
location-based visualizations.

How to categorize data in Power BI?


1. Go to Data view.
2. Select the location-based column from dataset containing the column.
3. Go to the Column tools menu.
4. From Data category , select the appropriate location-based category (e.g., State or Province).

Warning: You may get error "Map and filled map visuals are disabled" while adding map visuals in
your report.

How to fix the error


1. Go to File Menu > Options and settings.
2. Select Options.
3. Click on Security in Global Options.
4. Scroll down and click on Use Map and Filled Map visuals
.
How to add a Basic Map
• Add the location-based column (e.g., State) from the table to the Location field well.
• Add a data value (e.g. Selling price) to the Bubble size field well.
• Power BI will automatically generate a map visual based on the data you provided. The map
will show data points or areas based on the geographic data in your data fields.
Adding a Basic Map with latitude and longitude field
Filled Map visualization | Hands On guide

Content
• How to add a Filled Map
• How to add different shades in Filled Map

How to add a Filled Map


• Add a Filled map visualization from the Visualization pane.
• In the Location field, add a column that contains standard location names (e.g. State or city)
to define the geographic regions on the map.
• In the Tooltips field, add a column that contains the data you want to display when users
hover over the regions on the map (e.g., Selling price).

How to add different shades in Filled Map


• Go to Format your visual by selecting the Filled map visual.
• Under the Fill colors => Colors option, click on the fx button (conditional formatting).

• Choose Gradient in the Format style dropdown.


• Select the data field that you want to use to define the color shades (e.g., Selling Price).
• Choose the Add a middle color to set the midpoint of the color gradient.
• Select the colors you want to use for the lowest and highest values.

Q&A Visual | Cheat Sheet

Content
• Q&A Visual
• When to use a Q&A Visual
• Core components of the Q&A Visual

Q&A Visual
• The Q&A visual in Power BI allows users to ask natural language questions and get answers
in the form of a visual.
• The Q&A visual is powered by a natural language engine that understands the meaning
behind the user's question and maps it to the appropriate data in the model.

When to use a Q&A Visual


• The Q&A visual is very useful when you want to create something quickly.
• If you need ideas, Q&A can help by suggesting types of data to use in your visual and visual
type to use in your report.

Core components of the Q&A Visual


1. The question box. This is where users type in their question and are shown suggestions to
help them complete their question.
2. A pre-populated list of suggested questions.
3. Icon to convert the Q&A visual into a standard visual.
4. Icon to open Q&A tooling, which allows designers to configure the underlying natural
language engine.

Q&A tooling | Hands On guide


Content
• Q&A tooling
• Get started with Q&A tooling

Q&A tooling
By using the Q&A tooling in Power BI, you can enhance the natural language experience for your
users.
• Review questions your users have asked.
• Teach Q&A to understand questions.
• Manage terms you've taught Q&A.
• add Field synonyms to match the columns

Get started with Q&A tooling


• Select the gear icon located at the corner of the visual.

Teach Q&A
• Teach Q&A allows you to teach Power BI's natural language processing engine new terms
related to your data.
• To begin, enter a question containing an unrecognized word or phrase.
• Q&A will prompt you to define it by entering a field name that corresponds to what the
word represents.
Field synonyms
• Alternative names can be used for field names when working with data.
• For example, Selling price can be referred to as sale , which can be added as a synonym for
the field
• In Field synonyms, select table to expand
• You can quickly see all the terms in one place and add or remove terms for multiple
columns.

Suggest questions
• It allows you add suggested questions for the visual, which will appear as suggestions to
users
• This can be useful if you want to include popular or commonly asked questions
Q&A tooling | Hands On guide
Content
• Q&A tooling
• Get started with Q&A tooling

Q&A tooling
By using the Q&A tooling in Power BI, you can enhance the natural language experience for your
users.
• Review questions your users have asked.
• Teach Q&A to understand questions.
• Manage terms you've taught Q&A.
• add Field synonyms to match the columns

Get started with Q&A tooling


• Select the gear icon located at the corner of the visual.
Teach Q&A
• Teach Q&A allows you to teach Power BI's natural language processing engine new terms
related to your data.
• To begin, enter a question containing an unrecognized word or phrase.
• Q&A will prompt you to define it by entering a field name that corresponds to what the
word represents.

Field synonyms
• Alternative names can be used for field names when working with data.
• For example, Selling price can be referred to as sale, which can be added as a synonym for
the field
• In Field synonyms, select table to expand
• You can quickly see all the terms in one place and add or remove terms for multiple
columns.
Suggest questions
• It allows you add suggested questions for the visual, which will appear as suggestions to
users
• This can be useful if you want to include popular or commonly asked questions

Funnel chart | Cheat Sheet


Content
• Funnel chart
• When to use a Funnel chart
• Download dataset

Funnel chart
• A Funnel Chart shows data through different stages in a process.
• Each stage is represented by a horizontal bar with the width of the bar proportional to the
percentage of items in that stage.
• The bars are arranged in decreasing order of width.
• They are ideal for visualizing the flow of data through a sequence of stages, where the
values decrease as they move from one stage to the next.

When to use a Funnel chart


• When the data is sequential and moves through different stages.
• To calculate and track conversion and retention rates.
• For example, to track the progress of users through stages of a hiring process
• To track a shopping cart workflow. For example, You could use a funnel chart to track the
progress of users through these stages, as follows:
• Visitors represents all visitors who come to your website.
• Product views represents visitors who browse your products by clicking on them to
view more details.
• Add to cart stage represents visitors who add products to their cart by clicking the
"Add to Cart" button.
• Checkout stage represents visitors who proceed to the checkout page to complete
their purchase.
• Purchase stage represents visitors who successfully complete their purchase and
become customers.
Funnel chart | Hands On guide
Content
• How to add a Funnel chart
• How to customize a Funnel Chart

How to add a Funnel chart


• Go to the "Visualization" pane.
• Double click on "Funnel" Chart icon.
• In a funnel chart, you need to provide data for two field wells:
• Category - it represents the stages of the process.
• Values - it should contain numerical data that correspond to each category/stage.
• Put the category and value columns in the respective category and value fields.

How to customize a Funnel Chart


• Customization options are available for funnel charts, including options to change the colors,
format data labels, and format category labels etc.
• To apply color coding or conditional formatting
• Select visual -> Go to Format your visual
• Under Colors -> Click on fx icon
• Apply below settings
Treemap Visual | Cheat Sheet

Content
• Treemap visual
• When to use a Treemap Visual
• Examples

Treemap Visual
• A Treemap visual in Power BI displays hierarchical data as nested rectangles.
• Each level of the hierarchy is represented by a colored rectangle (branch) containing smaller
rectangles (leaves).
• The size and color of each rectangle represents a different data value, allowing you to see
patterns and trends in your data
• The rectangles are arranged in size from top left (largest) to bottom right (smallest).

When to use a Treemap Visual


• To display large amounts of hierarchical data, such as Sales by state and city
• When a bar chart can't effectively handle the large number of values.
• To show the pattern of distribution of the value across each level of category in the
hierarchy.
• By using size and color coding, it is possible to show attributes and subcategories of data
within the visualization.
• To show attributes using size and color coding.

Some examples of when to use a treemap in Power BI


• Sales by category
• If you want to visualize sales data for different product categories, a treemap can be
used to show the relative sales for each category.
• Employee performance by department
• A treemap can be used to visualize employee performance data by department, with
each rectangle representing a department and the size and color indicating the
performance metric.
• Web traffic by page
• If you want to see which pages on your website are getting the most traffic, a
treemap can be used to visualize the number of visits to each page.

Treemap Visual | Hands On guide

Content
• How to add a Treemap Visual
• How to customize a Treemap Visual

How to add a Treemap Visual


We want to create a treemap visualization that displays the total sales data categorized by state and
city.
• From Visualization pane click on "Treemap" visual icon.

• Add State in Category field


• Add Selling price in Values field
• To further visualize city wise, add city in Details field

How to customize a Treemap Visual


• Select your Treemap visual -> Go to "Format your visual"
• Under Colors , you can change color for individual category.
• Data labels, to see values in Treemap visual.

Ribbon Chart | Cheat Sheet

Content
• Ribbon Chart
• Ribbon Chart vs Stacked Column Chart
• When to use a Ribbon Chart

Ribbon Chart
• A Ribbon chart is used to show changes in data over time.
• Ribbon charts are effective at showing rank change, with the highest value always displayed
on top for each time period
• In a ribbon chart, the X-axis represents time, and the Y-axis represents the value of the data.
• The different categories of data are represented by colored ribbons that flow and overlap
with each other.
• The width of each ribbon represents the proportion of the data that belongs to that category.

Ribbon Chart vs Stacked Column Chart


• A Ribbon Chart displays data in flowing ribbons that overlap and change in width over time.
• A stacked column chart displays data as a set of vertical columns that are stacked on top of
each other.

When to use a Ribbon Chart?


• Ribbon charts are useful for showing trends and patterns in data over time.
• Particularly effective when used to compare multiple categories of data simultaneously.
• They can also be used to highlight changes in the distribution of data over time.
• Showing trends over time or dimensions, if you want to show how a measure changes over
time or across different dimensions.
• Highlighting the most important items If you have a category where a few items dominate
the values, ribbon chart shows the most important items first, making it easier to identify and
compare the values.

Ribbon Chart | Hands On guide

Content
• How to add a Ribbon Chart
• How to Customize a Ribbon Chart

How to add a Ribbon Chart


• In "Visualizations" pane -> Click on the "Ribbon chart" option.

• Drag and drop the relevant fields.


• Add "Quarter" from date Hierarchy to X-axis
• "Selling price" to Y-axis field well
• "Add Category" to Legend field
How to Customize a Ribbon Chart
• Add data labels Select visual -> "Format your visual" -> select the "Data labels" option.
• Ribbons You can change the color of the ribbons, adjust the spacing between them, and
format the ribbon connectors.

• 100% connector transparency makes ribbon chart look like stacked column chart
Multi-row Card | Cheat Sheet

Content
• Multi-row Card
• When to a use Multi-row card

Multi-row Card
• In Power BI, a multi-row card is a type of visualization that displays data in multiple rows.
• Where each row represents a unique value for a category.
• With a multi-row card in Power BI, you can quickly and easily compare data across multiple
fields
• For example, we can visualize Total Sales, Profit and Quantity sold all in a single card

When to a use Multi-row card


• When we want to display multiple data points or facts (such as total profit, total sales ) in a
single card.
• To optimize space, we can use a single card instead of multiple card visuals
• When we want to compare different facts in our data such as total profit, total sales etc.
• Providing summary information: A multi-row card can be a good choice when you want to
provide summary information about a dataset
For example, we can use a multi-row card to display KPI facts such as total sales, profit, and total
orders for a particular state.

Multi-row Card | Hands On guide

Content
• How to add a Multi-row Card
• How to a customize Multi-row card

How to add a Multi-row Card


• In "Visualizations" pane -> Click on the "Multi-row card" icon.
• Drag and drop the relevant fields.

• Add Selling price, Profit, Order ID in Fields


How to a customize Multi-row card
• A multi-row card offers customization options for Callout values, Category labels, and
allows you to change text color, size, font, and other formatting options.

• Cards option allows you to change the background color of your card, apply a border to the
card, change the border color, and make other formatting adjustments.

• Accent bar, allows us to format the vertical line which is at left.


Key Performance Indicator (KPI) Visual | Cheat Sheet

Content
• Key Performance Indicator (KPI) Visual
• Key Elements of a KPIs
• When to use a KPI visual

Key Performance Indicator (KPI) Visual


• A KPI visual type of data visualization that displays a single value metric, such as sales
revenue, alongside an indicator that shows the performance of the metric relative to a target
or goal.
• The visual also displays additional information such as a trend line or historical data to
provide context for the KPI.
• A KPI shows progress towards a measurable goal
• For example, to see how the current quarter-to-date profits are going against what we
estimated

Key Elements of a KPIs


1. Value: The primary measure that we want to evaluate, such as sales revenue, customer
satisfaction score, or website traffic.
2. Target: The desired or expected level of performance for the Value. This could be a specific
goal or a benchmark based on historical performance or industry standards.
3. Trend: How the Value is performing over time, whether it is increasing, decreasing, or
staying the same.
4. Status: The current performance of the Value relative to the Target. This can be shown using
indicators such as color-coded arrows or symbols, which indicate whether the Value is
above, below, or on target.
When to use a KPI visual
KPI visuals are useful for measuring progress and distance to a goal. They can answer the following
questions:
• "What am I ahead or behind on?" - KPI visuals can be used to measure progress towards a
specific target or goal, and show whether performance is ahead or behind that target.
• "How far ahead or behind am I?" - KPI visuals can also show the distance between current
performance and a specific target or goal, making it easy to see whether performance is on
track or needs to be improved.

Key Performance Indicator (KPI) Visual | Hands On guide

Content
• How to add a KPI visual
• How to customize a KPI visual

How to add a KPI visual


• In the "Visualizations"
pane -> Click on the
"KPI” icon.
• Drag and drop the relevant fields.
• Add Profit to Value field
• Add Month from date Hierarchy to Trend axis
• Set Target Profit to Target field

Note: The KPI visual displays the value of the last data point, which in this case is for the month of
December. Additionally, the trend chart in the background is equivalent to an area chart that shows
the profit by month.eate

How to customize a KPI visual


To customize a KPI visual, we can format callout values, change the size of status icons in the
Icons option, and enable or disable various elements such as the trend axis and goal. It allows you to
change text color, size, font, and other formatting options.
• Trend axis option - allows us to format color coding to the card, change the border color, and
make other formatting adjustments.
• Depending on the nature of the indicator, you may choose High is good or Low is
good
• For example, in the case of Sales, a higher value is considered better, while for
Expense, a lower value is preferred.

• Date option - It shows the date for which the value it is showing
Adding a Filter | Cheat Sheet

Content
• Introduction
• When to use Filter?
• Types of Filter
• Slicer vs filters

Introduction
• A filter is a tool that allows you to limit the data displayed in your dashboard based on
criteria or on any specific condition.
• Filters remove all data except the data you want to focus on.
• Filters can be used to customize the view of the data based on your preferences.

When to use Filter?


• When you want to display or focus on a specific set of data.
• When comparing data from different periods or categories.
• Filters can be used to create dynamic visuals that allow users to interact with the data and
explore it in different ways.
• For example, you can use filters to create slicers that allow users to filter the data displayed
in a chart or table
Types of Filter
• Visual level filters / Filters on this visual
These filters apply to individual visuals in a report
• Page level filters / Filters on this page
That are applied to all visuals on a specific page of a report
• Report level filters / Filters on all pages
These filters are applied to all the pages in the report
• Drillthrough filters
Drill through simply means jumping from one page to another page, while carrying some
filter along.

Slicer vs filters

Slicer Filter
A slicer is a visual control that allows you to It is a tool for developers to configure visuals or
interactively filter data in a report report before it is provided to consumers
Slicer is an on-canvas, dynamic feature Filter is a hidden, static feature
It can be applied on all the pages of the same
Slicers are restricted to a report page
report
Slicer Filter
A filter can be applied to a specific visual on the
A slicer is only applied to entire page
page, such as tables, charts or cards
Slicers can interact ,users can pick and choose Filters are not interactive, control by power bi
what they want displayed in the visuals developer

Adding a Filter | Hands On guide

Content
• How to add a Filter?
• To add a filter on a visual
• Basic filtering
• Advanced filtering
• Top N filtering

How to add a Filter?


• Select a visual
• Go to the Filter pane to the left of Visualization pane.
• In Filter types, you get 3 filter types:
• Filters on this Visual
• Filters on this Page
• Filters on all Pages
To add a filter on a visual
• Choose a data column to apply filters.
• Category
• Selling Price
• Or can add any other data column from dataset to
Add data fields

For example, we want to apply filter on Category, click on category field


• Three options are available in Filter type
• Basic filtering
• Advanced filtering
• Top N

Basic filtering
• This is the simplest type of filtering, where you can select a specific value
Advanced filtering
• It allows you to create more complex filters using multiple conditions
• For example we want to filter data based on city
• Add city data column in “Add data fields here ”
• Select Advanced filtering in Filter types
• Select starts with condition from dropdown list and Type A in box below

• Once you have applied the filter the visual will only display the data for cities that start with
"A"
Top N filtering
• This type of filtering allows you to show only the top N items in a visual, where N is a
specified number.
• For example, Top 5 cities by sales
• We have a column chart of Selling price by city, we only want top 5 performing(cities with
highest sum of profit) cities in visual
• Show items - Enter specific number
• By value - drag and drop data column

• Click on apply filters

Cross Filtering | Hands On guide

Content
• Introduction
• Visual Interaction
• Types of Interactions:
• How to Edit Interactions

Introduction
• Cross filtering is a feature in Power BI that allows users to filter data in one visual based on
selections made in another visual on the same page.

Visual Interaction
• Visual interaction is a feature in Power BI that allows users to interact with different visuals
on a page by clicking or selecting data points in one visual to impact other visuals on the
same page.
• When a user clicks on a data point or selects a filter in one visual, this can trigger a filter or
highlight effect on other visuals

Types of Interactions:
• Filter
• Filters data in one visual based on selections made in another visual on the same
page.
• Highlight
• Highlights data in one visual based on selections made in another visual on the same
page.
• None
• Disables any interactions between visuals on the same page.

How to Edit Interactions


• Click on a visual.
• Go to the Format ribbon and click on Edit interactions
In edit interaction mode, we generally see three options on Visuals
• Filter
• Highlight
• none

• Click to enable a specific type of interaction, you want.

Drill Through Filters | Hands on Guide

Content
• Drill Through Filtering
• Adding Drill Through Filters

Drill Through Filtering


• Drill through filtering is the process of navigating from one page (source) to another
(destination) and carrying some filters along.
• The second report page (destination) then filters its results based on the selected value,
allowing users to explore and analyze data.
• It allows you to explore data in more detail and gain insights that might not be possible at a
high level.

Adding Drill Through Filters


For example, We have two report pages: the product category page, which contains sales details for
each category, and the subcategory page, which provides detailed information about sales by
product subcategory. By drilling through from the category page to the subcategory page, we can
gain insights into which product subcategories are contributing to sales for each product category.
• Go to the destination page (subcategory page), where you want to drill through
• We have Drill through pane below visualizations

Drag and Drop Category field in Add drill-through fields here.

• You can see a drill through button appeared on your page

• Go to the source page (category page)


• In a visualization that includes a category, right-click on any category
• We see a Drill through filter option
• Click on Drill through option and select destination page(Subcategory)

• It will take you to the destination page to view the filtered data.
Note - Enabling the Keep all filters option during drill-through ensures that any filters that have
been applied on the source page or visual will also be applied to the destination page.

Drill Down | Cheat Sheet

Content
• Introduction
• Hierarchy
• Types of Hierarchy in Power BI:

Introduction
• Drill down filtering in Power BI is a feature that allows users to explore hierarchical data in
greater detail by navigating from a higher level of data to a more detailed level..
• This feature is helpful when analyzing large amounts of data and enables users to quickly
gain insights into trends and patterns by drilling down into specific data points.
For example, a user can start by viewing total sales by year and then drill down to see sales by
quarter, month, and day.
Note - To use the drill mode, the Power BI visual must have a hierarchy

Hierarchy
• A hierarchy is a way of organizing related data fields into a structured order.
• It is used to create a drill-down report that allows users to drill down or roll up to different
levels of detail in a report or visualization.
For Example a date hierarchy includes the fields Year Quarter Month Day

Types of Hierarchy in Power BI:


System-defined hierarchies:
• These hierarchies are predefined by Power BI and cannot be modified by users.
• For example, Date Hierarchy: This hierarchy includes fields like Year, Quarter, Month, and
Day

User-defined hierarchies:
• These hierarchies are created by the users based on their specific needs.
• Users can create a user-defined hierarchy by selecting the relevant fields and arranging them
in a hierarchical structure.
• For example, a user may create a Geography Hierarchy that includes fields like Continent,
Country, State, and City
Drill Down | Hands On Guide

Content
• How to create a Hierarchy
• How to create a Drill Down Report

How to create a Hierarchy


For example, we will create a geography hierarchy that includes the fields 'State' and 'City'.
• Right click on the state column and select "Create Hierarchy".
• A State hierarchy will be created

• Right click on the city column and select "Add to Hierarchy".


• You can rename it to 'Geography Hierarchy' by right-clicking on it.

How to create a Drill Down Report


• Create a visual using a hierarchy.
• Example: column chart for Selling price by date hierarchy.

• At upper right corner of the visual, we have four Drill options

• Drill up: go up a level in the hierarchy.


• Drill down: drill through a specific data point.
• Go to the next level: show all data for each category.
• Expand: expand based on the categories in the hierarchy.

• You can drill down to next level of hierarchy by using above options
Formatting Filters | Hands on Guide

Content
• Filter Pane
• Show or Hide the Filters Pane
• Hide the Filter Pane While Editing
• Lock or Hide a Filter
• Format the Filters pane
• How to Format the Filter Pane

Filter Pane
• The filter pane in Power BI is a panel that displays all the filters applied to a report.
• The filter pane allows users to view and adjust all the filters that are currently in use.
• The filter pane contains filter controls that allow users to select values based on their
preferences.

Show or Hide the Filters Pane


• If you don't want your report readers to see the filter pane, you can hide it by clicking on the
eye icon located beside the "Filters" option

Hide the Filter Pane While Editing


When working on a report and you require additional space, it's possible to hide the filter pane
while editing the report.
• Go to View tab
• Select Filters to show or hide the Filter Pane
Lock or Hide a Filter
• You can lock or hide individual filter cards to prevent report users from modifying them.
• When a filter is locked, it remains visible to report users, but they cannot modify or edit it in
any way.

• If you hide a filter, it won't be visible to report users at all.

• Select a visual and go to Filter pane


• Select the Hide Filter icons in a filter card within the filter pane
• As you turn these settings on and off, changes will be reflected in the report
Format the Filters Pane
Customizing the appearance of the filter pane to match the report's design is an essential aspect of
the filtering experience. Here are elements you can format:
• Background color
• Background transparency
• Border on or off
• Border color
• Title and header font, color, and text size

How to format the Filter Pane


• Select the report canvas(click on empty space on canvas) in your report page
• In the Visualizations pane, select the "Format your rapport page" option
• This will display formatting options for filter pane, and filter cards

• To change the filter pane's appearance, expand the "Filters pane" option
• You can then set the text size, background color, icon, and left border to complement the
report page's design
• Customize the background color by choosing a color of your choice

• Change the Headers size


• This will help make your report visually appealing and consistent.

Formatting Filter Cards | Hands on Guide

Content
• Filter Cards
• Filter have two states in Power BI
• How to Format Filter Cards

Filter Cards
These are visual elements that show the filters applied to a report or visual.
Filter have two states in Power BI

Default
• It is the initial state of a filter when it is added to a visual or report, where all data is
displayed and the filter is not restricting any data

Applied
• It indicates that the filter is restricting the data displayed in a visual or report.
• Once a filter has been applied, it will show the selected values or ranges and filter out the
rest of the data accordingly.

How to Format Filter Cards


• Select Canvas => “Format your report page”
• Expand Filter cards
• we can select default and applied from state option to apply formatting

• If you want to differentiate between the Applied and Default state of a filter, you can apply
different formatting such as background color, font, size, etc. to each state.
Date Based Filter | Hands on Guide

Content
• Date Filters
• Date Filters using Slicer
• Date Range Slicer
• Date Filtering using Filter Pane

Date Filters
• We can filter data based on a specific date or date range
• It allows us to view data for a particular time period by filtering out unnecessary data
• For example, You can use the relative date filter to show only the sales data that's happened
within the last 30 days (or month, calendar months, and so on)

Date Filters using Slicer


Add a slicer in your report from Visualization pane Add a Date column in the slicer field. Make sure
you have added a date column not date hierarchy
Date Range Slicer
• Select your date slicer
• Go to “Format your pane” => Visual option
• In Slicer setting => Options
• Under style, we have date related filters options such as
• Between
• Relative Date
• Relative Time
• After or before
• Select Between to create a range slicer

• Define any range just by dragging the slicer button to filter data
Relative Date Slicer
Relative dates are used to express time in relation to a specific point in time, rather than a fixed,
absolute date. For example, you could create a relative date filter that shows data for the last 30
days.
• Select date slicer => Format your visual => Under Visual => Slicer settings
• From style option, select Relative date
• We have three setting options in relative date slicer
• For the first setting, we have the following choices:

• Last
• Next
• This
• In the second setting in the relative date slicer, it takes a number to define the relative date
range.

• In the third setting, define the date measurement from


• Days
• Weeks
• Months
• Years

Date Filtering using Filter Pane


We can add date based filters using the Filters pane on various levels such as visual, page and report
level. For example, here we will filter our page based on Order Date field
• Go to Filter pane
• Add Order date field in “Filters on this page”
• Under Filter type, we have various filter options

• Select the filters you want and click on Apply filter


• For example, a relative date filter
Power BI Service Introduction | Cheat sheet

Content
• Power BI Service
• Power BI Desktop vs Power BI Service
• Power BI Service Interface

Power BI Service
• It is a cloud-based business analytics service platform provided by Microsoft.
• It allows users to publish their Power BI reports and dashboards to the cloud.
• It provides a centralized platform where users can store and access their data, reports, and
dashboards securely from anywhere using a web browser.
• Power BI Service offers additional capabilities such as integration with other Microsoft
services like Excel, SharePoint, and Teams.

Power BI Desktop vs Power BI Service

Power BI Desktop Power BI Service


Installed locally on desktop Web-based cloud service
Data transformation through the Query Editor Doesn't support data transformation
Comprehensive data modeling capabilities Limited data modeling
Many data sources Few data sources

Quick Tip: You can access the Power BI service by visiting the following
link: https://app.powerbi.com/
Note: You can sign up for Power BI service only with your school or organizational email.

Power BI Service Interface


• Home contains Recent, Favorites, Recommended content
• In Create, we can build a report in Power BI service either by selecting a published dataset
or by manually pasting data.
• The Data Hub contains all of your published datasets and allows you to view the tables of
your dataset.
• In The Learn section, you will discover sample reports and various learning resources such
as documentation and articles focused on Power BI.
• My Workspace: It is a personal area where users can store and manage their own content,
including reports and dashboards. It serves as a work area for users to create, edit, and
access their content.

Creating Dashboards using Power BI Service | Hands on Guide

Content
• Creating a Dataset
• Creating report from this dataset
• Publishing your report from Power BI Desktop to Power BI Service
• Creating A Dashboard From A Report
• Adding a tile
• Adding a image

Creating a Dataset
• Go to "My Workspace" in the Power BI interface.
• Click on "New" to access the dropdown menu options.
• From the dropdown menu, select "Dataset" as your choice.
• Pick data source Excel or CSV

• Select your Dataset from File Explorer

Creating report from this dataset


• Go to "My Workspace" in the Power BI interface.
• Click on "New" and select the “report”.
• It will redirect to the Create tab. Choose “Pick a published dataset”.

• You will find your published dataset here. Select it to create a report.
• You will have the option to create a report.
• Auto-create report - Power BI automatically generates a basic report
• Create a blank report - Open report canvas just like Power BI Desktop

Publishing your report from Power BI Desktop to Power BI Service


• From the Home ribbon, click on “Publish”.

• If you're not already signed in to the Power BI service, enter an account, then click or tap
Sign in.
• Enter a password, then click or tap Sign in.
• Choose a destination for the report, Select “My workspace” then click on the select button.

• The Power BI service loads the report in My workspace along with the dataset associated
with it.

Creating A Dashboard From A Report


• Open a report from My workspace
• Hover over visualization for options
• Select pin icon to add visualization to dashboard
• Choose an existing dashboard or a new dashboard
• If choosing a new dashboard, enter the name. Click on Pin

• You can find your open dashboards and reports in the Workspaces section

Adding a tile
• Open your dashboard.
• Click on the "Edit" button. Select the option "Add a tile"

• You can add images, web content, videos, and text boxes to your dashboard
Adding a image

• Click on the "Image" option.


• Provide a title for the image.
• Paste the URL of the image.
• Click on the "Apply" button.

Collaboration using Power BI Service | Hands On Guide

Content
• Collaboration using Power BI Service
• Share Reports or Dashboards
• Adding a Report to PowerPoint
Collaboration using Power BI Service
• Collaboration in Power BI service refers to the ability for multiple users to work together on
a report or dashboard
• It allows users to share their work with others, co-author, and make use of communication
tools to discuss and collaborate on the content

Share Reports or Dashboards


• Open the report that you want to share.
• Click on Share option

• You can share your report via copy link, email, Teams, and PowerPoint.

Adding a Report to
PowerPoint

• In the 'Send link' window, click on PowerPoint


• Copy the link
• Open PowerPoint and navigate to the slide where you want to add the report
• Select the “Insert” and choose the Power BI button from “Add-ins”

Live Dashboard | Cheat Sheet

Content
• Live Dashboard
• PubNub Streaming
Live Dashboard
• It is also known as real-time streaming.
• A live dashboard provides real-time data insights and updates as new data is added to the
data source.
• This means that the information displayed on the dashboard is constantly updating and
providing users with the most current view of their data.

PubNub Streaming
• PubNub is a data stream network that enables developers to easily and securely build and
scale real-time applications.
• In streaming data, information continuously flows in real-time from various sources.
• PubNub real-time streaming APIs allow you to generate, process and deliver streaming data
to any number of subscribers.

Live Dashboard using Power BI Service| Hands On Guide

Content
• Creating a Live Dashboard

Creating a Live Dashboard


• Open the "Power BI Service" platform.
• Navigate to "My Workspace" and click on "New" . Select "Streaming Dataset"
.
• Select PUBNUB form opened window and click on “Next”

• Enter the following details and click Next


• Dataset name
• Sub-key
• Channel name

Quick Tip: To get the key, go to this link https://www.pubnub.com/demos/real-time-data-


streaming/?show=dem

This
window
will open,
click on
the
"Create"
button at
the bottom
You can see your live dataset on your workspace
• Now Create a dashboard
• Give your dashboard a name
• Click on Edit to add a tile
• Select Custom Streaming Data

Select Live Dataset(name of


your dataset) from “YOUR
DATASET” section
• To add a Line chart,
select
• Select the
"Line"
visualization
type.
• Set the "timestamp" as the axis.
• Choose "ambient_temperature" as the values.
Power BI Reports For Inspiration | Cheat Sheet

Contents
• Olympic Games
• Transport and Shipping
• Space Analytics
• Sales and Purchases
• Retail Analysis

Olympic Games
• Olympic Games Dashboard link
• The "120 Years of Olympic Games" Power BI report provides a comprehensive overview of
the modern Olympic Games from Athens 1896 to Rio 2016.
• It showcases historical data on various aspects, including participating countries, medal
counts, sports events, and records.

Transport and shipping


• Transport and Shipping Dashboard link
• This report provides a overview of key metrics and insights related to transportation and
shipping.
• The summary page gives a holistic view of total costs, total profit, and other overall insights,
enabling users to understand the financial performance of the transportation operations at a
glance.
• The key metrics page focuses on revenue and costs based on different shipment modes such
as air, sea, road, and rail.
Space Analytics
• Space Analytics Dashboard link
• The "Space Analytics" Power BI report presents an in-depth analysis of space mission data
from 1957 to 2022, organized by country and company, along with mission success
percentages.
• Users can explore the success rates of space missions undertaken by various nations and
organizations, gaining insights into their performance and achievements.
Sales and Purchases
• Sales and Purchases Dashboard link
• The "Sales and Purchases Dashboards" in Power BI uses advanced visualizations to provide
a comprehensive overview of sales and purchasing.
• It offers interactive filtering and slicing capabilities, empowering users to customize their
views based on specific criteria.

Retail Analysis
• Retail Analysis Dashboard link
• The Retail Analysis built-in sample contains a dashboard, report, and dataset that analyzes
retail sales data of items sold across multiple stores and districts.
• The metrics compare this year's performance to last year's for sales, units, gross margin,
variance, and new-store analysis.
Importance of Data Cleaning | Cheat Sheet

Content
• What is Data Cleaning?
• When do we do Data Cleaning?
• Advantages of Data Cleaning
• Common Data Quality Issues
• Consequences of Dirty Data
• Clean Data vs Unclean Data
• Various steps for Data Cleaning
• Tools for Data Cleaning
• Real life scenarios of Data Cleaning

What is Data Cleaning?


• Data cleaning is a process of identifying and correcting errors
• Data cleaning is an essential step in preparing data for analysis and visualisation
• It ensures that the data is accurate, complete and consistent
• It involves rectifying inconsistencies, inaccuracies, and anomalies within a dataset, ensuring
high data quality.

When do we do Data Cleaning?


• Data cleaning is done as part of data cleaning/ wrangling stage before the data modelling
stage
• Cleaning the data before analysis and visualization, leads to more reliable insights and
better-informed decisions

Advantages of Data Cleaning


Improved Data Accuracy
• Data cleaning ensures that data is accurate, up-to-date, and free from errors, which leads to
more reliable and trustworthy data

Enhanced Data Quality


• Data cleaning removes inconsistencies, duplications, and errors, which results in higher data
quality, making it more useful for analysis and decision-making

Consistent Data
• Data cleaning ensures consistency in data across different sources, making it easier to
analyze and compare data across various systems

Better Decision Making


• Clean data enables organizations to make more informed and data-driven decisions, leading
to better outcomes and increased competitiveness

Increased Efficiency
• Data cleaning automates data processes, reducing the time and resources required to manage
data, resulting in improved productivity and efficiency

Common Data Quality Issues


• Duplicate data
• Multiple copies of the same data that can cause confusion and errors in analysis.
• Inaccurate data
• Data that contains errors or mistakes, leading to incorrect conclusions and decisions.
• Ambiguous data
• Data that is unclear or has multiple interpretations, making it difficult to understand
or use.
• Hidden data
• Data that is not easily accessible or visible, which can be missed in analysis or
decision-making.
• Inconsistent data
• Data that is contradictory or does not match across different sources, making it
difficult to reconcile or use effectively

Consequences of Dirty Data


• Inaccurate Analysis
• Dirty data can lead to inaccurate analysis, which can affect decision-making
processes. Analysis based on inaccurate data can lead to incorrect insights, wrong
conclusions, and flawed recommendations.
• Missed Opportunities
• Dirty data can cause missed opportunities. Incomplete or incorrect data can hide
important insights, trends, or patterns that can lead to valuable opportunities for the
business. Missing these opportunities can have long-term consequences for the
business
• Poor Decision Making
• Dirty data can lead to poor decision-making. Decisions based on dirty data can be
misleading, costly, or even harmful to the business. Poor decision-making can result
in missed opportunities, lost revenue, or damage to the business's reputation
• Lost Revenue
• Dirty data can lead to lost revenue. Inaccurate data can cause wrong pricing,
inaccurate demand forecasting, or incorrect sales analysis, leading to lost sales or
missed revenue opportunities

Clean Data vs Unclean Data


1. Accuracy
• Clean data is highly accurate and reliable, while unclean data may have errors or
incorrect information.
2. Completeness
• Clean data is complete and contains all the necessary information, while unclean data
may have missing values or incomplete records.
3. Consistency
• Clean data follows a consistent format and structure, while unclean data may have
inconsistencies in formatting or organization.
4. Reliability
• Clean data can be trusted for analysis and decision-making, while unclean data may
lead to unreliable or misleading insights

Various steps for Data Cleaning


Identifying and handling missing values
• Data cleaning involves identifying missing values and deciding how to handle them, such as
imputing them with a value or removing them from the dataset altogether

Removing duplicates and outliers


• Data cleaning involves identifying and removing duplicates and outliers from the dataset

Standardizing data formats


• Data cleaning involves identifying and standardizing data formats, such as converting dates
into a standard format.
Validating and correcting data
• Data cleaning involves validating data to ensure that it is accurate and correcting errors
where necessary.

Tools for Data Cleaning


1. Google Sheets
• Google Sheets is a cloud-based spreadsheet tool that includes several features for
data cleaning and analysis. It offers built-in functions for data cleaning, such as
removing duplicates, filtering data, and converting text to columns
2. Excel
• Excel is a widely used spreadsheet tool that offers several features for data cleaning
and transformation. Users can perform various data cleaning tasks in Excel, such as
removing duplicates, filtering data, and splitting and merging cells
3. Power Query in Power BI
• Power Query is a data cleaning and transformation tool that is integrated with Power
BI. It allows users to clean and transform data from various sources, including
databases, Excel files, and web pages, among others. Some examples of data
cleaning tasks that can be performed with Power Query include removing duplicates,
filtering and sorting data, splitting and merging columns, and pivoting data

Real life scenarios of Data Cleaning


1. Inconsistent customer information:
• Sometimes, companies get different information about the same customer that creates
confusion. For example,
1. if the customer's name is spelled differently or
2. if the customer's address is written in different ways
• To fix this problem, The company can use a data standardization technique to ensure that all
customer information is consistent across different sources. So if a customer's address or
customer's name is written differently in different places, they can use data standardization
techniques to make sure it's all written the same way

2. Missing or incomplete data:


• Sometimes, companies don't have all the information they need about their customers, For
example,
1. email address or
2. phone number
• To fix this problem, the company can use data imputation techniques to fill in missing data,
such as using customer purchase history to estimate missing data points. For instance
1. The company knows what a customer bought in the past, they can guess what that
customer's email address might be based on similar customer information.
2. Or if the company knows a customer's phone number, they can guess what that
customer's address might be based on similar customer information.

3. Erroneous data:
• Sometimes, companies collect wrong or mistaken information about their customers, For
example,
1. Putting in the unrealistic Birth Dates if a customer says they were born in the year
1900, which is a really long time ago, OR
2. They may have a customer who is listed as living in Antarctica.
• These kinds of errors can cause problems for the company because they make it difficult to
understand their customers and provide them with the right products.
• To fix this problem, the company can use use outlier detection techniques to identify and
remove erroneous data points.This helps the company to have better information about their
customers, which helps them make better decisions and create better products for everyone.

Data Cleaning using Excel -1 | Cheat Sheet

Content
• Introduction to EXCEL
• Fundamentals of Excel
• Excel Interface
• Excel as a Data Cleaning Tool
• Trim Function
• Proper Function
• Upper Function
• Lower Function
• Concatenate/Concat Function

Introduction to EXCEL
• Google Sheets is a cloud-based spreadsheet application that is part of the Google Workspace
suite, offering a range of powerful features for data management and analysis
• Google Sheets is a cloud-based spreadsheet application that is part of the Google Workspace
suite, offering a range of powerful features for data management and analysis like Gmail,
drive, cloud, etc

Fundamentals of Excel
• Workbook
• A workbook is a collection of spreadsheets. You can create a new workbook, open an
existing one, or save your work as a workbook
• Worksheets
• A worksheet is a single spreadsheet within a workbook. You can add, rename, and
delete worksheets as needed
Cells
• A cell is the intersection of a row and a column. You can enter data, formulas, and
functions in a cell
• Cell reference
• It is a way to identify and locate a specific cell within a spreadsheet. It is used to
refer to the value or content of a particular cell or to perform calculations based on
the values in other cells
• Cell B7 refers to the cell in the second column and seventh row
Formulas and Functions
• Formulas and functions are used to perform calculations on the data in your
spreadsheet. Excel has a wide range of built-in formulas and functions that you can
use, or you can create your own

Excel Interface
1. Ribbon
• The Ribbon is the top menu bar in Excel and contains all of the commands and
features that you can use to work with your data.
2. Quick Access Toolbar
• The Quick Access Toolbar is a customizable toolbar that provides quick access to
commonly used commands.
3. Workbook Area
• The Workbook Area is the main area where you can work with your data. It contains
multiple worksheets that you can use to organize your data.
4. Columns and Rows
• Columns are the vertical lines in the Workbook Area, and rows are the horizontal
lines. The intersection of a column and row is a cell.
5. Formula Bar
• The Formula Bar displays the contents of the currently selected cell, including any
formulas or functions that have been entered.
6. Status Bar
• The Status Bar displays information about the current status of your workbook, such
as the average of a range of cells or the total number of cells in your selection

Excel as a Data Cleaning Tool


• Excel provides a variety of built-in features and functions that allow users to quickly and
easily clean and transform their data. For example, Excel can be used to remove duplicates,
split or combine cells, convert text to numbers, and remove leading or trailing spaces.
• Excel is also capable of handling large datasets, making it ideal for data cleaning tasks that
involve a lot of data. Additionally, Excel allows users to apply conditional formatting to
highlight errors or inconsistencies in the data, which makes it easier to identify and correct
data issues.

Trim Function
• Removes extra spaces before, after, and between words in a cell.
• Useful for cleaning up leading or trailing spaces that may cause issues during data analysis
or matching.
• Example: Suppose you have the text " Hello World " in cell A1. To remove the extra spaces,
you can use the TRIM function like this: =TRIM(A1)
• The result will be "Hello World" without the extra spaces

Proper Function
• Capitalizes the first letter of each word in a cell and changes the other letters to lowercase.
• Example: If you have the text "hello world" in cell A1 and want to capitalize the first letter
of each word, you can use the PROPER function like this: =PROPER(A1)
• The result will be "Hello World" with the proper capitalization.

Upper Function
• Converts all letters in a cell to uppercase.
• Example: Suppose you have the text "hello world" in cell A1 and want to convert it to
uppercase. You can use the UPPER function like this: =UPPER(A1)
• The result will be "HELLO WORLD" in all uppercase letters.

Lower Function
• Converts all letters in a cell to lowercase
• Example: If you have the text "Hello World" in cell A1 and want to convert it to lowercase,
you can use the LOWER function like this: =LOWER(A1)
• The result will be "hello world" in all lowercase letters.
Note: While applying above functions It is recommended to use the "Paste as Values" (Use
Ctrl+Shift+V) after applying the formula because the cells will still contain the original formula,
and any changes made to the original text formula will affect the copied cells as well.
By using "Paste as Values," you convert the result of the "PROPER" function into static values. This
means that the copied cells will no longer contain the formula but only the final text. It allows you
to freely modify or delete the original text without affecting the converted values

Concatenate/Concat Function

1. Concatenate
• Joins two or more strings of text into a single cell. It allows you to combine the contents of
different cells or add static text.
• Example: Cell A1 contains the text "Hello" and cell B1 contains the text "World". By
using the Concatenate function, you can combine these two cells into a single cell. In cell
C1, you would enter the formula "=CONCATENATE(A1, B1)" or "=A1&B1". The result
in cell C1 would be "HelloWorld".
2. Concat
• Similar to Concatenate, it joins two or more strings of text into a single cell. It is a more
recent alternative that can handle a variable number of arguments.
• Example: Cells A1, B1, and C1 containing the texts "Hello", "World", and "!",
respectively. You can use the Concat function to merge these cells together. In cell D1, you
would enter the formula "=CONCAT(A1, B1, C1)". The result in cell D1 would be
"HelloWorld!".
3. Ampersand Operator
• In addition to the Concatenate function, Excel also supports the ampersand (&) operator for
concatenation.
• Example: Cell A1 containing the text "Hello" and cell B1 containing the text "World"
. To concatenate these cells using the ampersand operator, you would enter the formula
"=A1&B1" in cell C1. The result in cell C1 would be "HelloWorld".

Data Cleaning using Excel -1 | Hands on Guide


Content
• Loading Data in Excel
• Adding Formulas in Excel
• Adding Formulas from Ribbon in Excel
• Steps for Removing Duplicates in excel
• Steps for Replacing Blanks
• Steps for applying Trim, Proper, Upper, Lower function in excel

Loading Data in Excel


1. Open MS Excel
2. Click on Open option given in sidebar

3. Go to Folders
4. Browse folder to find the desired file
5. Click on the desired file to open
Adding Formulas in Excel
1. Click on the cell where you want to enter the formula. For example, if you want to add a
formula in cell C1, click on that cell.
2. Start typing the formula by typing the equal sign (=) followed by the formula expression.
For example, to add the values in cells A1 and B1, you can type "=A1+B1".
3. Once you have entered the formula, press Enter on your keyboard, and Excel will calculate
the result and display it in the cell.
4. The formula will be applied to the selected cell, and you can copy and paste it to other cells
as needed. Excel will adjust the references accordingly based on the relative position of the
cells.

Adding Formulas from Ribbon in Excel


1. Click on the cell where you want to enter the formula
2. Navigate to the "Formulas" tab in the Excel Ribbon at the top of the window
3. Select the desired formula you want to use.
• For example, if you want to use the SUM formula, click on the "SUM" button
within the "Math & Trig" group.

Note: A dialog box or function arguments window will appear, allowing you to specify the inputs or
cell references for the formula. Enter the necessary values or cell references in the appropriate fields
4. Once you have entered the required information, click "OK" or "Apply" to insert the formula in
the selected cell.

Steps for Removing Duplicates in excel


1. Select the range of cells that contains the data from which you want to remove duplicates.
2. Once the range is selected, go to the "Data" tab in the Excel Ribbon at the top of the
window.
3. Click on the "Remove Duplicates" button.
Note: A dialog box will appear, showing the selected range and asking which columns to consider
for duplicate removal. By default, all columns are selected.
Review the columns selected for duplicate removal and uncheck any columns that you want to
exclude from the duplicate check.
1. Click the "OK" button to start the duplicate removal process.

Steps for Replacing Blanks


• To replace blanks in Excel, follow these steps:
1. Select the range of cells where you want to replace the blanks.
2. Press Ctrl + H on your keyboard to open the "Find and Replace" dialog box.
3. In the "Find what" field, leave it blank (empty).
4. In the "Replace with" field, enter the value you want to replace the blanks with
(e.g., "N/A" or a specific text).
5. Click on the "Replace All" button.
• Alternatively,
1. Select the range of cells where you want to replace the blanks.
2. Go to the Home tab in the Excel ribbon.
3. Click on the "Find & Select" button in the Editing group.
4. From the drop-down menu, select "Go To Special..."
5. In the Go To Special dialog box, choose "Blanks" and click OK.
6. All the blank cells within the selected range will be highlighted.
7. In the blank cell, enter the value you want to replace the blanks with
8. Press Ctrl + Enter to fill all the highlighted blank cells with the specified value.

Steps for applying Trim, Proper, Upper, Lower function in


excel
Trim Function
• To apply the TRIM function in Excel, follow these steps:
1. Select the cell or range of cells containing the text you want to trim.
2. In the formula bar at the top, type "=TRIM(" (without the quotes) to start the TRIM
function.
3. After typing the opening parenthesis "(" for the function, select the cell or range of
cells that contain the text you want to trim.
4. Close the function with a closing parenthesis ")".
5. Press Enter to apply the TRIM function.
• The selected cells will be updated, and any leading or trailing spaces within the text will be
removed.
• By following these steps, you can easily apply the TRIM function in Excel to remove
leading and trailing spaces from your text, ensuring cleaner and consistent data.

Proper Function
• To apply the PROPER function in Excel, follow these steps:
1. Select the cell or range of cells containing the text you want to convert to proper
case.
2. In the formula bar at the top, type "=PROPER(" (without the quotes) to start the
PROPER function.
3. Select the cell or range of cells that contain the text you want to convert.
4. Close the function with a closing parenthesis ")"
.
5. Press Enter to apply the PROPER function.
• The selected cells will be updated, and the text will be converted to proper case, with the
first letter of each word capitalized and the remaining letters in lowercase.

Upper Function
• To apply the UPPER function in Excel to a desired cell, follow these steps:
1. Select the cell where you want the uppercase version of the text to appear.
2. In the formula bar at the top, type "=UPPER(" (without the quotes) to start the
UPPER function.
3. Select the cell that contains the text you want to convert to uppercase.
4. Close the function with a closing parenthesis ")"
.
5. Press Enter to apply the UPPER function.
• The selected cell will be updated, and the text will be converted to uppercase.

Lower Function
• To apply the LOWER function in Excel, follow these steps:
1. Select the cell where you want the lowercase version of the text to appear.
2. In the formula bar at the top, type "=LOWER(" (without the quotes) to start the
LOWER function.
3. After typing the opening parenthesis "(" for the function, select the cell that contains
the text you want to convert to lowercase.
4. Close the function with a closing parenthesis ")"
.
5. Press Enter to apply the LOWER function.

Note: Alternatively you can directly enter the text within the functions instead of referencing a cell.
It can be useful when you want to quickly convert specified text to desired case without the need for
a cell reference

Concat function
• To apply the CONCAT function in Excel, follow these steps:
1. Select the cell where you want the concatenated text to appear.
2. In the formula bar at the top, type
"=CONCAT("
3. Select the first cell or range that contains the text you want to concatenate.
4. Enter a comma (,) to separate the first argument from the next one.
5. Select the second cell or range that contains the text you want to concatenate.
Note: You can repeat steps iv and v for additional cells or ranges if needed.
Close the function with a closing parenthesis ")".
1. Press Enter to apply the CONCAT function.
• The selected cell will be updated, and the text from the specific cells or ranges will be
concatenated into a single string.

Ampersand (&) Operator


• To use the ampersand (&) operator in Excel for concatenation, follow these steps:
1. Select the cell where you want the concatenated text to appear.
2. In the formula bar at the top, type the formula using the ampersand operator.
Example: =A1 & " " & B1
3. Replace A1 and B1 with the cell references or text you want to concatenate.
4. Press Enter to apply the formula.
5. The selected cell will be updated, and the text from the specified cells or text values
will be concatenated into a single string.

Spell check in Excel


• To check spelling in Excel using the built-in spell checker, follow these steps:
1. Select the range of cells or the entire worksheet that you want to check for spelling
errors.
2. Go to the "Review" tab in the Excel ribbon.
3. Click on the "Spelling" button or press the "F7" key on your keyboard. Excel will
suggest corrections in the "Spelling" dialog box.
4. Review the suggestions and select the correct spelling.
5. Click on the "Change" button to replace the misspelled word with the selected
correction. If the suggested corrections are not appropriate or if the word is spelled
correctly, click "Ignore" to skip it.
6. Continue reviewing and making changes until the spell checker reaches the end of
the selected range.
• By following these steps, you can utilize the built-in spell checker in Excel to check and
correct spelling errors within your selected range of cells or the entire worksheet.

Data Cleaning using Excel - 2 | Cheat Sheet


Content
• COUNTIF function
• Conditional formatting

COUNTIF function
• The COUNTIF function in Excel allows you to count the number of cells within a range that
meet a specific criterion
• It can be useful for filtering or summarizing data based on specific criteria.
• You can use COUNTIF to count cells based on various conditions.
• For instance, counting the number of cells that are equal to a specific value, greater than or
less than a certain value, contain certain text, or match a pattern using wildcards.
• Cells that contain errors or are blank are not included in the count.

Conditional formatting
• Conditional formatting allows you to format cells based on specific conditions or criteria
• It helps you visually highlight data patterns or outliers.
• You can set conditions and choose formatting options such as color, style, and data bar
• It can be applied to individual cells or ranges and updates dynamically with changes in data
• This can be useful for highlighting specific values, identifying trends, or visually organizing
data.
• You can also edit or remove the conditional formatting by selecting the cells and accessing
the "Conditional Formatting" menu again.

Data Cleaning using Excel -2 | Hands on Guide


Content
• COUNTIF function in Excel
• Conditional formatting
• Deleting conditional formatting rules

COUNTIF function in Excel


Steps to use the COUNTIF function:
1. Select the cell where you want the result to appear.
2. In the formula bar at the top, type
"=COUNTIF("
(without the quotes) to start the COUNTIF function.
3. After typing the opening parenthesis
"("
for the function, select the range of cells you want to count.
4. Enter a comma
(,)
to separate the range argument from the criteria argument.Specify the criteria for counting.
5. This can be a specific value, a cell reference, or a logical expression enclosed in quotation
marks.
6. Close the function with a closing parenthesis
")"
.
7. Press Enter to apply the COUNTIF function.
The selected cell will display the count of cells that meet the specified criteria. By following these
steps, you can use the COUNTIF function in Excel to count the occurrences of specific values or
meet certain conditions within a given range of cells.

Conditional formatting
Steps to apply conditional formatting in Excel:
1. Select the range of cells you want to apply conditional formatting to.
2. Go to the "Home" tab in the Excel ribbon.
3. Click on the "Conditional Formatting" button.
4. From the drop-down menu, choose the desired formatting rule, such as "Highlight Cells
Rules" or "Top/Bottom Rules."
5. Select the specific rule you want to apply, such as "Greater Than," "Duplicate Values," or
"Data Bars."
6. In the dialog box that appears, enter the necessary criteria or values for the selected rule.
7. Customize the formatting options as per your preference.
8. Click "OK" to apply the conditional formatting to the selected cells.
Excel will automatically apply the formatting based on the specified rules and conditions.

Deleting conditional formatting rules


To remove conditional formatting in Excel, follow these steps:
1. Select the range of cells that have conditional formatting applied.
2. Go to the "Home" tab in the Excel ribbon.
3. Click on the "Conditional Formatting" button.
4. From the drop-down menu, choose "Clear Rules."
5. Another drop-down menu will appear with options to clear different types of rules.
6. Select the appropriate option based on your needs. For example:
• To remove all conditional formatting rules, select "Clear Rules from Entire Sheet."
• To remove only the conditional formatting rules for the selected cells, choose
"Clear Rules from Selected Cells."
• To remove a specific type of conditional formatting rule, select the corresponding
option.
Excel will remove the selected conditional formatting rules from the chosen range of cells. This
allows you to reset the formatting and return the cells to their original.

Data Cleaning using Google Sheets | Cheat


Sheet
Content
• Google Sheets
• Features of Google Sheets
• Google Sheet vs MS Excel
• Data Clean up Suggestion
• Named Ranges
• Column Stats
• Conditional formatting

Google Sheets
• It is a cloud-based spreadsheet application that is part of the Google Workspace suite.
• It provides a user-friendly interface and allows users to create, edit, and collaborate on
spreadsheets online.
• It offers powerful features for data cleaning and analysis, making it a valuable tool for
professionals, students, and anyone who needs to work with data.
• Users can manipulate and analyze their data using a variety of functions and formulas
available in Google Sheets.

Features of Google Sheets


Real-time Editing
• Simultaneous editing allows multiple users to work together in real-time, eliminating the
need for manual merging of versions.

Synchronous Communication
• Built-in chat and comments enable seamless communication within the spreadsheet for
effective collaboration.

Revision History and Version Control


• Detailed revision history tracks changes and allows users to restore previous versions,
ensuring data integrity.

Collaborative Data Analysis


• Multiple users can work together on data analysis projects, leveraging collective expertise
for efficient teamwork.

Accessibility and Cloud Storage


• Accessible from any device with an internet connection, with data securely stored in the
cloud, ensuring availability and security.

Add-ons and Extensions


• Support for extensions and add-ons expands functionality, providing customized features
and integration with other applications.

Google Sheet vs MS Excel


Features MS Excel Google Sheets
Great for low volume of data
Performance Great for a high volume of data cells
cells
Collaboration Not a favorable application for collaboration Allows for collaboration
Statistical analysis and Excels in statistical analysis and
Performs it manually
visualization visualization
Free for individuals
Price $8.25/users/month
$5/user/month for business
Suitable for complex data analysis,
Functionality and
advanced formulas, and sophisticated Not as feature-rich as Excel
Features
modeling
Chat facility Does not allow chat Chats are allowed
Data Clean-up Suggestion
• Cleanup Suggestions help to identify common errors that are helpful in Data Cleaning.
• It identifies problem like
• removing extra spaces and duplicates
• adding number formatting
• identifying anomalies
• fixing inconsistent data

Named Ranges
• A named range is a descriptive name given to a specific range of cells in a worksheet
• After creating a named range, you can reference it in formulas by using its name instead of
the cell references.
• For example, if you named a range "Sales_Total," you can use "=SUM(Sales_Total)"
instead of "=SUM(A1:B10)".

Column Stats
• Column Stats gives insights about the values within a column, so you can identify problems
• It provides insights into the distribution and characteristics of data within a specific column
• Column statistics can help identify data quality issues, such as missing values or
inconsistencies, by examining the count or sum of valid values
• You can view visualizations , frequency tables, and summary statistics at the column level

Conditional formatting
• Conditional formatting in google sheets is a feature that allows you to apply formatting rules
to cells based on specified conditions
• It is more commonly used to visually highlight or emphasize specific data patterns
• You can highlight cells, change font or background colors, apply data bars, color scales, or
icon sets using conditional formatting
• Conditional formatting improves data readability and allows you to make data-driven
decisions more efficiently

Data Cleaning using Google Sheets | Hands on


Guide
Content
• Steps for using clean up suggestions
• Steps for adding named ranges
• Steps for using name range for adding formula
• Steps for column stats in google sheets
• Steps for applying conditional formatting

Steps for using clean up suggestions


1. Click on Data option in Menu Bar
2. Select Data cleanup
3. From the drop down Click Cleanup suggestions

Steps for adding named ranges


1. Open a spreadsheet in Google Sheets
2. Select the cells you want to name
3. Click Data Named ranges
• A menu will open on the right
4. Type the range name you want
5. Click Done

Steps for using name range for adding formula


1. Select the cell where you want to apply the formula
2. Type formula in the cell
3. Then type the name of the range you want to apply formula on.

Steps for column stats in google sheets


1. Click Data from menu bar
2. Select Column Stats
3. Review the stats in the sidebar for the selected column

Steps for applying conditional formatting


1. Select the cells you want to apply format rules to.
2. Click Format Conditional formatting. A toolbar will open to the right.
3. Create a rule.

Single color
• Under "Format cells if," choose the condition that you want to trigger the rule.
Under "Formatting style, choose what the cell will look like when conditions are met.
Color scale
• Under "Preview," select the color scale. Then, choose a minimum and maximum
value, and an optional midpoint value. To choose the value category, click the Down
arrow .

4. Click Done
Importance of Data Transformation | Cheat
Sheet
Content
• What is Data Transformation?
• Importance of data transformation in data analysis
• Data Cleaning vs Data Transformation
• Key Transformation Steps
• Data Transformation Example
• Benefits of Data Transformation
• Tools for Data Transformation

What is Data Transformation?


• Data transformation is the process of converting raw data from its original format into a
format that is suitable for analysis.
• This involves applying a series of operations to the data to clean, reshape, and restructure it.
• Data transformation is a critical step in the data analysis process, it ensures that the data is in
a usable format that can be easily analyzed to extract meaningful insights.

Importance of data transformation in data analysis


• Data transformation allows analysts to clean and standardize their data by removing missing
values, duplicates, and outliers
• Data transformation allows analysts to integrate these disparate sources of data into a single,
comprehensive dataset that can be analyzed.
• Data transformation allows analysts to reshape and restructure their data to better suit their
analysis needs
• Data transformation allows analysts to enrich their data by adding new variables or metrics
that can provide additional insights into the data

Data Cleaning vs Data Transformation

Data Cleaning Data Transformation


Identifies, corrects, and removes errors, Involves converting or manipulating data from one
inconsistencies, and inaccuracies in the data form to another
Involves removing duplicates, filling in Involves tasks such as converting data types,
missing values, and correcting spelling aggregating data, or creating new columns from
mistakes existing ones
Ensures that the data is accurate and Makes the data suitable for analysis, by providing
reliable before it is used for analysis additional insights
Key Transformation Steps
1. Extraction and Parsing
• This step involves extracting relevant data from various sources and parsing it into a
structured format that can be easily manipulated and analyzed

2. Filtering, Aggregation, and Summarization


• In this step, data is filtered based on specific criteria or conditions, aggregated to a higher
level (such as grouping data by categories or time intervals), and summarized by calculating
statistics or key metrics.

3. Translation and Mapping


• Data translation involves converting data from one format or representation to another,
ensuring compatibility between systems. Mapping involves establishing relationships or
correspondences between data elements from different sources or schemas.

4. Indexing and Ordering


• Indexing involves creating indexes or pointers to facilitate quick and efficient data retrieval
based on specific criteria or attributes. Ordering refers to arranging data in a specified
sequence or order, such as ascending or descending order based on a particular variable.

5. Modeling, Typecasting, Formatting, and Renaming


• In this step, data is transformed by applying mathematical or statistical models, typecasting
involves converting data from one data type to another (e.g., from string to numeric),
formatting involves adjusting the appearance or presentation of data (e.g., date formatting),
and renaming involves giving meaningful names or labels to data elements for better
understanding and interpretation.

Data Transformation Example


Scenario 1
• An e-commerce company needs to extract and analyze meaningful information from
customer reviews.

Solution
• By applying extraction, parsing, and filtering techniques, the company can:
• Extract relevant details from the reviews, such as product names, ratings, and comments.
• Parse and structure the extracted data into a consistent format.
• Filter the data based on specific criteria, such as ratings or sentiment.
• Analyze trends and patterns to improve product development and customer satisfaction.
This allows the company to gain insights from customer feedback, identify areas for improvement,
and enhance the overall customer experience.
Scenario 2
• An e-commerce company needs to analyze product performance in different regions.

Solution
• By applying calculations and aggregations to their sales data, the company can:
• Transform the raw data into a structured format.
• Group the data by product categories and regions.
• Calculate metrics like total revenue and average sales quantity for each category in each
region.
• Generate visualizations to identify trends and make informed decisions.
This allows the company to understand the performance of product categories across different
regions, helping them optimize marketing, expand into new markets, and adjust inventory levels
accordingly.

Benefits of Data Transformation


Improved Data Quality
• Data transformation processes can help cleanse and standardize data, ensuring accuracy and
consistency

Enhanced Analysis and Insights


• Transforming data into a more suitable format for analysis, facilitates better analysis and the
generation of meaningful insights. It enables organizations to identify patterns, trends, and
relationships within the data that can drive informed decision-making.

Scalability
• Data transformation facilitates scalability by handling large volumes of data efficiently,
ensuring smooth operations as data grows.

Increased Efficiency
• Data transformation automates data preparation tasks, reducing manual effort and saving
time. It streamlines the data preparation process, allowing analysts to focus on analysis and
interpretation rather than spending excessive time on data cleaning and formatting. This
improves overall efficiency and productivity in data-related workflows

Tools for Data Transformation


1. Power Query Editor
• Power Query is a powerful data transformation tool within Power BI. It provides a user-
friendly interface for visually shaping and transforming data. Power Query Editor allows
you to perform tasks like data cleaning, merging and appending tables, filtering, pivoting,
and applying transformations using a wide range of functions.
2. Excel
• Although not exclusive to Power BI, Excel is a widely used tool for data transformation. It
provides functions, and formulas,that can be used for data cleaning, shaping, and modeling.
Excel can be integrated with Power BI to perform data transformations

3. M Language
• Power Query in Power BI uses the M language for data transformation. M is a functional
language specifically designed for data mashup and transformation. It provides a flexible
and expressive syntax for manipulating and transforming data, allowing you to write custom
functions and scripts

Introduction to Power Query | Cheat Sheet


Content
• Power Query
• Advantages of Power Query
• Features of Power Query
• ETL in Power Query

Power Query
• Power Query is a data transformation and data preparation engine.
• It provides a user-friendly interface
• It has a wide range of built-in transformations and functions to automate and streamline the
data preparation process
• Power Query uses "M" functional language to define data transformation steps
• It also supports data cleaning and standardization by providing tools to handle missing
values, remove duplicates, and apply formatting rules.

Advantages of Power Query


Native Integration
• Power Query is seamlessly integrated into Power BI, making it the natural choice for data
preparation within the Power BI ecosystem.
• You can perform data cleaning and transformation operations directly within Power BI
without the need for additional tools or dependencies

User-Friendly Interface
• Power Query provides a user-friendly and intuitive interface, allowing users with varying
levels of technical expertise to perform data cleaning and transformation tasks. Its visual
interface and drag-and-drop functionality make it accessible to non-technical users as well
Wide Range of Transformations
• Power Query has numerous built-in tools for transforming and manipulating data, as well as
a customizable M formula language for more advanced operations

Data Profiling and Analysis


• Power Query includes data profiling capabilities that allow you to analyze and understand
your data better.
• You can assess data quality, identify patterns, and detect anomalies to ensure data integrity
and make informed decisions during the transformation process

Features of Power Query


Data Source Connectivity
• Power Query allows you to connect to a wide range of data sources, including databases,
Excel files, CSV files, SharePoint lists, web pages, and more. It provides a seamless
experience for data extraction

Data Extraction and Transformation


• Power Query enables you to extract data from various sources and perform data
transformation operations such as filtering, sorting, removing duplicates, splitting columns,
merging tables, and aggregating data. It provides a user-friendly interface to define and
apply these transformations

Applied Steps
• Power Query keeps track of all the transformation steps you apply in the Query Editor.
These steps are recorded as "Applied Steps" and can be viewed and modified later. This
feature allows for easy repeatability and reproducibility of data cleaning and transformation
processes

Make Your Own Functions


• Power Query was created in such a way that you do not need to know how to code to utilize
it. It is really simple to use because you simply click buttons and apply filters as you would
in Excel.

ETL in Power Query


ETL stands for Extract, Transform, Load, which is a common process in data integration and data
warehousing. In Power Query, you can perform ETL operations to extract data from various
sources, transform it according to your needs, and load it into a desired destination for further
analysis. Here's how each phase of ETL is carried out in Power Query

Extract
• Power Query provides a wide range of connectors to extract data from various sources such
as databases, files, web pages, APIs, and more.
• You can connect to the desired data source, provide necessary credentials, and specify the
data to be extracted

Transform
• Power Query offers a rich set of transformation capabilities to clean, shape, and manipulate
the extracted data.
• You can perform operations such as filtering, sorting, removing duplicates, splitting
columns, merging data, adding calculated columns, aggregating data, and applying custom
transformations using Power Query's intuitive interface.

Load
• After transforming the data, you can choose to load it into a destination of your choice, such
as a Power BI report or a data model.
• Power Query can load the transformed data directly into the data model of your Power BI
report, where it can be used for analysis and visualization.
• You can also create connections-only queries that allow you to reference the transformed
data without loading it into a destination.

Power Query Interface | Cheat Sheet


Content
• Power Query Editor Interface
• Ribbon
• Queries pane
• Query Preview
• Query settings
• Status Bar
• Formula Bar

Power Query Editor Interface


• The Power Query Editor interface offers a powerful tools for data transformation and
shaping
• It enables users to clean, transform, and refine their data for analysis and visualization
• It has features to efficiently clean, filter, merge, and manipulate data before loading it into
your Power BI reports
Ribbon
• The ribbon in the Power Query Editor interface in Power BI is a toolbar located at the top
that contains various tabs with buttons and options for performing data transformations and
shaping operations.

It provides a user-friendly interface to access and utilize the available functionalities efficiently
• The ribbon navigation provides multiple tabs to add transforms, select options for your
query, and access different ribbon buttons to complete various tasks.

Home Tab
• The Home tab contains essential tools and commands for data manipulation. It includes
options for filtering, sorting, removing duplicates, changing data types, splitting columns,
and more. You can perform common data transformation tasks using the buttons and menus
in this tab.
Transform Tab
• The Transform tab offers advanced data shaping capabilities. It provides a wide range of
transformation options, such as merging queries, appending tables, pivoting data, unpivoting
columns, and applying conditional logic. This tab is useful for performing complex data
manipulations and restructuring.

Add Column Tab


• The Add Column tab focuses on adding new calculated columns to your data. It provides
functions and operators for creating custom formulas based on existing columns. You can
perform mathematical operations, text manipulations, date calculations, and more to derive
new values or modify existing ones.

View Tab
• The View tab offers various options to adjust the display and layout of the Power Query
interface. It allows you to toggle between different views, such as formula view and preview
view. There are a lot of other options like Monospaced, Column Quality, Column Profile,
etc.

Queries pane

• The query pane is placed on the left-hand side of the Query Editor.
• It lists all the queries in the current file.
• It allows you to manage, organize, and navigate through the queries, enabling you to view
and edit their properties, dependencies, and applied transformations.
• To manage any of the existing queries, right-click on its name This will give the following
options
Query Preview

• The query preview in power query editor shows a visual representation of transformed data
• It is located at the center of the power query editor window
• It is a valuable tool to evaluate and validate outcomes of transformations in Power Query
Editor
• It updates dynamically with each step
• It helps users validate transformations and assess data quality
• Users can verify desired changes have been applied correctly.
• It allows users to ensure accuracy before loading or further processing data

Query Settings
• On the right-hand side of the Query Editor, you can find the Query Settings pane which
contains the Properties and Applied Steps.
• This area displays the properties and settings of the currently selected query.
• It allows you to rename the query, modify the source, and manage applied steps.

Applied steps in query settings


• Defines the sequence of transformations and operations performed on the data
• Users can easily modify or reorder it to refine the transformation logic
• Can be customized using the Power Query M Language, allowing users to create complex
calculations and transformations

Status Bar

• The Status Bar is a section at the bottom that provides important information and feedback
about the current state of the data and operations.
• It offers valuable insights to assist users in monitoring and managing their data
transformation process.
• The Status Bar displays statistics such as the number of rows and columns in the data, giving
users a sense of the data's size and complexity

Formula Bar

• The formula bar is a powerful and flexible tool for creating and editing transformation steps
using M language
• It enables users to customize and fine-tune their data transformations with precision

Power Query Interface | Hands on Guide


Content
• Steps to open power query editor
• Steps to open power query editor after loading data

Steps to open power query editor


1. Open Power BI and select the data source
2. Instead of loading directly, select "transform" option - Power Query Editor will open
3. Perform data transformations.
4. Click "Close & Apply" to load the modified data

Steps to open power query editor after loading data


1. Go to the "Home" tab

2. Click "Transform Data" - Power Query Editor opens


3. Perform data transformations
4. Click "Close & Apply" to load the modified data - Data is available for visualization in Power BI
Data Transformation using Power Query |
Cheat Sheet
Content
• Merging columns
• Splitting Columns
• Add prefix and suffix
• Replace values and errors
• Fill Values option

Merging columns
• Merging columns involves combining the contents of multiple columns into a single
column.
• It consolidates related information and creates a unified representation of data.
• By merging columns, scattered or split data can be brought together for easier analysis and
presentation

Splitting Columns
• Splitting columns means dividing one column to multiple columns
• It is the process of dividing a single column into multiple columns based on a delimiter or
pattern.
• It helps untangle combined information for analysis and organization.
• This technique extracts valuable insights, improves decision-making, and enhances data-
driven strategies

Add prefix and suffix


• Adding a prefix or suffix involves appending or prepending a specific set of characters to the
values in a column.
• By adding a prefix or suffix, you can create more descriptive labels, differentiate data
categories, or format values in a standardized way.
• This transformation simplifies data identification and improves data consistency across the
dataset.

Replace values and errors


• "Replace values and errors" refers to the process of identifying incorrect or missing data in a
dataset and replacing them with correct or estimated values to ensure the data is accurate and
usable for analysis
• By replacing values and errors, you can correct inaccuracies, handle missing or invalid data,
and harmonize the dataset for analysis.
• It enables you to transform inconsistent or erroneous data into meaningful and usable
information

Fill Values option


• The "Fill Values" option is a feature that allows you to populate missing or empty values in
a dataset with desired values or a specific pattern.
• The fill operation takes a column and traverses through the values in it to fill any null values
in the next rows until it finds a new value.
• This process continues on a row-by-row basis until there are no more values in that column.
• There are two options in Fill value
• Fill up - Fills null or missing values in a column with the most recent non-null value
above it
• Fill down - Fills null or missing values in a column with the next non-null value
below it.

Data Transformation using Power Query |


Hands on Guide
Content
• Merging Columns
• Splitting Columns
• Add Prefix and Suffix
• Replace Value
• Replace Errors
• Fill Values

Merging Columns
Steps to Merge columns in Power Query
1. Select the columns to be merged:
• Hold the Ctrl key and click on the column headers of the columns you want to
merge.
• The sequence in which we select the columns will decide the order of the merged columns.
2. Right-click on one of the selected column headers and choose "Merge Columns" from the
context menu (or) Go to "transform" tab and in ribbon select "Merge Columns"
3. In the Merge Columns dialog box, specify the delimiter or separator that you want to use to
separate the merged values.
• You can choose from options like space, comma, or custom characters.
• You can also give the name to the column
4. Click "OK" to apply the merge operation.

Splitting Columns
Steps to split columns in Power Query
1. Select the column to be split by clicking on its header.
2. Click on the transform tab from Ribbon and Select Split column.
3. In the Split Column dialog box, choose the splitting option based on your desired criteria, such as
by delimiter, by number of characters, or by position.

4. Configure the specific settings for the chosen splitting option, such as selecting the delimiter
character or specifying the number of characters.

5. Choose whether to split the column into new columns or replace the original column with the
split result.
6. Click "OK" to apply the split operation. The selected column will be split based on the specified
criteria, creating new columns or replacing the original column with the split results.
Add Prefix and Suffix
Steps to add a prefix in Power Query:
1. Select the column you want to add the prefix to.
2. Go to the "Transform" tab and click "Add Prefix" in the "Text Column" group.
3. Enter the desired prefix in the dialog box.
4. Click "OK" to apply the prefix operation.
Steps to add a suffix in Power Query:
1. Select the column you want to add the suffix to.
2. Go to the "Transform" tab and click "Add Suffix" in the "Text Column" group.
3. Enter the desired suffix in the dialog box.
4. Click "OK" to apply the suffix operation.

Replace Value
Steps to replace values in Power Query
1. Select the column or range of cells where you want to replace values.
2. Right-click on the selected cells and choose "Replace Values" from the context menu.
3. In the Replace Values dialog box, enter the value you want to replace in the "Value To Find"
field.
4. In the "Replace With" field, enter the new value or error that you want to substitute.

5. Click "OK" to apply the replacement operation. The selected values will be replaced with the
new specified value.

Replace Errors
Steps to replace errors in Power Query
1. Select the column or range of cells where you want to replace errors.
2. Right-click on the selected cells and choose "Replace error" from the context menu.
3. In the Replace Errors dialog box, enter the value you want to replace with
4. Click "OK" to apply the replacement operation
5. The selected errors will be replaced with the new specified errors.

Fill Values
Steps to Fill Values in Power Query
1. Select the cell or range of cells where you want to apply the fill operation
2. Right-click on the selected cells and choose the "Fill" option from the context menu
3. In the Fill submenu, choose the specific fill option you want to apply:
• "Down" fills the selected cells with the values from the cell above
• "Up" fills the selected cells with the values from the cell below
4. Select the desired fill option, and the selected cells will be filled accordingly.
5. By following these steps, you can quickly apply the fill option in Power Query to populate
cells with values, create a series, or copy values from neighboring cells based on your
specific requirements

Data Types in Power Query | Cheat Sheet


Content
• Data Types
• Data Type Detection
• Changing the Datatype of a Column

Data Types
• Data types are classifications that define the nature of data
• Data types determine the operations that can be performed on them
• Understanding data types is essential for data analysis
• Examples include numbers, text, dates, and Boolean values
• Data types are an essential aspect of Power Query as they enable data to be sorted, filtered,
and analyzed appropriately
• When data is loaded into Power Query, the application tries to determine the data type of
each column based on the data contained in it.

The different data types that can be encountered in Power Query include:
1. Text
• This data type is used to represent character strings such as names, addresses, and
other textual data. Text data is enclosed in double quotes.
2. Whole Number
• This data type is used to represent integer numbers such as age, years of experience,
and number of employees. Whole numbers do not have decimal points.
3. Decimal Number
• This data type is used to represent numbers that have a decimal point, such as
currency values, percentages, and ratios.
4. Fixed decimal number
• This data type is used to represent numbers with a fixed number of decimal places; it
has a specific, predetermined number of decimal places.
5. Date/Time
• This data type is used to represent dates and times. Power Query recognizes a wide
range of date and time formats.
6. Boolean
• This data type is used to represent binary values, that is, values that can only take on
two possible states: True or False.
7. Duration
• This data type is used to represent time intervals, such as the length of a movie, the
duration of a phone call, or the duration of a task.
8. Any
• The Any data type is the status given to a column that doesn't have an explicit data
type definition. Any is the data type that classifies all values. We recommend that
you always explicitly define the column data types for your queries from
unstructured sources, and avoid having any columns with the Any data type as the
output of your query.

Data Type Detection


• Data type detection refers to the automatic recognition and assignment of data types to
columns in your data source.
• In Power Query, Data type detection occurs automatically when connecting to data sources
• When you load data it analyzes the values in each column and attempts to infer the most
appropriate data type for each column.
• You can also use the Detect data type command to automatically detect the data types of the
columns in your table present in transform tab in power query ribbon

Changing the Datatype of a Column


• Data type detection may not always accurately identify the intended data types.
• In such cases, you can manually adjust or change the detected data types using the Power
Query Editor.
• This allows you to ensure that the data is correctly interpreted and processed according to
your requirements

Data Types in Power Query | Hands on Guide


Content
• Changing the Datatype of a Column

Changing the Datatype of a Column


• You can define or change the data type of a column in any of four places:
1. On the Home tab, in the Transform group, on the Data type drop-down menu.
2. On the Transform tab, in the "Any column" group, on the Data type drop-down
menu.
3. By selecting the icon on the left side of the column heading.
4. On the column shortcut menu (Appears after Right clicking on the select column),
under Change Type.
• After performing any of the above steps select the desired data type from the
data type menu

• The data type of the column will be changed.

Filters in Power Query | Cheat Sheet

Content
• Filters in Power Query
• Importance of filtering
• Auto Filters
• Types of filters
• Filters in Multiple Columns

Filters in Power Query


• Power BI filters allow you to analyze a specific portion of your data by isolating it from the
rest.
• Filters don’t delete your unwanted or extraneous data. Instead, this data is dimmed down and
only the important fields get highlighted
• In Power Query, you can include or exclude rows based on column values

Importance of filtering
Filtering in Power Query offers several benefits for data cleaning and preparation

1. Data Validation
• Filter out rows with missing or invalid values for data integrity

2. Handling Outliers
• Filter and investigate outliers or extreme values

3. Data Segmentation
• Segment data based on criteria for focused analysis

4. Streamlined Cleaning
• Apply filters to iteratively refine data quality

Auto Filters
• The list in the sort and filter menu is called the auto filter list, which shows the unique
values in your column.
Note: Sort and filter menu is the menu that appears on clicking the dropdown icon present in
column headers.
• You can manually select or deselect which values to include in the list.
• Any selected values will be taken into consideration by the filter; any values that aren't
selected will be ignored.

Types of filters
1. Text Filters
• These filters allow you to apply conditions on text values. You can use operators like
"equals," "contains," "starts with," or "ends with" to filter data based on specific text
patterns.

2. Number Filters
• Number filters enable you to apply conditions on numeric values. You can use operators
such as "equals," "greater than," "less than," "between," or "top N" to filter data based on
numeric ranges or specific values.

3. Date Filters
• With date filters, you can apply conditions on date or time values. You can filter data based
on specific dates, date ranges, or relative dates such as "today," "yesterday," or "last month."
• Each type-specific filters further provide 2 options to apply filtering
1. Basic
• With basic mode, you can implement up to two filter rules based on type-
specific filters

2. Advanced
• With advanced mode, you can implement as many type-specific filters as necessary from all
the columns in the table
Filters in Multiple Columns
• You can add filters to multiple columns just as you would add filters to a single column
• It refines your data based on specific criteria across different fields
• First apply filter to one column dataset will be filtered on the basis of first condition
• Then apply filter on another column in the filtered database to achieve desired result

Filters in Power Query | Hands on Guide

Content
• Auto Filters
• Clear/Remove Filters
• Text Filters
• Number Filters
• Date Filters

Auto Filters
Steps to apply auto filters :-
1. Select the desired column
2. Click on small filter icon
• The list in the sort and filter menu is called the auto filter list
3. Specify the filter criteria by choosing the values you want to keep
4. Click "OK" - Result with selected values rows will be filtered

Clear/Remove Filters
• To remove column filters,
• Select the down arrow next to the column
• From the sort and filter Menu Choose "Clear filter."

Text Filters

Steps to apply text filters :-


1. Select the column with Text Data type and click on dropdown
2. Select "text filters" option and select the desired operation (Ex. Equals, Begin with,
Contains)

• A new dialog box will appear containing "Basic" and "Advanced" filtering options
• Basic

• Advanced
3. Choose the desired option and fill the values accordingly
4. Click ok to apply the filter

Number Filters
Steps to apply Number filters :-
1. Select the column with Number Data type(Ex. Whole Number, Decimal Number)
2. Click on dropdown arrow of that column
3. Select "Number filters"
4. Select the desired operation (Ex. Equals, Greater than, Between)

A new dialog box will appear containing "Basic" and "Advanced" filtering options
5. Choose "Basic" option or "Advanced" based on your requirement

6. Fill the values and click ok.

Date Filters

Steps to apply Date filters :-


1. Select the down arrow of the column containing a date/time value by which you want to
filter.
2. Select Date/Time Filters, and then select an equality type name of Equals, Before, After,
Between, In the Next, In the Previous, Is Earliest, Is Latest, Is Not Earliest, Is Not
Latest, and Custom Filter.
• You may find it easier to use the predefined filters by selecting Year, Quarter, Month,
Week, Day, Hour, Minute, and Second. These commands work right away.
3. In the Filter Rows dialog box -
1. Use Basic mode to enter or update up two operators and values.
2. Use Advanced mode to enter or update more than two clauses, comparisons,
columns, operators, and values.
4. Select OK.

Row Transformations | Cheat Sheet

Content
• Use First Row as Header
• Use Headers as First Row
• Renaming a Column
• Keep Rows
• Remove Rows

Use First Row as Header


• First row as header option is used when the first row of your data contains column headers
• This step is auto applied when we load data

Use Headers as First Row


• It is used when the first row of your data contains data values that were mistakenly
recognized as column headers by power query

Renaming a Column
• We can rename a column header based on values in the column to understand the dataset
easily.
• We can change the header name of each column just by double clicking on the header and
renaming it.

Keep Rows
• The "Keep Rows" feature allows to filter and retain specific rows from the whole dataset
• This helps in analyzing and visualizing the relevant data within your Power BI reports and
dashboards
• In Keep Rows, We have following options:-
• Keep Top Rows
• Keep Bottom Rows
• Keep Range of Rows
• Keep Duplicates
• Keep Errors

Keep Top Rows


• In the "Keep Top Rows" feature, we can filter our dataset based on a specific number of
rows starting from the top (Top rows) that meet our criteria
Keep Bottom Rows
• In the "Keep Bottom Rows" feature, we can filter our dataset based on a specific number
of rows starting from the Bottom (Bottom rows) that meet our criteria
Keep Range of Rows
• In the "Keep Range of Rows" feature, we can filter simply specifying a range of rows using
the start and end positions of the rows
Keep Duplicates
• Keep duplicates allows you to retain all instances of duplicate values in a column or dataset

Keep Errors
• Keep errors preserves rows containing error values, enabling further analysis or
troubleshooting of problematic data

Remove Rows
• The "Remove Rows" feature allows to filter and remove specific rows from the whole
dataset

• It has features similar to the “Keep Rows” options but in “Remove Rows” we choose the
Rows to Remove
• In Remove Rows, We have following options :-
• Remove Top Rows
• Remove Bottom Rows
• Remove Alternate Rows
• Remove Duplicates
• Remove Blanks
• Remove Errors

Remove Top Rows


• In the "Remove Top Rows" feature, we Remove a specific number of rows starting from the
top (Top rows)
Remove Bottom Rows
• In the "Remove Bottom Rows" feature, we Remove a specific number of rows starting from
the Bottom (Bottom rows)
Remove Alternate Rows
• In the "Remove Alternate Rows" feature, we can create a pattern to determine which rows
should be removed and which should be kept.

• We can define a pattern by first choosing the starting row to be removed, then selecting the
number of consecutive rows to be removed in each iteration and finally the consecutive rows
to be kept in each iteration.

Remove Duplicates
• Remove duplicates allows you to remove all instances of duplicate values in a column.

Remove Blanks
• Remove Blanks eliminates rows with blank values

Remove Errors
• Remove errors Remove rows containing error values

Row Transformations | Hands on Guide

Content
• Steps to Use First Row as Header
• Steps to Use Headers as First Row
• Steps to Rename a Column
• Steps to Keep Rows
• Steps to Remove Rows

Steps to Use First Row as Header


1. Select data range.
2. Go to the "Home" tab.
3. Click "Use First Row as Headers".
Steps to Use Headers as First Row
1. Select data range.
2. Go to the "Home" tab.
3. Click "Use Headers as First Row".

Steps to Rename a Column


1. Select column.
2. Go to the "Transform" tab.
3. Click "Rename Column".
4. Enter a new column name.
5. Press Enter or click outside the dialog box
• Alternatively,
1. Right-click column header.
2. Select "Rename".
3. Enter new column name.
4. Press Enter.
• Alternatively,
1. Double-click column header
2. Enter new column name.
3. Press Enter

Steps to Keep Rows


1. Go to the "Home" tab.
2. Find the "Reduce Rows" group.
3. Click on the "Keep Rows" option in the "Reduce Rows" group.
• In Keep Rows, We have following options :-
• Keep Top Rows
• Keep Bottom Rows
• Keep Range of Rows
• Keep Duplicates
• Keep Errors

Steps to Keep Top Rows


1. Choose Keep Top Rows option from the dropdown - A dialog box will be opened

2. Enter the number of rows you want to keep in the number of rows box
3. Click OK

Steps to Keep Bottom Rows


1. Choose Keep Bottom Rows option from the dropdown - A dialog box will be opened
2. Enter the number of rows you want to keep from the bottom in the number of rows box
3. Click OK.

Steps to Keep Range of Rows


1. Choose Keep Range of Rows option from the dropdown - A dialog box will be opened

2. Enter the first row you want to keep in first row box and Number of rows you want to keep
starting from the first row you want to keep in Number of rows box
3. Click OK.

Steps to Keep Duplicates


1. Choose Keep Duplicates option from the keep rows dropdown
Steps to Keep Errors
1. Choose Keep Errors option from the keep rows dropdown

Steps to Remove Rows


1. Go to the "Home" tab.
2. Find the "Reduce Rows" group.
3. Click on the "Remove Rows" option in the "Reduce Rows" group.

4. In Remove Rows, We have following options :-


• Remove Top Rows
• Remove Bottom Rows
• Remove Alternate Rows
• Remove Duplicates
• Remove Blank Rows
• Remove Errors

Steps to Remove Top Rows


1. Choose Remove Top Rows option from the dropdown - A dialog box will be opened
2. Enter the number of rows you want to Remove in the number of rows box
3. Click OK.

Steps to Remove Bottom Rows


1. Choose Remove Bottom Rows option from the dropdown - A dialog box will be opened

2. Enter the number of rows you want to Remove from the bottom in the number of rows box
3. Click OK.

Steps to Remove Alternate Rows


1. Choose Remove Alternate option from the dropdown - A dialog box will be opened
2. Enter the first row you want to remove in first row to remove box and Number of rows you want
to remove in Number of rows to remove box and Number of rows you want to keep in Number of
rows to keep box
3. Click OK.

Steps to Remove Duplicates


1. Choose Remove Duplicates option from the Remove rows dropdown

Steps to Remove Errors


1. Choose Remove Errors option from the Remove rows dropdown

Exploring Data | Cheat Sheet


Content
• Group By
• Statistics Option
• Standard Option
Group By
• The "Group By" function in Power Query is a feature that allows you to group data based
on specific criteria or attributes
• It is used to aggregate and summarize data within the power query editor

Statistics Option
• Statistics tool performs calculations or aggregations on existing data columns in your dataset

• These calculations can be performed in Power BI using the Statistics option feature
available in “transform” tab and “add column” tab
• To perform calculation on single existing column , you have to select “statistics” from
“Number Column” present in “transform tab”
• For calculation on two or more column you can use statistics option from “From Number”
present in “add column” tab

Standard Option
• Creates a new column based on a standard calculation or formula
• A standard option in Power Query enhances data tables by adding new calculated values
based on existing data columns
• In Standard option we can select random values to perform operations
• For example
• we can add,subtract,multiply any number (For ex. - 5) to any column
Exploring Data | Hands on guide
Content
• Steps to Group By
• Statistics Option
• Standard Option

Steps to Group By
1. Select the column
2. Go to group by option
• “Home tab” -> “Group by” OR
• “Transform tab” -> “Group by” OR
• Right click on the selected column -> “Group by”

Note: This dialog box will appear


3. Choose basic or Advanced based on your requirements
• Basic allows to use single column to Group By and single column for aggregation
• Advance allows to add multiple columns to Group By also to add multiple columns for
aggregation.
4. Name the column
5. Choose the operation you want to perform on the grouped column

6. Select the column on which you want to perform the aggregation


7. Cilck OK.

Statistics Option

Steps for performing calculations on statistics Option


1. Select the column
2. Go to "transform tab"
3 .Click on standard option from "Number Column"
4. Select the desired operation
5. The table will be transformed to show the desired result Multiplication on tax

Inbuilt Column Transformations - 1 | Cheat Sheet

Content
• Choose Columns
• Go to Columns
• Remove Column
• Remove Other Column
• Reorder Columns

Choose Columns
• Choose columns options helps in choosing relevant columns
• It reduces the amount of data to process
• Hence minimizing memory usage and processing time
Go to Columns
• The "Go to column" feature in Power Query allows you to quickly navigate to a specific
column within your dataset

Remove Column
• This option allows you to select and remove specific columns from your dataset.
• The selected columns will be removed, and the remaining columns will be retained.

Remove Other Column


• This option allows you to remove all columns except the ones you specify
• This is useful when you have a large number of columns and only need to focus on a subset
of them

Reorder Columns
• This option modifies the order of columns within a table by rearranging their positions
• There are multiple ways to reorder columns in the power query editor
• Using "Move" option
• Dragging and dropping the column

Inbuilt Column Transformations - 1 | Hands on Guide

Content
• Steps to Choose Columns
• Go to Columns
• Remove Column
• Remove Other Column
• Reorder Columns

Steps to Choose Columns


1. Select the columns you want to include.
2. Go to the "Home" tab.
3. Click on "Choose Columns" in the "Transform" group.
4. Select the desired columns.
5. Click "OK" to apply the changes
• Alternatively,
1. Right-click on any column header
2. Select the "Choose Columns" option from the context menu.
3. In the dialog box that appears, select the columns you want to include.
4. Click "OK" to apply the changes.
Go to Columns
1. Select a query.
2. Go to the "Home" tab.
3. Click on "Choose Columns" dropdown in the "Transform" group
4. Select Go to columns
5. Click on the column on which you want to go

Remove Column
1. Select the column to remove.
2. Go to the "Home" tab.
3. Click on "Remove Columns" in the "Manage Columns" group.
4. Choose "Remove Columns" to confirm the removal

Remove Other Column


1. Select the columns to keep.
2. Go to the "Home" tab.
3. Click on "Remove Columns" and choose "Remove Other Columns" - Columns Other than
the selected one will be removed

Reorder Columns
1. Select the columns to reorder.
2. Go to the "Home" tab.
3. Click on "Move" in the "Transform" group.
4. Choose "Move Left" or "Move Right" to adjust the column order - We can also choose
“Move to beginning” or “Move to end” option
5. Repeat steps 3-5 if needed.
• Alternatively,
1. Select and drag the columns to the derired location
2. Release the cursor to drop at that position

Inbuilt Column Transformations - 2 | Cheat Sheet

Content
• Add Column
• Column From Example
• Index Column
• Conditional Column
• Duplicate Column
Add Column
• The "Add Column" tab allows to create new columns based on various transformations,
calculations, and data manipulations
• It provides a wide range of functions and options to customize column creation, enabling
users to enrich their data with derived values, conditional logic, etc.
• The "Add Column" option in Power Query ribbon offers several powerful features,
including:
• Column From Examples
• Conditional Column
• Index Column
• Duplicate Column

Column From Example


• Allows to create a new column based on examples by specifying a few example values
• It simplifies the process of creating new columns, saving time and effort in data
transformation tasks

Index Column
• The Index column command adds a new column to the table with explicit position values,
and is usually created to support other transformation patterns

Conditional Column
• Conditional column in Power Query is a column that you add to a table based on a condition
• You can use the graphical interface to implement any logic you want

Duplicate Column
• The "Duplicate Column" option in Power Query allows you to create a copy of an existing
column in your dataset.
• This can be useful when you want to perform different transformations or calculations on the
duplicated column without affecting the original column.
• It helps in maintaining data integrity and provides flexibility in data manipulation within
Power Query.

Inbuilt Column Transformations - 2 | Hands on guide

Content
• Steps to Add Column From Example
• Steps to Add Index Column
• Steps to add Conditional Column
Steps to Add Column From Example
1. Select the column on which you want to apply changes
2. Add Column from Examples using From Selection option

Add Column > Column From Examples > From Selection

3. Make changes to the selected column according to the need

• Add example to Let Power Query understand the pattern


• Power Query generates a preview in the new column
• Add more examples so that it generates correct preview for all the columns

4. Click ok if the preview matches the changes

Steps to Add Index Column


1. Select the desired query.
2. Go to the "Add Column" tab.
3. Click on "Index Column" and choose the desired option.
• Here you get three options:
1. From 0 - Once you click on From 0 your value (or index) of the column will
start at zero.
2. From 1 - If you use From 1 option your data will started at one.
3. Custom - This is the last option, here you can mention the number from
where you want to start and provide the increment by number.

4. Power Query will add a new column with sequential index values

Steps to add Conditional Column


1. Go to the "Add Column" tab.
2. Click on "Conditional Column".
3. Enter a name for the new column.
4. Specify the condition, provide example values in the box and fill the required conditions

5. Click "OK" to apply the transformation.

Inbuilt Column Transformations - 3 | Cheat


Sheet
Content
• Pivoting
• Unpivoting
• Transpose

Pivoting
• Pivoting involves re-arranging data from rows to columns
• It allows us to group and categorize data based on specific criteria
• Pivoting is often used with tools like pivot tables in spreadsheet software
• It helps uncover patterns, trends, and relationships in data
• By pivoting data, we can condense and present it in a more organized way

Unpivoting
• Unpivoting is the opposite of pivoting
• It turns columns into rows
• Unpivoting helps in expanding summarized data to its original detailed form

Transpose
• Transpose is a basic operation that rearranges data without aggregation
• It swaps the positions of rows and columns
• Transpose is useful for reorganizing data to fit a specific layout or for comparison purposes

Pivoting Unpivoting Transpose


Converts rows into columns Converts columns into rows Swaps rows and columns
Summarizes and condenses Restores summarized data to
Reorients data without aggregation
data for analysis its detailed form
Involves applying aggregate Expands data for individual
Changes data layout or orientation
functions to grouped data analysis and calculations
Used for summary reports and Useful for working with Useful for converting between row-
calculations across categories specific attribute-value pairs based and column-based structures
Inbuilt Column Transformations - 3 | Hands on Guide

Content
• Steps to Pivot Columns
• Steps to Add Index Column
• Steps to Transpose Table

Steps to Pivot Columns


1. Select the columns on which you want to perform the pivoting
2. Go to Transform
3. Select “Pivot Column” option

4. In the "Pivot Column"dialog box, specify the values you want to use as pivot values.
• Select the aggregation function you want to apply to the pivoted column values (e.g.,
sum, count, average).
• Optionally, you can select additional options such as
"Don't Aggregate"
or
"Advanced options"
if needed
• This allows you to further customize the pivot transformation based on your specific
requirements
5. Click ok to perform Pivoting.

Steps to Add Index Column


1. Select the desired query.
2. Go to the "Add Column" tab.
3. Click on "Index Column" and choose the desired option.
• Here you get three options:
1. From 0 - Once you click on From 0 your value (or index) of the column will
start at zero.
2. From 1 - If you use From 1 option your data will started at one.
3. Custom - This is the last option, here you can mention the number from
where you want to start and provide the increment by number.

4. Power Query will add a new column with sequential index values

Steps to Transpose Table


1. Go to the "Transform" tab.
2. Click on "Transpose".

3. Click "OK" to apply the transformation.

Inbuilt Column Transformation - 4 | Cheat


Sheet
Content
• What's Custom Column In Power BI?

What's Custom Column In Power BI?


• A Custom Column is a column that is created using a custom formula or expression.
• It allows users to add new columns to a dataset or transform existing columns based on
specific logic or calculations
• It gives more flexibility for adding new columns than the ones provided out of the box in
Power Query
• We can create our own custom column using the Power Query M formula language
Modify an existing custom column
1. Power Query adds your custom column to the table and adds the Added custom step to the
Applied steps list in Query settings
2. From Applied steps we can modify the custom column by selecting the step and changing
the formula in the dialog box that appears

Inbuilt Column Transformation - 4 | Hands On Guide

Content
• Steps to create a Custom Function

Steps to create a Custom Function


1. Go to the Add column tab
2. Select "Custom column" option from the ribbon
3. The Custom column dialog box appears. This dialog box is where you define the formula to
create your column

The Custom column dialog box contains


• The name of the custom column in the New column name box. You can rename this column.
• An Available columns list on the right underneath the Data type selection.
• A Custom column formula box where you can enter a
"Power Query M formula"

To add a new column


1. Select a column from the Available columns list.
2. Then, select the Insert column button below the list to add it to the custom column formula.

3. You can also add a column by selecting it in the list. Alternatively, you can write your own
formula by using the Power Query M formula language in Custom column formula.

Modify an existing custom column


1. To modify your custom column, select the Added custom step in the Applied steps list

2. The Custom column dialog box appears with the custom column formula you created.
3. Make changes according to the requirement and Click OK to apply.

Column Profiling | Cheat Sheet

Content
• Introduction
• Column quality
• Column distribution
• Column Profile

Introduction
• Column profiling is the process of analyzing and understanding the characteristics of
individual columns in a dataset.
• It involves analyzing the content and structure of a dataset to identify inconsistencies, errors,
and anomalies
• Power BI, has built-in data profiling tools that allow users to analyze and visualize data
quality.
• These tools provide new and intuitive ways to clean, transform, and understand data in
Power Query Editor. They include:
1. Column quality
2. Column distribution
3. Column profile
Column quality
• The Column quality checks the quality of the data in terms of valid, Error & Empty, also it
displays the percentage of data values associated with the selected table.
• The column quality feature labels values in rows in following categories:
1. Valid, shown in green.
2. Error, shown in red
3. Empty, shown in dark grey
• These indicators are displayed directly underneath the name of the column as part of a small
bar chart, as shown in the following image.

Column distribution
• This feature provides a set of visuals underneath the names of the columns that showcase the
frequency and distribution of the values in each of the columns
• Here you can see the distinct and unique records of the values in each of the columns as in
histogram visual.
• The data in these visualizations is sorted in descending order from the value with the highest
frequency.

• By hovering over the distribution data in any of the columns, you get information about the
overall data in the column (with distinct count and unique values). You can also select the
ellipsis button and choose from a menu of available operations
Column Profile
• This feature provides a more in-depth look at the data in a column. Column profile contains
a column statistics chart, the distribution of values in the column, like the count of errors and
empty values. Information such as the minimum, and the maximum values, count of unique
values, and the distribution of values in detail.

Column Statistics
• It displays Count, Error, Empty, Distinct, Unique, Empty String, Min, & Max of the selected
column.

Value Distribution
• As per value shows data in a bar graph.
• In the column profile above, you can see the distribution of values in the City column, you
can see more customers in Hyderabad and fewer in Delhi. You can also see the count of
rows, errors, and empty values.

• In the Age column, we can see the min and max value in the column, the count of distinct
and unique values, and much other information.
• Knowing the information above is very helpful for a data engineer. Because you can apply
the right transformation and target the right data values based on it.

Filter by value
• You can interact with the value distribution chart on the right side and select any of the bars
by hovering over the parts of the chart.

• Right-click to display a set of available transformations for that value.


Copy data
• In the upper-right corner of both the column statistics and value distribution sections, you
can select the ellipsis button (...) to display a Copy shortcut menu. Select it to copy the data
displayed in either section to the clipboard.
Group by value
• When you select the ellipsis button (...) in the upper-right corner of the value distribution
chart, in addition to Copy you can select Group by. This feature groups the values in your
chart by a set of available options.

• The image below shows a column of product names that have been grouped by text length.
After the values have been grouped in the chart, you can interact with individual values in
the chart as described in Filter by value.

Column Profiling | Hands On Guide

Content
• Steps to enable Date profiling tools
• Steps to open the Ellipsis button options
• Column Profile

Steps to enable Date profiling tools


1. Go to the View tab and enable the options you want in the Data preview group
Steps to open the Ellipsis button options
1. Hover (Move your cursor) over the distribution data in the columns, You will get
information about the overall data in the column (with distinct count and unique values).
2. Here in the bottom you will see an ellipsis ( a set of dots (…) )

3. Select the ellipsis button and choose from a menu of available operations

Column Profile

Steps to Filter by value


1. Select any of the bars by hovering over the parts of the chart.
2. Right-click to display a set of available transformations for that value.
3. Select Filters options from the menu (Ex. Number Filters, Text Filters, etc.)
4. Apply filters based on your requirements

Steps to copy data


1. Select any of the bars by hovering over the parts of the chart.
2. Right-click to display a set of available transformations for that value.
3. Choose copy option
• Alternatively,
1. In the upper-right corner of both the column statistics and value distribution sections, you
can select the ellipsis button (...) to display a Copy shortcut menu.
Group by value/text length
• Select the ellipsis button (...) in the upper-right corner of the value distribution chart
• Select Group by
• Select desired option from the Menu
Query Pane in Power Query | Cheat Sheet

Content
• Query Pane
• Usage of Query Pane
• Context Menu
• Various options available in Context Menu

Query Pane
• In Power BI, the query pane refers to a specific area within the Power Query Editor where
you can view and manipulate data transformation steps applied to your data source
• The query pane displays a list of applied steps, which can be rearranged, edited, or removed
as needed.

Usage of Query Pane


• The Queries Pane allows you to navigate through existing queries within your Power BI
project.
• The Queries Pane is also used for creating new queries. You can start by duplicating an
existing query as a foundation and then modify it to suit your specific needs

Navigation
• The most basic usage of the queries pane is to navigate to all of the queries
• The navigation is similar to a file explorer
• To switch between the queries, just select the query you want to go to

• It facilitates quick access to view and modify query transformations.


• Users can efficiently manage and organize their queries using the pane.

Creating Query
• The Queries Pane in Power BI allows for creating different queries.
• You can start by duplicating an existing query.
• Duplicating a query provides a foundation for making modifications.
• It is useful when applying similar transformations to different data subsets.

Context Menu
• Similar to features throughout the ribbon and the editor, the context menu of a query lets you
make transformations directly onto the query
• The context menu in the query pane provides additional options and actions for working
with queries.
• It can be accessed by right-clicking on a query within the queries pane.
• The context menu offers various functionalities to manage and modify queries.
• It includes options such as editing query settings, renaming queries, duplicating queries, and
deleting queries.

Various options available in Context Menu


Copy/Paste
• Copying and pasting a query in Power Query involves duplicating an existing query and its
associated transformations, allowing you to create a new query with the same structure and
steps.
• This action can be useful when you want to reuse a query's logic or make variations of it
without modifying the original query.

Delete
• Deleting a query in Power Query involves removing an existing query from the query pane
and the associated data model

Rename
• Renaming a query in Power Query involves assigning a new name to an existing query to
provide it with a more descriptive or meaningful label

Duplicate
• Duplicating a query will create a copy of the query you're selecting. Duplicating allows you
to preserve the original data while performing additional transformations in duplicated
version.

Reference
• Referencing a query creates a new query that utilizes the transformations applied in a
previous query.It does not duplicate the original query or its steps.Changes made to the
referenced query automatically propagate to the new query. The referenced query serves as a
foundation for the new query.

Duplicating Query Referencing Query


A duplicate query behaves as an autonomous Reference query is directly linked to its parent
Duplicating Query Referencing Query
query that is independent of its parent query query
Any changes in the parent query configuration Any changes in the parent query directly impacts
does not impact the duplicate the referenced query
Each step needs to be performed independently. Referenced queries act as pointers in the memory.
This requires more processing power Therefore, less processing power is required
Duplicate queries act independently so circular Reference queries cannot be used extensively as
referencing is easy to avoid they can result in looping or circular references
Move to group
• Moving a query to a group in Power Query involves organizing and categorizing queries by
grouping them together under a specific folder or group name.
• By moving a query to a group, you can create a hierarchical organization, making it easier to
locate and work with related queries.

Move Up
• Moving a query up in Power Query refers to changing its position within the list of queries
in the query pane so that it appears higher in the order.
• By moving a query up, you can prioritize its execution, ensuring that it is processed before
queries that appear below it.

Move Down
• By moving a query down, you can prioritize its execution to occur after queries that appear
above it
• These actions allow you to adjust the sequence of queries and control the order in which
they are executed during data transformation

Query Pane in Power Query | Hands On Guide

Content
• Steps for Creating New Query in Query Pane
• Various options available in context menu

Steps for Creating New Query in Query Pane


1. Right click on the query pane
2. Select "New Query"
3. Then choose the Data Source
4. Load data from the sources directly to power query
Various options available in context menu

Delete
• Deleting a query in Power Query involves removing an existing query from the query pane
and the associated data model

Steps to delete a query :-


1. Select the Query
2. Right click on the query to open context Menu
3. Choose the "Delete" option

4. There will be an additional pop-up confirming the deletion, select "delete" to delete the query

Rename
• Renaming a query in Power Query involves assigning a new name to an existing query to
provide it with a more descriptive or meaningful label

Steps to rename a query :-


1. Select the Query
2. Right click to open context menu
3. Choose the "Rename" option
4. Type the New Name
5. Move cursor and click anywhere on the screen
Duplicate
• Duplicating a query will create a copy of the query you're selecting. Duplicating allows you
to preserve the original data while performing additional transformations in the duplicated
version.

Steps to duplicate a query :-


1. Select the Query
2. Right-click on the query.

3. Choose “Duplicate”.

Reference
• Referencing a query creates a new query that utilizes the transformations applied in a
previous query.It does not duplicate the original query or its steps.Changes made to the
referenced query automatically propagate to the new query. The referenced query serves as a
foundation for the new query.

Steps to reference a query :-


1. Select the Query
2. Right-click on the query.
3. Choose "Reference" . Reference query will be created

Copy/Paste
Steps to copy and paste a query in Power Query :-
1. Select the query to be copied.
2. Right-click and choose "Copy".
3. Right-click in the query pane and choose "Paste". Optionally, rename the pasted query.

Create New Group


Steps to create a new group in the query pane :-
1. Right-click in the Queries pane.
2. Choose "New Group".
3. Provide a name for the group.
4. Click "OK".
(OR)
1. Select the queries to be grouped.
2. Right-click and choose "New Group".
3. Provide a name for the group.
4. Click "OK"

Move to group
Steps to Move to group in the query pane :-
1. Select the queries.
2. Right-click and choose "Move To Group".
3. Select the desired group

Move Up/ Move Down


Steps to Move Up/ Move Down in the query pane :-
1. Right-click in the Queries pane.
2. Select the query.
3. Right-click on the selected query and choose "Move Up" or "Move Down" from the
context menu.
Combining Queries | Cheat Sheet
Content
• Combining Queries
• Append Queries
• Merge Queries
• Merge Query vs Append Query
• Types of Join options available for merging

Combining Queries
• Combining Queries is the process of merging or joining multiple tables or queries together
to create a single unified dataset
• Ways to combine queries
• Appending Queries
• Merging Queries

Append Queries
• In Power Query, the "Append" operation allows you to combine multiple tables or queries
together vertically, stacking the rows from each table or query to create a single consolidated
table.
• The append operation creates a single table by adding the contents of one or more tables
• The resulting table will have the combined rows from all the appended tables or query
• When you append tables or queries, the columns must have the same names and data types
for the operation to succeed
• If one of the appended tables doesn't have a values in the cell from other tables, the resulting
table shows null
Merge Queries
• A merge queries operation joins two existing tables together based on matching values from
one or multiple columns
• You can choose to use different types of joins, depending on the output you want
• In the event that one table doesn't have columns found in another table, null values will
appear in the corresponding column, as shown in the Referer column of the final query

Merge Query vs Append Query


Merge Query Append Query
Combine tables horizontally Combine tables vertically
Require matching columns with the same data
Require at least one matching column in each table
types
Can combine tables with different numbers of Require tables to have the same number of
columns columns
Can be used to create new columns based on the
Do not create new columns
matching

Types of Join options available for merging


• In Power Query, there are several types of join options available for merging data tables.
These join options determine how the rows from two or more tables are combined based on
matching values in specified columns. The common join types in Power Query are:
1. Inner Join: Only the matching rows between the tables are included in the merged result.
Non-matching rows are excluded.
2. Left Outer Join: All rows from the left (or first) table are included in the merged result, along
with any matching rows from the right (or second) table. Non-matching rows from the right
table are excluded.
3. Right Outer Join: All rows from the right (or second) table are included in the merged result,
along with any matching rows from the left (or first) table. Non-matching rows from the left
table are excluded.
4. Full Outer Join: All rows from both tables are included in the merged result. Matching rows
are combined, and non-matching rows from both tables are included.
5. Left Anti Join: Only the rows from the left (or first) table that do not have a match in the
right (or second) table are included in the merged result. Matching rows and rows from the
right table are excluded.
6. Right Anti Join: Only the rows from the right (or second) table that do not have a match in
the left (or first) table are included in the merged result. Matching rows and rows from the
left table are excluded.

Combining Queries | Hands On Guide


Content
• Append Queries
• Merge Queries

Append Queries
Steps to follow for Appending the queries
1. From the left pane of Power Query Editor, select the query to merge.
2. Click on the Home Tab in the Ribbon Menu.

3. Click on Append in the Combine section.


4. Choose Append Query or Append query as new option based on your requirements

• Append queries displays the Append dialog box to add additional tables to the current query.
• Append queries as new displays the Append dialog box to create a new query by
appending multiple tables
5. The following Append dialog box will appear. Choose option depending on the number of tables
to be appended
• This has two modes:
1. Two tables : Combine two table queries together. This mode is the default mode.
2. Three or more tables : Allow an arbitrary number of table queries to be combined.
6. In the Available table(s) list, select each table you want to append, and then select Add.

7. After all the tables you want appear in the Tables to append list, select OK.

Merge Queries
• Here we are merging following two tables based on Common column - Product ID

1. Table 1 – Product
2. Table 2 – Availability

Steps to follow for Merging the queries


1. From the left pane of Power Query Editor, select the query (table) into which you want the
other query (table) to merge.
2. Go to the Home Tab in the Ribbon Menu.

3. Click on the Merge drop-down arrow in the Combine section.


4. From the drop-down menu, you'll see two options:
1. Merge queries : Combines data from multiple queries into a single query without creating a
new query.
2. Merge queries as new : Creates a new query object by merging data from multiple queries.
Select the option based on your requirement. Following pop-up menu will appear.
5. Choose the tables to be merged by selecting from the dropdown menu

6. Choose the common column in both the queries.


7. Select the Join Kind

8. Click OK - Following result will be shown in the query preview.


Expanding the table
1. To expand the table click on expand icon (Top right in Column Header)

2. This will open the Expand dialog box to allow you to choose which columns to expand

3. Select the columns and click ok


Output For Different Joins
1. Left Outer (All from first, matching from second)

2. Right Outer (all rows from second, matching from first)

3. Full Outer (all rows from both)


4. Inner (only matching rows)

5. Left Anti (rows only in first)

6. Right Anti (rows only in second)

Applied Steps | Cheat Sheet

Content
• Applied Steps
• Accessing the Applied Steps list
• Using Applied Steps List

Applied Steps
• Applied steps in Power Query track the sequence of transformations applied to a dataset
• Each step represents a specific action or manipulation performed on the data
• Applied steps provide a structured way to track, modify, and reproduce the data
transformation process
• Any transformations you done on your data will show in the Applied Steps list
• For instance, if you change the first column name, it will display in the Applied Steps list as
Renamed Columns

Accessing the Applied Steps list


• It can be found in query settings located on the right-hand side of the Power Query Editor
interface
• Query settings option can be found in view tab in Ribbon bar
Using Applied Steps List
• When new data is added to an existing query The applied steps are preserved and applied to
the new data
• The same set of transformations and operations are executed like filtering, sorting, and
transformations
• This ensures consistency in the data transformation process across the expanded dataset
• Enables seamless incorporation of additional data.Maintains consistency in transformations
and operations

Applied Steps | Hands On Guide

Content
• Steps for Accessing Applied Steps
• Steps to open Applied Steps context menu

Steps for Accessing Applied Steps


1. Select "View tab"
2. Click on Query Settings

Steps to open Applied Steps context menu


1. Select the Step which you want to modify
1. Right-click on the Step
• Various options available are
1. Rename
2. Delete
3. Delete till end
4. Insert Step after
5. Move before
6. Move after

Rename step
1. To rename a step, right-click the step
2. Select Rename.
3. Enter in the name you want,
4. Then either select Enter or click away from the step.

Delete step
1. To delete a step, right-click the step and select Delete.
2. Alternatively, select the "x" next to the step.

Delete until end


• This action will delete the selected step and all the subsequent steps.
1. Right-click the first step of the series of step you want to delete
2. Select "Delete until end"
.
3. Select Delete in the new window.

Insert step after


• To insert a new intermediate step
1. To add a new step, right-click on the last step in the list
2. Select Insert step after.
3. Then select Insert on the new window.
• To set a transformation for the new step
1. Select the new step in the list
2. Make the change to the data.
3. It will automatically link the transformation to the selected step.

Move step
Move Up
• To move a step up one position in the list, right-click the step and select Move up
Move down
• To move a step down one position in the list, right-click the step and select Move Down
Alternatively,
• Drag and drop the step to the desired location.

Properties
• Helps in editing "Step names" and their "descriptions"
1. To edit the step, right-click the step
2. Select Properties. A pop-up window will open
3. In the window, you can change the step name and description and save the changes by
selecting OK.
Introduction to Data Modeling | Cheat Sheet
Contents
• Data Modeling
• Importance of Data Modeling
• Types of Data Modeling
• Data Modeling Techniques

Data Modeling
• Data model is a collection of data tables and their relationships with each other
• It is used to organize, analyze and present data in a meaningful way
• The data model in Power BI provides the foundation for creating reports and visualizations

Importance of Data Modeling


• Helps to create accurate reports : By creating relationships between different data sources,
you can avoid data duplication and inconsistencies that can lead to incorrect or incomplete
reports
• Enables effective data analysis: With proper data modeling, you can structure data in a
way that makes it easy to analyze and extract insights
• Enables flexibility and scalability: A well-designed data model can be flexible and
scalable, allowing you to easily add new data sources and modify existing ones as needed
• Saves time and money: Planning data models upfront ensures efficient resource allocation
and minimizes costly rework

Types of Data Modeling


There are two types of data modeling

Relational Modeling
• It is a traditional approach to data modeling.
• This type of data modeling involves designing a data model based on a set of related tables
with defined relationships between them
• In this model, data is represented in the form of two-dimensional tables consisting of
columns and rows known as attributes and tuples

Dimensional Modeling
• Dimensional modeling in Power BI is a data modeling technique that focuses on organizing
and structuring data in a way that supports efficient analysis and reporting.
• It involves creating dimension tables and fact tables, which are the two primary types of
tables used in dimensional modeling.

Facts Tables
• Fact tables store the numerical or measurable data that are being analyzed, such as
sales figures, quantities, or revenue
.
• Fact tables contain the quantitative or additive values associated with the dimensions.
• Each row in a fact table represents a specific measurement or event and includes foreign
keys that link to dimension tables.
• Fact tables can have multiple measures (numeric values) that provide insights into the
business performance.

Dimensional Tables
• Dimension tables represent descriptive attributes or categories by which data is analyzed.
• Each dimension table contains the unique values or combinations of attribute values for a
specific dimension.
• Examples of dimensions include "Product," "Time," "Location," or "Customer."
• Dimension tables typically have one row for each unique dimension value, and each row
contains the attributes associated with that dimension value.
• Dimension tables are often connected to fact tables through relationships.
Data Modeling Techniques
• Data modeling techniques are used to structure and organize data for effective analysis and
reporting.
• These techniques help optimize data storage, enhance query performance, and provide a
user-friendly environment for data exploration.

Star Schema
• It is a widely adopted data modeling approach used in Power BI for optimized performance
and usability
• It consists of a central fact table surrounded by dimension tables
• In a star schema, each dimension table is directly connected to the fact table through
relationships.
Snowflake Schema
• It is a type of modeling technique where dimension tables are further normalized into
multiple related tables
• This data model contains chains of dimension tables
• Snowflake schema is an extension of the star schema, aiming for more normalization of the
dimension tables.
• This normalization reduces data redundancy by separating repetitive attributes into separate
tables.
• The snowflake schema resembles a snowflake-like shape, with dimension tables branching
out into more tables.
Techniques of Data Modeling part 1 | Cheat
Sheet
Content
• Relationship
• Need of relationship
• Types or Cardinality

Relationship
• In Power BI, a relationship refers to the connection established between two tables based on
one or more common columns.
• It defines how the data in one table relates to the data in another table, allowing for data
analysis and visualization across multiple tables.
• Relationships are fundamental aspects of data modeling in Power BI, enabling users to
create meaningful and interconnected views of their data.
• By defining relationships, you can combine data from different tables, perform cross-table
filtering, and enable efficient data exploration and aggregation in Power BI reports and
visualizations.
Need of relationship
Data Integration
• Relationships allow you to integrate data from different tables into a single data model
• For example : you can create a relationship between the Sales table and the Customers table
based on the common field CustomerID

Cross-Table Filtering
• Relationships enable cross-table filtering, meaning that filters applied to one table can
propagate to related tables.
• For example : A table containing sales information and another table with customer details.
If you define a relationship between the two tables based on the Customer ID field, selecting
a specific customer in a visualization will automatically filter the sales data to show only the
sales made by that customer

Data Exploration
• With relationships established, you can create interactive reports and dashboards where
users can navigate through related data.
• For example : You can create a report that shows sales by category and allows users to drill
down to see specific products.

Data Aggregation
• By defining relationships, you can create measures and calculations that aggregate data
correctly across related tables
• For example : You can calculate total sales, average price, or cumulative sales based on the
established relationships

Types or Cardinality
One-to-One(1:1)
• A one-to-one relationship means that in one table, a specific value occurs only once, and in
the related table, the same value also occurs only once
• For example: In a dataset representing employees and their personal information, each
employee can have only one corresponding record in the personal information table, and
each record in the personal information table is related to a specific employee.

One-to-Many(1:*)
• In a one-to-many relationship, a column in one table contains a unique value, while the
related table can have multiple instances of that value
• For example: In a dataset representing a customer and their orders, a single customer can
have multiple orders, but each order is associated with only one customer.
Many-to-Many(*:*)
• In a many-to-many relationship, multiple instances of one entity can be associated with
multiple instances of another entity
• For example: In a dataset representing students and subjects, each student can enroll in
multiple subject, and each subject can have multiple students.

Techniques of Data Modeling part 1 | Hands


on Guide
Content
• Manage Relationships
• Dialogue Box
• Autodetect
• Creating Relationships
• Delete Relationships
• Active Relationship
• Properties Pane

Manage Relationships
The "Manage Relationships" feature allows you to define, edit, and manage the relationships
between tables in your data model To access the Manage Relationships feature in Power BI, you can
follow these steps:
1. Open Model view in power BI
2. Navigate to the "Home" tab on the ribbon at the top.
3. Click on the "Manage Relationships" button in the "Relationships" section.

Dialogue Box
The Manage Relationships dialog box in Power BI is the user interface where you can define, edit,
and manage relationships between tables in your data model
Autodetect
• In “Manage relationships” window, click on “Autodetect”
• power BI Desktop analyzes the column names in the data to identify potential relationships
• It looks for similarities and matches in column names to determine if there is a potential
relationship between tables
Creating Relationships
• allows you to define a new relationship between tables in your data model. It enables you to
establish a connection between two tables based on a common field or column
To create a new relationship, you can follow these steps:
1. Click on the "Manage Relationships" button in the "Modeling" section.
2. In the Manage Relationships dialog box, click on the "New" or button.
3. Select the primary key field from one table and the corresponding foreign key field from the
other table to establish the relationship.
4. Specify the desired cardinality for the relationship and cross filter direction.
5. click on make this relationship active and click on Ok button.
Edit Relationships
• The "Edit" feature in the Manage Relationships allows you to modify and adjust the
properties of an existing relationship between tables in your data model.
• It enables you to make changes to the fields used, cardinality, cross-filtering behavior, and
the active/inactive state of the relationship.
Here are the steps to edit a relationship using the Manage Relationships:
1. Click on the "Manage Relationships" button in the "Modeling" section.
2. In the Manage Relationships dialog box, locate the relationship you want to edit.
3. Select the relationship by clicking on it.
4. Click on the "Edit" button.
5. Modify the properties of the relationship as needed.
Delete Relationships
• The "Delete" Relationships feature in the Manage Relationships dialog box in Power BI
allows you to remove relationships that are no longer needed in your data model.
• Deleting a relationship breaks the connection between tables, and any calculations or
filtering based on that relationship will no longer work as expected.
To delete a relationship using the Manage Relationships, you can follow these steps:
1. Click on the "Manage Relationships" button in the "Modeling" section.
2. In the Manage Relationships dialog box, locate the relationship you want to delete.
3. Select the relationship by clicking on it
4. Click on the "Delete" button.
Active Relationship
• When a relationship is marked as active, it means that it is actively used by Power BI for
filtering, data aggregation, and other data modeling operations
• On the other hand, when a relationship is marked as inactive, it is not utilized by Power BI
for data modeling operations

Properties Pane
• The Property Pane in Power BI is a panel that provides options and settings to modify the
properties of various objects in your data model, such as tables, column, Cardinality.
• Adjust the relationship settings as needed
Techniques of Data Modeling part - 2 | Cheat
Sheet
Content
• Filter Flow
• Cross Filter Direction

Filter Flow
• Filter flow in a relationship refers to how filters applied to one table propagate and affect the
data displayed in related tables
• The filter flow allows you to filter data in one table and have those filters affect the data
displayed in connected or related tables.
• The filter flow ensures that the data displayed in visuals, reports, and dashboards is
dynamically filtered based on the relationships established between tables.
• It enables users to explore and analyze data across multiple tables in a cohesive manner.

Cross Filter Direction


Cross filter direction in Power BI refers to the setting that determines how filters are propagated and
applied between tables in a relationship.
There are two options for cross filter direction 1. Single 2. Both

Single
• Filters applied to the "one" side of the relationship (the table with the one unique value) will
flow to the "many" side (the table with multiple instances of that value).
• However, filters applied to the "many" side will not affect the data in the "one" side.
• This means that the filter flows in a single direction, influencing how the data is displayed in
the related table.
Both
• Filters applied to either the "one" side or the "many" side of the relationship will flow in
both directions.
• This means that filters from one table will affect the data in the other table, and vice versa.
• It allows for bidirectional filtering and analysis, enabling a more comprehensive exploration
of the data.

Cardinality Type and Cross Filter Direction


Cardinality Type Cross Filter Direction

One-to-many(1:*) or Many-to-one(*:1) Single


Both
One-to -one(1:1) Both
Many-to-many(*:*)
Single(Table1 to Table2)

Single(Table2 to Table1)

Both

Techniques of Data Modeling part - 2 | Hands


on Guide
Content
• Filter Flow
• Cross Filter Direction
Filter Flow
To show ModelName and Subcategory of
Bikes
in a table.
First load data in power BI then make relationships among all the tables after that, Follow these
steps:
1. Click on Table visual in visualizations pane.
2. Drag and drop CategoryName column from IVX_Product_Category table in columns
field.
3. Drag and drop SubcategoryName column from IVX_Product_Subcategories table in
columns field.
4. Drag and drop ModelName column from IVX_Products table in columns field.
5. Select Bikes in categoryName filters.

After applying all the above steps, the resulting table is below.

Cross Filter Direction


To change the cross filter direction, follow these steps:
1. Double-click on relationship line between the tables.
2. Edit relationship window will be open, go to cross filter direction section.
3. Select a option Single or Both in dropdown menu.

4. If you select Both then click Apply security filter in both directions also.

5. Click on OK button.

Introduction of DAX | Cheat Sheet

Contents
• DAX
• How DAX helps to make your data model better
• DAX Table and Column Name Syntax

DAX
• DAX (Data Analysis Expressions) is a formula language used in Power BI and other
Microsoft products like Excel and Analysis Services.
• DAX is a collection of functions, operators, and constants that can be used in a formula, or
expression, to calculate and return one or more values.
• DAX helps you create new information from data already in your model.

How DAX helps to make your data model better.


Data Exploration By creating calculated columns and measures using DAX, users can derive new
metrics, perform complex calculations, and gain deeper insights into their data.
Reusability DAX measures and calculations can be reused across multiple reports and
visualizations within your data model.
Time Intelligence DAX provides built-in functions for time intelligence calculations, such as
calculating year-to-date, quarter-to-date, or comparing data across different time periods.
Solving Real Business Problems
By leveraging DAX formulas effectively, users can generate actionable insights, identify areas for
improvement, optimize processes, and drive business growth.

DAX Table and Column Name Syntax


Object Types Examples Remarks
Table name Sales No quotation marks required if its a single word
'Canada
Table name Enclose the name in single quotation marks if there’s a space
Sales'
The table name precedes the measure name, and the measure
Fully qualified
Sales[Profit] name is enclosed in brackets In certain contexts, a fully
measure name
qualified name is always required
Unqualified column The unqualified name is the column name in brackets, used
[Amount]
name in formulas within the table or in aggregation functions
Fully qualified column Sales[Amoun The table name precedes the column name, and the column
name t] name is enclosed in brackets
Fully qualified column 'Canada The table name contains spaces, so it must be surrounded by
in table with spaces Sales'[Qty] single quotes

Measures Using DAX | Cheat Sheet

Contents
• Measures
• Implicit Measure
• Explicit Measure
• Calculated Columns

Measures
• Measure is a calculation performed on the data in a Power BI model.
• It is a formula that aggregates or calculates values based on specific criteria or conditions.
• Measures are typically used to perform calculations such as sum, average, count, maximum,
minimum, or any other mathematical or statistical operation on the data.
• Measures are defined within a table in the Power BI and can be created using DAX
functions.
• Measures can be reused across multiple reports and visualizations within the data model,
enhancing reusability and simplifying the analysis process.
Implicit Measure
• Implicit measures refer to the automatically generated measures that are created by Power
BI itself based on the data type.
• Power BI automatically determines the aggregation function based on the data type when a
numeric column is dragged onto a visualization field.
• When you add certain fields or columns to a visualization, Power BI automatically applies
an aggregation function (e.g., sum, count, average) to create a default measure.
• This default measure is considered an implicit measure because it is automatically generated
without the need for explicit definition or customization.

Explicit Measure
• An explicit measure is a measure that is explicitly defined by the user using a custom DAX
formula.
• Explicit measures are created with specific calculations and logic defined by the user.
• By creating explicit measures, users can derive more meaningful insights and perform
advanced analyses on their data within Power BI.
• Explicit measures provide greater control and flexibility compared to implicit measures.

Implicit Measure Vs Explicit Measure


Implicit Measure Explicit Measure
Automatically generated by Power BI when a
Manually created by users using DAX formulas
numeric column is dragged onto a visualization
Allow for complex calculations, custom
Provide basic aggregations such as sum, count,
aggregations, conditional logic, and advanced
average, minimum, maximum, etc.
calculations
Limited flexibility and customization options Greater flexibility and customization options
Calculated Columns
• Calculated columns allow users to add new columns to a table that derive values based on
expressions or calculations involving other columns in the same table.
• These calculated columns become part of the underlying data model and can be used in
various calculations, filtering, sorting, and visualizations throughout the report.
• Once the calculated column is added, it will contain the calculated values for each row in the
table.
• It's important to note that calculated columns increase the storage of the data model.

Measures Using DAX | Hands on Guide

Contents
• How to Create Measures
• How to create Calculated Columns

How to Create Measures


To create measures using DAX in Power BI, you can follow these steps:
1. Open Power BI Desktop and load your data.
2. In the Data pane, right click on the table on which you want to create the measure, select
New Measure.

Or
Go to the Table Tools tab in the ribbon of the Data View. Click on the New Measure option in the
Calculations section.
3. A formula bar will appear at the top of the screen. where you can enter your DAX formula for the
measure.

4. After completing the DAX formula, press Enter to create the measure.
The measure will now be available in the Data pane under the corresponding table.

How to create Calculated Columns


To create calculated columns using DAX in Power BI, you can follow these steps:
1. Open Power BI Desktop and load your data.
2. In the Data pane ,right click on the table on which you want to create calculated columns,
select New column.
Or

Go to the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

3. A formula bar will appear at the top of the screen.where you can enter your DAX formula for the
calculated column.

4. After completing the DAX formula, press Enter to create the calculated column.

The calculated column will now be added to the table.

DAX Syntax | Cheat Sheet

Contents
• DAX Syntax
• Operators
• Arithmetic Operators
• Comparison Operators
• Text Concatenation Operators
• Logical Operators

DAX Syntax
It is used to create calculated columns, calculated tables, measures, and other advanced calculations.
The syntax of DAX follows a specific structure.
TotalQuantity = SUM(Sales[OrderQuantity])
This formula includes the following syntax elements:
TotalQuantity - New column name. Operator (=) - The equals sign operator (=), which indicates
the beginning of the formula.
SUM - The DAX function SUM, which adds up all of the numbers in the
Sales[OrderQuantity] column.
Parenthesis () - Parenthesis () which surround an expression that contains one or more arguments.
An argument passes a value to a function.
Sales - The referenced table. [OrderQuantity] - The referenced column, [OrderQuantity], in the
Sales table. With this argument, the SUM function knows on which column to aggregate a SUM.

Operators
Operators are symbols or characters that are used to perform various calculations, comparisons, and
logical operations on data. Operators are an essential component of DAX.
There are four different types of calculation operators:
• Arithmetic operators
• Comparison operators
• Text concatenation operators
• Logical operators

Arithmetic Operators
• Arithmetic operators in DAX are used to perform mathematical calculations on values and
columns in Power BI.
• They allow you to perform basic arithmetic operations such as addition, subtraction,
multiplication and division.
Comparison Operators
• You can compare two values with the following operators. When two values are compared
by using these operators, the result is a logical value, either TRUE or FALSE.

Text Concatenation Operators


• Use the ampersand (&) to join, or concatenate, two or more text strings to produce a single
piece of text.
Logical Operators
• Use logical operators (&&) and (||) to combine expressions to produce a single result.

DAX Syntax | Hands on Guide

Contents
• Arithmetic Operators
• Comparison Operators
• Text Concatenation Operators
• Logical Operators

Arithmetic Operators
To create calculated column of TotalAmount, follow these steps:
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. A formula bar will appear at the top of the screen. Where you can enter your DAX formula for
the calculated column.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

Comparison Operators
To create calculated column of Profit/Loss, follow these steps:
1. Click on the Table Tools tab in the ribbon of the Data View . Click on the New Colum
option in the Calculations section.
2. A formula bar will appear at the top of the screen. Where you can enter your DAX formula
for the calculated column.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
Text Concatenation Operators
To create calculated column of Full Name , follow these steps:
1. Click on the Table Tools tab in the ribbon of the Data View . Click on the New Column
option in the Calculations section.
2. A formula bar will appear at the top of the screen. Where you can enter your DAX formula
for the calculated column.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

Logical Operators
To create calculated Discount columns, follow these steps:
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. A formula bar will appear at the top of the screen. Where you can enter your DAX formula
for the calculated column.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
Date and Time Functions | Cheat Sheet

Contents
• DAY Function
• MONTH Function
• YEAR Function
• SECOND Function
• MINUTE Function
• HOUR Function
• TODAY and NOW Function
• WEEKDAY Function
• DATEDIFF Function

Date and Time Functions


• There are several date and time functions available to perform calculations and
manipulations on date and time values.
• These functions help in extracting specific components from dates, creating date tables,
calculating durations, and more.
• Here's an overview of some commonly used date and time functions in DAX.

DAY Function
• The DAY function in DAX is used to extract the day component from a Date or DateTime
value in Power BI.
• It returns an integer value representing the day of the month.

MONTH Function
• The MONTH function in DAX is used to extract the month component from a Date or
DateTime value.
• It returns an integer value ranging from 1 to 12, representing the month of the year.

YEAR Function
• The YEAR function in DAX is used to extract the year component from a Date or DateTime
value.
• It returns a four-digit integer representing the year.

Function Saytax Return Value


DAY DAY(<Date>) Returns the day of the month (1-31)
MONTH MONTH(<Date>) Returns the month of the year (1-12)
Function Saytax Return Value
YEAR YEAR(<Date>) Returns the year of a date as a four digit integer

SECOND Function
• The SECOND function in DAX is used to extract the second component from a given
DateTime or Time value in Power BI.
• It returns an integer value ranging from 0 to 59, representing the second of the specified
time.
• The SECOND function is particularly useful for performing time-based calculations and
extracting specific components from a time value.

MINUTE Function
• The MINUTE function is a Date and Time function in the DAX.
• It is used to extract the minute component from a given time or datetime value.
• The MINUTE function returns an integer value between 0 and 59, representing the minute
portion of the time.

HOUR Function
• The HOUR function is a Date and Time function in the DAX.
• It is used to extract the hour component from a given time or datetime value.
• The function returns an integer value between 0 and 23, representing the hour of the day.
• You can create a new calculated column using the HOUR function to extract the hour from a
time or datetime column.

Function Saytax Return Value


SECOND(<datetime>
SECOND Returns the second as a number from 0 to 59
)
MINUTE(<datetime>
MINUTE Returns the minute as a number from 0 to 59
)
Returns the hour as a number from 0 (12:00 A.M) to 23
HOUR HOUR(<datetime>)
(11:00 P.M)

TODAY and NOW Function


• The TODAY and NOW functions in DAX are used to retrieve the current date and time.
• These functions are useful for dynamic calculations, filtering data based on the current date
or time, and creating time-based calculations.
• The NOW function is similar but returns the exact time, whereas TODAY returns the time
value 12:00:00 AM for all dates.
TODAY Function
The TODAY function is used to retrieve the current date. It returns a Date value representing the
current date at midnight.
Syntax :
TODAY()
Return Value The TODAY() function returns a Date value representing the current date.

NOW Function
The NOW function is used to retrieve the current date and time. It returns a DateTime value
representing the current date and time.
Syntax :
NOW()
Return Value The NOW() function returns a DateTime value representing the current date and
time.

WEEKDAY Function
• The WEEKDAY function in DAX is used to determine the day of the week for a given Date
or DateTime value in Power BI.
• It returns an integer value ranging from 1 to 7, representing the day of the week.
• The function allows you to perform various calculations and analysis based on the day of the
week.

Syntax :
WEEKDAY(Date, <Return_type>)

Parameters
Date - The Date or DateTime value for which you want to determine the day of the week. Return
type 1 - week begins on Sunday (1) and ends on Saturday (7). Return type 2 - week begins on
Monday (1) and ends on Sunday (7).

Return Value
The WEEKDAY function returns an integer from 1 to 7 representing the day of the week.

DATEDIFF Function
• The DATEDIFF function in DAX is used to calculate the difference between two dates in
terms of a specified interval.
• It allows you to perform date-based calculations and analyze the duration or time span
between two dates.
Syntax :
DATEDIFF(Start Date, End Date, Interval)

Parameters
Start Date - The starting Date or DateTime value. End Date - The ending Date or DateTime value.
Interval - The interval or unit of time to calculate the difference. It can be one of the following
values: "year", "quarter", "month", "day", "hour", "minute", "second".

Return Value
Returns an integer value representing the difference between the start date and end date in terms of
the specified interval.

Date and Time Functions | Hands On Guide

Contents
• DAY Function
• SECOND Function
• TODAY Function
• NOW Function
• WEEKDAY Function
• DATEDIFF Function

DAY Function
To use the DAY function, you'll first need to create a calculated column in Power BI. To create
calculated column, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.


3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

SECOND Function
To use the SECOND function, you'll first need to create a calculated column in Power BI. To create
calculated column, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View . Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

TODAY Function
To use the TODAY function, you'll first need to create a calculated column in Power BI. To create
calculated column which contain today date, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.


3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

NOW Function
To use the NOW function, you'll first need to create a calculated column in Power BI. To create
calculated column, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
WEEKDAY Function
To use the WEEKDAY function, you'll first need to create a calculated column in Power BI. To
create calculated column, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

DATEDIFF Function
To use the DATEDIFF function, you'll first need to create a calculated column in Power BI. To
create calculated column, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
Logical Functions | Cheat Sheet

Contents
• Logical Function
• IF Function
• OR Function
• AND Function
• NOT Function
• IFERROR Function

Logical Function
• The logical functions in DAX are used to perform logical operations and evaluate conditions
within Power BI formulas and expressions.
• These functions help in making logical decisions, filtering data, and performing conditional
calculations.

IF Function
• The IF function in DAX is a conditional function that allows you to perform logical tests
and return different results based on the outcome of the test.
• It is similar to the IF function in other programming languages and Excel.
• The IF function evaluates a specified condition and returns one value if the condition is true
and another value if the condition is false.
Syntax:
IF( logical test, value if true, value if false)
Parameters logical test - A logical expression or condition that evaluates to either true or false. It
can be a column reference, a scalar value, or an expression. value if true - The value or expression
to be returned if the logical test is true. value if false - The value or expression to be returned if the
logical test is false.
Return Value The IF function returns a single value based on the evaluation of the logical_test.
OR Function
• The OR function in DAX is a logical function that allows you to perform a logical OR
operation on multiple conditions.
• It checks whether at least one of the specified conditions is true and returns a Boolean value
of true or false.
• The OR function is commonly used to evaluate multiple conditions and make decisions
based on their collective outcome.
Syntax:
OR(logical1, logical2)
Parameters logical1, logical2 - The conditions or logical expressions that you want to evaluate.
You can specify two or more conditions separated by commas.
Return Value The OR function returns a Boolean value of true if at least one of the conditions
evaluates to true. Otherwise, it returns false.

AND Function
• The AND function in DAX is a logical function that allows you to perform a logical AND
operation on multiple conditions.
• It checks whether all the specified conditions are true and returns a Boolean value of true or
false.
• The AND function is commonly used to evaluate multiple conditions and make decisions
based on their collective outcome.
Syntax:
AND(logical1, logical2)
Parameters logical1, logical2 - The conditions or logical expressions that you want to evaluate.
You can specify two or more conditions separated by commas.
Return Value The AND function returns a Boolean value of true if all the conditions evaluate to
true. Otherwise, it returns false.

NOT Function
• The NOT function in DAX is a logical function that allows you to perform a logical NOT
operation on a single condition.
• It negates the outcome of the specified condition and returns the opposite Boolean value.
• The NOT function is commonly used to reverse the logical result of a condition.
Syntax:
NOT(condition)
Parameter condition - The condition or logical expression that you want to negate. It can be a
column reference, a scalar value, or an expression that evaluates to a Boolean value.
Return Value The NOT function returns a Boolean value of true if the specified condition evaluates
to false. It returns false if the condition evaluates to true.
IFERROR Function
• The IFERROR function in DAX is a conditional function that allows you to handle and
manage errors in your calculations.
• It evaluates an expression and returns a specified value if the expression results in an error.
• The IFERROR function is commonly used to handle errors and display alternative values or
perform alternative calculations when errors occur.
Syntax:
IFERROR(expression, value if error)
Parameters expression - The expression or calculation that you want to evaluate for errors. value if
error - The value or expression to be returned if the expression results in an error.
Return Value The IFERROR function returns the result of the expression if it does not result in an
error. If the expression produces an error, it returns the value specified by value if error.

Logical Functions | Hands On Guide

Contents
• IF Function
• OR Function
• AND Function
• NOT Function
• IFERROR Function

IF Function
To use the IF function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
OR Function
To use the OR function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

AND Function
To use the AND function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.
3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

NOT Function
To use the NOT function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

IFERROR Function
To use the IFERROR function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Measure
option in the Calculations section.

2. In the formula bar, enter the following formula. Create two different Measures.

3. After completing the DAX formula, press Enter to create the New Measure. The New Measure
will now be added to the Data pane.
4. Create two cards visuals and add DivideResult1 and Divideresult2 measures in the cards fields
from Data Pane.

Text Functions | Cheat


Sheet

Contents
• CONCATENATE Function
• LEN Function
• LEFT Function
• MID Function
• RIGHT Function
• UPPER Function
• LOWER Function
• FIND Function
• SUBSTITUTE Function

CONCATENATE Function
• The CONCATENATE function joins two text strings into one text string.
• The joined items can be text, numbers, Boolean values represented as text, or a combination
of those items.
• You can also use a column reference if the column contains appropriate values.
• If you want to use text strings directly, rather than using a column reference, you must
enclose each string in double quotation marks.
Syntax:
CONCATENATE(<text1>, <text2>)
Parameters text1 - The first text string to be joined into a single text string. The string can include
text or numbers. You can also use column references. text2 - The second text string to be joined into
a single text string. The string can include text or numbers. You can also use column references.
Return Value The CONCATENATE function returns a single text string that is the result of
combining the specified text strings.

LEN Function
• LEN function is used to calculate the length of the characters of a text string.
• LEN always counts each character as 1, no matter what the default language setting is.
• If you use LEN with a column that contains non-text values, such as dates or Booleans, the
function implicitly casts the value to text, using the current column format.
Syntax:
LEN(text)
Parameters text: The text whose length you want to find, or a column that contains text. Spaces
count as characters. Return Value A whole number indicating the number of characters in the text
string.

LEFT Function
• The LEFT function is used to extract a specified number of characters from the beginning
(leftmost part) of a text string.
Syntax:
LEFT(<text>, <num_chars>)
Parameters text - The text string containing the characters you want to extract, or a reference to a
column that contains text. num_chars - The number of characters you want LEFT to extract.
Return Value Returns the specified number of characters from the start of a text string.

MID Function
• The MID function is used to extract a specified number of characters from a text string,
starting at a specified position.
Syntax:
MID(<text>, <start_num>, <num_chars>)
Parameters text - The text string from which you want to extract the characters, or a column that
contains text. start_num - The position of the first character you want to extract. num_chars - The
number of characters to return.
Return Value A string of text of the specified length.

RIGHT Function
• The RIGHT function is used to extract a specified number of characters from the end
(rightmost part) of a text string.
Syntax:
RIGHT(<text>, <num_chars>)
Parameters text - The text string that contains the characters you want to extract, or a reference to a
column that contains text. num_chars - The number of characters you want right to extract.
Return Value A text string containing the specified right-most characters.

UPPER Function
• The UPPER function is used to convert a text string to uppercase.
• It is a DAX function that allows you to change the case of text values to all uppercase
letters.
Syntax:
UPPER (<text>)
Parameters text - The text you want converted to uppercase, or a reference to a column that
contains text.
Return Value The UPPER function returns a new text string that is the uppercase version of the
original text string.

LOWER Function
• The LOWER function is used to convert a text string to lowercase.
• It is a DAX function that allows you to change the case of text values to all lowercase
letters.
Syntax:
LOWER(<text>)
Parameters text - The text you want to convert to lowercase, or a reference to a column that
contains text.
Return Value The LOWER function returns a new text string that is the lowercase version of the
original text string.
FIND Function
• The FIND function is used to locate the position of a specific text string within another text
string.
Syntax:
FIND(<find_text>, <within_text><start_num>, <NotFoundValue>)
Parameters find_text - The text you want to find. within_text - The text containing the text you
want to find. start_num - The character at which to start the search. NotFoundValue - The value that
should be returned when the operation does not find a matching text.
Return Value Number that shows the starting point of the text string you want to find.

SUBSTITUTE Function
• the SUBSTITUTE function is used to replace occurrences of a specified text string within
another text string with a new text string.
• If case does not match between text and old_text, SUBSTITUTE will not replace the text.
• The SUBSTITUTE function is case-sensitive.
Syntax:
SUBSTITUTE(<text>, <old_text>, <new_text>)
Parameters text - The text in which you want to substitute characters, or a reference to a column
containing text. old_text - The existing text that you want to replace. new_text - The text you want
to replace old_text with.
Return Value The SUBSTITUTE function returns a new text string with the specified substitutions
made.
Text Functions | Hands On Guide

Contents
• CONCATENATE Function
• LEN Function
• LEFT Function
• MID Function
• RIGHT Function
• LOWER Function
• FIND Function
• SUBSTITUTE Function
CONCATENATE Function

To use the CONCATENATE function, follow these steps.


1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

LEN Function
To use the LEN function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

LEFT Function
To use the LEFT function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

MID Function
To use the MID function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

RIGHT Function
To use the RIGHT function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

LOWER Function
To use the LOWER function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

FIND Function
To use the FIND function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press


Enter
to create the calculated column. The calculated column will now be added to the table.

SUBSTITUTE Function
To use the SUBSTITUTE function, follow these steps.

1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculationssection.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The
calculated column will now be added to the table.

Math & Statistical Functions | Cheat Sheet

Contents
• ABS Function
• LCM Function
• MOD Function
• RANDBETWEEN Function
• MEDIAN Function
ABS Function
• The ABS function in DAX is a mathematical function that returns the absolute (positive)
value of a number.
• It disregards the sign of the number and always returns its magnitude.
• The ABS function is commonly used to calculate the absolute difference between two values
or to convert negative values to positive values.
Syntax:
ABS(<number>)
Parameters number - The number for which you want the absolute value.
Return Value Returns the absolute value of a number.

LCM Function
• The LCM function in DAX returns the least common multiple of integers.
• The least common multiple is the smallest positive integer that is a multiple of all integer
arguments
Syntax:
LCM(number1, number2, ...)
Parameters number1 - The first integer argument. number2 - The second integer argument.
Return Value Returns the least common multiple of integers.

MOD Function
• The MOD function in DAX is a mathematical function that calculates the remainder when
one number is divided by another.
• It returns the modulus or remainder of the division operation.
• he MOD function is commonly used to perform calculations based on the remainder, such as
identifying even or odd numbers, grouping values into specific ranges, or checking for
divisibility
Syntax:
MOD(<number>, <divisor>)
Parameters number - The number for which you want to find the remainder after the division is
performed. divisor - The number by which you want to divide.
Return Value Returns the remainder after a number is divided by a divisor. The result always has
the same sign as the divisor.

RANDBETWEEN Function
• The RANDBETWEEN function generates a random whole number between a specified
minimum and maximum value.
Syntax:
RANDBETWEEN(<bottom>,<top>)
Parameters Bottom - The smallest integer the function will return. Top - The largest integer the
function will return.
Return Value Returns a random number in the range between two numbers you specify.

MEDIAN Function
• The MEDIAN function in DAX is used to calculate the median value of a given set of
values in Power BI.
• The median is the middle value in a sorted list of numbers or the average of the two middle
values if the list has an even number of values.
• The MEDIAN function helps in analyzing the central tendency of data.
Syntax:
MEDIAN(<column>)
Parameters column - The column that contains the numbers for which the median is to be
computed.
Return Value The MEDIAN function returns the median value from the specified column or
expression.
Math & Statistical Functions | Hands On Guide

Contents
• ABS Function
• LCM Function
• MOD Function
• RANDBETWEEN Function
• MEDIAN Function
ABS Function

To use the ABS function, follow these steps.


1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.

2. In the formula bar, enter the following formula.


3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

LCM Function
To use the LCM function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
MOD Function
To use the MOD function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

RANDBETWEEN Function
To use the RANDBETWEEN function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
MEDIAN Function
To use the MEDIAN function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Measure
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the Measure. The Measure will now be
added to the data pane.
4. To show the MeadianOfQuantity measure, you need to create Card visual and add
MeadianOfQuantity measure in fields pane of card visual.

Filter Functions | Cheat Sheet

Contents
• FILTER Function
• ALL Function
• ALLEXCEPT Function
• CALCULATE Function

FILTER Function
• You can use FILTER function to reduce the number of rows in the table that you are
working with, and use only specific data in calculations.
• It allows you to define a subset of a table or column that meets specific criteria.
Syntax:
FILTER(<table>, <filter>)
Parameters table - The table to be filtered. The table can also be an expression that results in a
table. filter - A Boolean expression that is to be evaluated for each row of the table.
Return Value The Filter function returns a table that contains only the rows from the input table or
column that meet the specified condition.

ALL Function
• The
ALL
function allows you to remove or override filters applied to a specific column or table.
• By applying the
ALL
function, you can include all the values from the specified column or table in the calculation,
regardless of the applied filters.
Syntax:
ALL( <table>, [<column>] )
Parameters table - The table that you want to clear filters on. column - The column that you want
to clear filters on.
Return Value Returns all the rows in a table, or all the values in a column, ignoring any filters that
might have been applied.

ALLEXCEPT Function
• It allows you to remove filters from a specified column while keeping filters applied to other
columns or tables.
• The ALLEXCEPT function is useful when you want to exclude filters on certain columns
but retain filters on other columns.
• This function is not used by itself, but serves as an intermediate function that can be used to
change the set of results over which some other calculation is performed.
Syntax:
ALLEXCEPT(<table>,<column>[,<column1>])
Parameters table - The table over which all context filters are removed, except filters on those
columns that are specified in subsequent arguments. column - The column for which context filters
must be preserved.
Return Value Removes all context filters in the table except filters that have been applied to the
specified columns.

CALCULATE Function
• It allows you to modify the context in which a calculation or aggregation is performed,
enabling dynamic calculations based on specific filters, conditions, or expressions.
• The CALCULATE function is used to create complex calculations by applying one or more
filters to a specific expression.
Syntax:
CALCULATE(<expression>, [<filter>])
Parameters expression - The expression to be evaluated. filter - (optional)Boolean expressions or
table expressions that defines filters, or filter modifier functions.
Return Value The value that is the result of the expression.

Filter Functions | Hands on Guide

Contents
• FILTER Function
• ALL Function
• ALLEXCEPT Function
• CALCULATE Function

FILTER Function
To use the FILTER function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Table
option in the Calculations section.

2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the new table. The new table will now
be added to the Data pane.

ALL Function
To use the ALL function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Table
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the new table. The new table will now
be added to the Data pane.

ALLEXCEPT Function
To use the ALLEXCEPT function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Table
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the new table. The new table will now
be added to the Data pane.
CALCULATE Function
To use the CALCULATE function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Measure
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the new measure. The new measure
will now be added to the table.
4. create Table visual and add OrderDate column and MultipleQuantity measure in columns field of
table visual.
Time Intelligence Functions | Cheat Sheet

Contents
• DATESBETWEEN Function
• ENDOFMONTH Function
• STARTOFYEAR Function
• NEXTMONTH Function

DATESBETWEEN Function
• The DATESBETWEEN function in Power BI is used to create a date range by specifying a
start and end date.
• It allows you to filter data based on a specific period of time and perform calculations within
that range.
• This function is suited to pass as a filter to the CALCULATE function. Use it to filter an
expression by a custom date range.
Syntax:
DATESBETWEEN(<Dates>, <StartDate>, <EndDate>)
• If StartDate is BLANK, then StartDate will be the earliest value in the Dates column.
• If EndDate is BLANK, then EndDate will be the latest value in the Dates column.
• Dates used as the StartDate and EndDate are inclusive.
Parameters Dates - A date column. StartDate - A date expression. EndDate - A date expression.
Return Value Returns a table that contains a column of dates that begins with a specified start date
and continues until a specified end date.

ENDOFMONTH Function
• The ENDOFMONTH function in Power BI is used to calculate the end date of the month for
a given date.
• The ENDOFMONTH function is helpful when you need to perform calculations or create
reports based on monthly data.
• It will return the date value corresponding to the last day of the month for each date in the
column.
Syntax:
ENDOFMONTH(<dates>)
Parameters dates - A column that contains dates.
Return Value Returns the last date of the month in the current context for the specified column of
dates.
STARTOFYEAR Function
• The STARTOFYEAR function in Power BI is used to calculate the start date of the year for
a given date.
• The STARTOFYEAR function is helpful when you need to perform calculations or create
reports based on yearly data.
• It will return the date value corresponding to the start of the year for each date in the
column.
Syntax:
STARTOFYEAR(<dates>)
Parameters dates - A column that contains dates.
Return Value Returns the first date of the year in the current context for the specified column of
dates.

NEXTMONTH Function
• The NEXTMONTH function in Power BI is used to calculate the date that represents the
next month after a given date.
• It allows you to easily determine the date corresponding to the following month for a
specific date value.
• The NEXTMONTH function is helpful when you need to perform calculations or create
reports based on the next month's data.
Syntax:
NEXTMONTH(<dates>)
Parameters dates - A column containing dates.
Return Value The NEXTMONTH function returns a date value representing the next month after
the provided date expression.

Time Intelligence Functions | Hands on Guide

Contents
• DATESBETWEEN Function
• ENDOFMONTH Function
• STARTOFYEAR Function
• NEXTMONTH Function

DATESBETWEEN Function
To use the DATESBETWEEN function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Table
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the new table. The new table will now
be added to the Data pane.

ENDOFMONTH Function
To use the ENDOFMONTH function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.
STARTOFYEAR Function
To use the STARTOFYEAR function, follow these steps.
1. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Column
option in the Calculations section.
2. In the formula bar, enter the following formula.

3. After completing the DAX formula, press Enter to create the calculated column. The calculated
column will now be added to the table.

NEXTMONTH Function
To use the NEXTMONTH function, follow these steps.
1. create profitMrgin as a New Column using given formula.
2. Click on the Table Tools tab in the ribbon of the Data View. Click on the New Measure option in
the Calculations section.
3. In the formula bar, enter the following formula. Create two different Measures.

4. After completing the DAX formula, press Enter to create the New Measure. The New Measures
will now be added to the Data pane.
5. Create table visuals, add OrderDate column, ThisMonthProfitMargin and
NextMonthProfitMargin measures in the columns of the table.

You might also like