dv-1-28
dv-1-28
dv-1-28
Unit-1 Introduction
Power BI is a business analytics tool developed by Microsoft that enables users to visualize data,
create interactive reports, and share insights across an organization or embed them in an app or
website. It helps businesses and individuals analyze data from various sources and present it
through rich visuals, dashboards, and reports.
Some key features of Power BI include:
Data connections: Power BI connects to a wide range of data sources like Excel, SQL
databases, Azure, Salesforce, and even web-based data.
Data transformation: It has built-in tools for cleaning, shaping, and modeling data using
Power Query.
Interactive visualizations: Power BI provides a variety of charts, graphs, maps, and
custom visuals for interactive analysis.
Dashboards: Users can create real-time dashboards that consolidate data and provide at-
a-glance insights.
Collaboration: Reports and dashboards can be shared within an organization or with
external users through Power BI service.
AI-powered analytics: It includes features like machine learning models and natural
language queries for advanced insights.
Power BI is available in different versions, such as Power BI Desktop (for report creation),
Power BI Pro (for collaboration and sharing), and Power BI Premium (for large-scale
deployments and advanced features).
Power BI is a collection of components: a) Power Query, b) Power Pivot, c) Power View, d)
Power BI Service
1. Power Query
Purpose: Data connection, transformation, and preparation.
Description: Power Query allows users to extract, transform, and load (ETL) data from
various sources. It enables data cleaning, merging, and shaping before importing it into
Power BI reports.
2. Power Pivot
Purpose: Data modeling and analysis.
Description: Power Pivot helps users create data models, relationships, and perform
complex calculations using Data Analysis Expressions (DAX). It's particularly useful for
managing large datasets and performing aggregations and calculations.
3. Power View
Purpose: Data visualization and reporting.
Description: Power View provides an interactive way to create dynamic data
visualizations, such as charts, graphs, and maps. Users can create ad hoc reports and
dashboards, interact with them, and explore data visually.
4. Power BI Service
Purpose: Cloud-based collaboration and sharing.
Description: Power BI Service is a cloud platform where users can publish, share, and
collaborate on reports and dashboards. It also provides real-time data monitoring,
dashboard sharing, and integration with other Microsoft services (like Teams, SharePoint,
etc.).
These components form a powerful ecosystem within Power BI that enables end-to-end data
analysis—from importing and transforming data, building analytical models, to visualizing and
sharing insights across an organization.
Power BI is widely chosen for data analysis and business intelligence due to its powerful
features, flexibility, and ease of use. Here are some key reasons why businesses and individuals
prefer Power BI:
1. User-Friendly Interface
Power BI has an intuitive, drag-and-drop interface that makes it easy for non-technical
users to create and share dashboards and reports without deep knowledge of
programming or data science.
2. Powerful Data Visualization
Power BI provides a wide variety of interactive visualizations, including charts, graphs,
maps, and custom visuals, making it easier to understand and communicate insights. It’s
perfect for data storytelling and dashboard creation.
4. Data Connectivity
Power BI can connect to a vast array of data sources, from Excel spreadsheets and SQL
databases to cloud services like Azure, Salesforce, Google Analytics, and more. This
allows users to analyze data from multiple systems in one place.
5. Data Transformation and Preparation (ETL)
With Power Query, Power BI allows for powerful data transformation capabilities. Users
can clean, shape, and transform data before analyzing it, reducing the need for separate
ETL tools.
6. Real-Time Data Analysis
Power BI enables real-time data analysis and monitoring, particularly useful for live
dashboards. It can connect to live data sources, providing up-to-the-minute insights that
businesses can act on immediately.
7. Collaboration and Sharing
Power BI makes it easy to share reports and dashboards within an organization or with
external stakeholders through the Power BI Service. Reports can be embedded in
websites, shared through apps, or even integrated into platforms like Microsoft Teams.
8. Cost-Effective
Power BI offers a free desktop version with robust capabilities, making it a great choice
for individuals and small businesses. Power BI Pro, with more advanced collaboration
features, is cost-effective compared to other enterprise BI tools, making it accessible to
businesses of all sizes.
9. Scalability
Power BI scales from small businesses to large enterprises. Power BI Premium provides
dedicated cloud resources for large-scale deployments, along with advanced AI features,
big data analytics, and enhanced data processing.
10. Advanced Analytics with AI and Machine Learning
Power BI includes advanced analytics features like AI insights, predictive modeling, and
natural language queries. Users can integrate machine learning models from Azure,
making
Overall, Power BI is chosen for its ability to turn raw data into meaningful, actionable
insights quickly and affordably, while still being scalable and powerful enough for enterprise-
level applications.
Power BI has been consistently recognized by Gartner as a leader in the Gartner Magic
Quadrant for Analytics and Business Intelligence Platforms. Gartner is a well-known global
research and advisory firm that evaluates technology solutions based on factors like
completeness of vision and ability to execute.
Key Highlights of Power BI's Recognition by Gartner:
1. Leader in the Magic Quadrant: Microsoft Power BI has maintained a position as a
leader in the Magic Quadrant for Analytics and BI platforms for several consecutive
years, often placed at the top due to its innovative features, ease of use, and robust
functionality.
2. Completeness of Vision: Power BI is recognized for its visionary approach, continually
integrating AI-powered analytics, natural language processing, and advanced machine
learning capabilities. Its ability to innovate and stay ahead of market trends plays a big
role in its leadership position.
3. Ability to Execute: Gartner praises Power BI for its strong execution, particularly in its
massive user base, affordability, and ease of deployment. It appeals to a broad range of
users, from individuals and small businesses to large enterprises, making it highly
scalable.
4. Cost-Effectiveness: Gartner also highlights Power BI for being cost-effective, with its
pricing models providing flexibility for small organizations and its enterprise-grade
capabilities for large organizations.
5. AI and Data Integration: Power BI’s integration with Microsoft Azure for AI and
machine learning services is another reason for its strong performance in the Magic
Quadrant. This makes it easier for businesses to adopt advanced analytics solutions and
leverage cloud computing.
Basic Charts
Column Chart
A Column Chart in Power BI is a type of visual representation where data is displayed using
vertical bars (columns). It is one of the most commonly used charts for comparing categories and
showing changes over time.
Types of Column Charts in Power BI
1. Clustered Column Chart: Displays values across different categories by showing
columns grouped side-by-side for each category.
2. Stacked Column Chart: Displays values as a cumulative total for each category,
stacking different sub-categories within each column.
3. 100% Stacked Column Chart: Similar to the stacked column chart but shows values as
a percentage of the total, with each column representing 100%.
When to Use a Column Chart
Category Comparisons: Comparing values across different categories (e.g., sales across
different regions or products).
Time Series Data: Displaying data over time periods (e.g., sales by month or year).
Visualizing Distribution: Understanding the distribution of data across categories.
Clustered vs. Stacked: Use a clustered column chart if you want to compare values across
different categories. Use a stacked column chart to see the breakdown of a total value into
subcategories.
Use the Filters pane to filter the data shown in the chart based on your criteria (e.g., filter by date
range, category, region, etc.).
Pie Chart
When to Use a Pie Chart:
Proportional Data: When you want to show how different categories contribute to a
whole (e.g., market share, product sales by category).
Limited Categories: Pie charts are effective when you have a small number of
categories, typically fewer than six. More categories make the chart difficult to read.
Comparison Between Parts and Whole: When you want to highlight the relative
proportions of parts within a dataset.
Highlighting Major Categories: If one or two categories dominate the data, pie charts
make this visually obvious.
Donut Chart
Part-to-Whole Relationships: Use a donut chart when you want to visualize how parts
contribute to a whole.
Improved Labeling: The central hole allows for labels or icons to be placed in the center,
making it easier to display additional context or key metrics.
Fewer Categories: Like pie charts, donut charts are best suited for a limited number of
categories (usually fewer than six) to maintain clarity.
Comparative Analysis: They are also useful for comparing relative sizes of categories when
visually appealing presentation is important.
Funnel Chart
A Funnel Chart in Power BI is a visual representation of stages in a process, typically used to
illustrate the progression of data through various steps. It is most commonly used in sales and
marketing to show how many leads are converted at each stage of a sales pipeline.
Key Features of a Funnel Chart:
Stages: The chart consists of multiple stages, each represented as a segment of a funnel.
Decreasing Size: The width of each stage decreases as it progresses, indicating a
reduction in the number of items (e.g., leads, customers) at each stage.
Proportional Representation: The size of each segment is proportional to the number of
items at that stage.
When to Use a Funnel Chart:
Sales Process: To visualize the sales process, showing how many leads enter and exit at
each stage (e.g., awareness, interest, consideration, purchase).
Conversion Rates: To analyze conversion rates between stages and identify bottlenecks.
Project Management: To illustrate the progress of tasks through stages, such as idea
generation to implementation.
Insights:
1. Top-Selling Sub-Categories:
o Phones: The longest bar, indicating it's the highest-selling sub-category.
o Chairs, Storage, Tables: These also have significant sales, suggesting they are popular or profitable.
2. Mid-Range Sub-Categories:
o Binders, Machines, Accessories, Copiers: Have moderate sales, indicating they are still important but
may not be as popular or profitable as the top-selling categories.
3. Low-Selling Sub-Categories:
o Bookcases, Appliances, Furnishings, Paper, Supplies, Art, Envelopes, Labels, and Fasteners: These
have lower sales, suggesting they may be niche products or less in demand.
Recommendations:
Focus on High-Performing Sub-Categories: Leverage the success of top-selling sub-categories to drive
overall sales.
Analyze Mid-Range Sub-Categories: Identify opportunities to increase sales for sub-categories with
moderate performance.
Evaluate Low-Selling Sub-Categories: Determine if these sub-categories are still profitable or if they
should be discontinued or repositioned.
Market Research: Conduct market research to understand customer preferences and identify potential
new product opportunities.
Sales Strategies: Develop targeted sales strategies for each sub-category based on their unique
characteristics.
Ribbon Chart
A Ribbon Chart in Power BI is used to display the rank of items over time. It visualizes how
values change, showing trends and rankings through colored ribbons that connect data points.
Key Features of a Ribbon Chart:
Multiple Series: Displays multiple series of data and how they rank over a category (e.g.,
time).
Ribbons: Each series is represented by a ribbon, which shows how the ranking of values
changes over time or categories.
Rankings: The chart helps in understanding how different categories compare and how
their positions change.
When to Use a Ribbon Chart:
Ranking Analysis: To analyze rankings of items over a period (e.g., sales performance of
different products month over month).
Comparison Over Time: To compare how categories perform over time, especially in
competitive environments.
Visualizing Trends: To see trends in data rankings, making it easy to identify shifts in
performance.
Purpose: This chart visualizes the changes in total sales across different regions (Central, East,
South, West) from 2016 to 2019.
Key Elements:
X-axis: Represents the years (2016, 2017, 2018, 2019).
Y-axis: Represents the sum of sales.
Ribbon Segments: Each ribbon represents a different region (Central, East, South, West). The
width of each ribbon segment indicates the sales contribution from that region during a specific
period.
Overlapping Ribbons: The overlapping of ribbons can visualize the interplay between different
regions and how their contributions change over time.
Insights:
1. Overall Sales Trend:
o The chart shows a general upward trend in total sales from 2016 to 2019.
o There was a significant increase in sales from 2017 to 2018, followed by a more moderate
increase in 2019.
2. Regional Contributions:
o West: The West region consistently contributed a significant portion of the total sales throughout
the years.
o Central and East: These regions experienced fluctuations in their contributions. Central had a
strong presence in 2016 and 2018, while East had a more prominent role in 2017 and 2019.
o South: The South region's contribution remained relatively stable throughout the years, with a
slight increase in 2018.
3. Year-over-Year Changes:
o Analyze the changes in each region's sales from year to year to identify trends and patterns.
o For example, you might observe that the West region's sales increased steadily, while the East
region had a more volatile performance.
Recommendations:
Focus on High-Performing Regions: Identify regions with consistent growth and explore
strategies to further enhance their performance.
Address Underperforming Regions: Analyze the reasons for fluctuations in underperforming
regions and implement measures to improve their contributions.
Regional Analysis: Conduct a deeper analysis of each region's sales trends to identify specific
factors influencing their performance.
Competitive Analysis: Assess the competitive landscape in each region to understand market
dynamics and identify opportunities.
Map
A Map Chart in Power BI is a powerful tool used to visualize geographic data. It allows you to
display data points on a map, using location-based data such as countries, cities, or coordinates
(latitude and longitude). Map charts are effective for presenting data with a geographical
component and can offer insights into spatial distribution, trends, and patterns.
Types of Map Charts in Power BI:
1. Basic Map (Bubble Map):
o Displays data as bubbles on a map. The size of each bubble represents a value
(e.g., sales), while its location corresponds to geographic data (e.g., city, country).
2. Filled Map (Choropleth Map):
o Displays data with color shading for different geographic regions (e.g., countries,
states). The intensity of the color represents the value.
3. Shape Map:
o Allows for more custom geographic visualizations by mapping data onto
predefined shapes or boundaries (e.g., regions within a country).
4. Azure Maps:
o More advanced mapping with features like 3D maps, weather patterns, and
specific geographic boundaries.
Key Features of Map Charts in Power BI:
Geocoding: Power BI can automatically geocode location-based data such as city names,
countries, or states, placing them accurately on the map.
Interactivity: Map charts in Power BI are interactive. You can hover over or click on
regions or bubbles to display additional information.
Zoom and Pan: Users can zoom in and out of the map for more detailed views or a
broader perspective.
Legend and Tooltips: Maps can have legends and tooltips to provide more context to the
data.
When to Use a Map Chart:
Geographical Data: When you have data tied to specific locations (e.g., sales by city,
population density by region).
Spatial Trends: To analyze spatial trends or patterns, such as identifying regions with
high or low sales or customer density.
Visualizing Market Reach: To show how a product or service performs across different
regions.
Filled Map
Line Chart
A Line Chart in Power BI is a type of visualization used to display trends over time or
categories, connecting individual data points with a continuous line. It is ideal for showing time
series data or patterns across a sequence of data points, helping users visualize changes and
trends clearly.
When to Use a Line Chart:
Time Series Data: When you have data collected over time, such as sales over the last 12
months.
Trend Analysis: To highlight changes or trends over time or across different categories.
Comparing Multiple Data Series: To compare the performance of different categories
(e.g., sales of different products over time).
Forecasting: To identify trends and predict future values based on historical data.
Area Chart
An Area Chart in Power BI is similar to a line chart, but the area between the line and the x-axis
is filled with color, making it useful for emphasizing the magnitude of values over time or
categories. It's a great way to visualize cumulative values, trends, and comparisons between
multiple data series.
When to Use an Area Chart:
Cumulative Data: To visualize the total impact of data over time, such as total revenue
or cumulative sales.
Comparing Trends: Useful when comparing trends of different datasets while
emphasizing the volume.
Part-to-Whole Relationships: When you want to see how parts contribute to a whole
over time.
Purpose: This chart visualizes the sum of sales across different regions (Central, East, South,
West) from 2016 to 2019. It provides a visual representation of the total sales contribution from
each region over time.
Key Elements:
Insights:
Recommendations:
Focus on High-Performing Regions: Leverage the success of the West region and
explore strategies to further enhance its performance.
Address Underperforming Regions: Investigate the reasons for the slower growth in
the South region and implement targeted strategies to improve contributions.
Regional Analysis: Conduct a deeper analysis of each region's sales trends to identify
specific factors influencing their performance.
Competitive Analysis: Assess the competitive landscape in each region to understand
market dynamics and identify opportunities.
Interpretation:
The waterfall chart represents the changes in total sales across three categories—Furniture,
Office Supplies, and Technology—from 2016 to 2019. The total sales started at approximately
$484K in 2016, experienced a slight decline to $470K in 2017, followed by a significant
increase to $609K in 2018, and continued to grow to $733K in 2019.
2016 to 2017 saw a decrease in total sales, primarily driven by drops in Technology and Office
Supplies, despite a small increase in Furniture sales. This suggests potential market or internal
challenges during this period.
From 2017 to 2018, there was a substantial recovery, with sales climbing to $609K. This
growth was consistent across all three categories, indicating a broad-based improvement.
Technology saw the most significant increase, suggesting a strong demand or successful
initiatives in that area.
2018 to 2019 marked another year of growth, with total sales reaching $733K. The increase was
driven primarily by strong performances in both Technology and Office Supplies, which had
their highest sales figures in this period. Furniture also saw moderate growth, contributing to the
overall upward trend.
In summary, the chart shows that although the company faced some declines in 2017, it
demonstrated resilience with continuous growth from 2018 onwards, supported mainly by the
Technology and Office Supplies categories
Tree Map
A Tree Map in Power BI is a visual tool that represents hierarchical data as a set of nested
rectangles. The size of each rectangle is proportional to the value of the data point, and it allows
you to visualize data that is part of a whole, with categories and subcategories represented in a
compact form. Tree maps are particularly effective for comparing the size of individual elements
within a category or between categories.
When to Use a Tree Map:
Part-to-Whole Analysis: To show how individual elements contribute to the total, such
as the market share of products within a product line.
Hierarchical Data: When you need to display hierarchical data, such as company
departments and their respective budgets.
Comparing Categories: To compare the relative sizes of different categories or
subcategories in a clear, visual way.
Limited Space: Tree maps are great when you need a visual that fits in a small space but
still conveys a lot of information.
Gauge Chart
A Gauge Chart in Power BI is a visual representation that displays a single value within a
defined range. It is often used to show progress toward a goal, performance against a target, or to
highlight key performance indicators (KPIs). The gauge chart typically consists of a dial, an arc
(which represents the range), and a pointer that indicates the current value.
When to Use a Gauge Chart:
KPI Display: To display a key performance indicator (KPI) that requires a simple,
immediate view of performance against a target.
Progress Toward Goals: To show how close a value is to a predefined target or goal,
such as sales targets or production goals.
Simplicity: When you want to convey a single metric quickly and clearly.
Created new measure called Target Sales -> Target Sales = SUM(Orders[Sales])*1.3
Word Cloud
A Word Cloud (also known as a tag cloud) is a visual representation of text data where the size
of each word indicates its frequency or importance within the dataset. This type of visualization
helps highlight the most prominent terms, making it easy to identify key themes and trends at a
glance.
When to Use a Word Cloud:
Text Analysis: To analyze survey responses, reviews, or any other form of unstructured
text data.
Identifying Trends: To visualize the most common terms in social media posts, articles,
or discussions.
Presentations: To create engaging visuals for presentations, reports, or marketing
materials.
Top-Performing States:
California: The largest word, indicating it has the highest sales volume, suggesting it's
the top-performing state.
New York: The second-largest word, suggesting it also has significant sales.
Texas: Another prominent state with high sales.
Pennsylvania
Ohio
Illinois
Michigan
Florida
Wyoming
North Dakota
South Dakota
Vermont
New Mexico
Play Axis
Play Axis is a feature in Power BI that allows you to create animated visualizations by
representing data over time. It’s particularly useful for displaying how metrics change
dynamically, making it easier to understand trends and patterns in your data.
When to Use Play Axis:
Time-Based Data: When you want to analyze how data changes over different periods
(e.g., monthly sales, annual revenue).
Comparative Analysis: To compare multiple categories or metrics over time and see
how they rank against each other dynamically.
Grouping
Grouping enables you to create categories or groups from your data, which can help in
aggregating, summarizing, and visualizing data in a more meaningful way. For instance, you can
group sales data by product categories, regions, or time periods.
Types of Grouping in Power BI
1. Group Data in Visuals
2. Group Data in Data View
3. Creating Groups using DAX
Matrix
A Matrix in Power BI is a powerful visual that displays data in a tabular format, allowing you to
present and analyze data hierarchically. It can be thought of as an advanced table where you can
add multiple dimensions and measures, making it ideal for detailed data analysis.
When to Use a Matrix:
Detailed Data Analysis: When you want to analyze data with multiple dimensions (e.g.,
sales by region and product).
Hierarchical Data: When working with datasets that have natural hierarchies, such as
organizational structures or product categories.
Comparative Analysis: To compare multiple measures across different categories and
subcategories.
Hierarchies
Number Formatting in Matrix
Visual -> specific column ->values -> Display Units
Cards
Card visuals are used to display single values or metrics prominently. They can be very useful
for highlighting key performance indicators (KPIs) or important statistics at a glance. Here's a
breakdown of different types of card visuals:
1. Name Card
A Name Card is typically used to display a single piece of text or a title, such as the name of a
specific metric or entity. While not a default visual, you can create a card that focuses on a
specific category or identifier.
2. Text Card
A Text Card displays static or dynamic text, often used for descriptions, titles, or other textual
information. This visual can enhance the context of your report.
3. Date Card
A Date Card displays a specific date or date range, which can be useful for highlighting
important deadlines, reporting periods, or timestamps.
A Multi-row Card in Power BI is a visual that displays multiple values across rows, allowing
you to show a set of related information in a compact and organized way. This visual is
particularly useful for showcasing multiple metrics or attributes related to a specific category or
entity without taking up too much space on your report.
When to Use a Multi-row Card:
Comparative Metrics: When you want to display related metrics for categories like sales
performance, customer data, or product information.
KPI Dashboards: In dashboards where space is limited and multiple KPIs need to be
monitored.
Summary Views: For providing a quick overview of multiple attributes of a single entity
or category.
Slicers
A Slicer in Power BI is a visual element that allows users to filter data in reports interactively.
Slicers provide an easy and intuitive way to filter visuals on a report page based on selected
criteria, such as dates, categories, or numeric ranges. They enhance user experience by enabling
more dynamic exploration of data.
Types of Slicers in Power BI:
1. Text Slicer:
o Displays a list of text values that users can select from to filter the data. For
example, filtering by Product Category or Region.
2. Date Slicer:
o Displays a calendar or date range selector, allowing users to filter based on dates.
You can choose to show Before, After, or Between date ranges.
3. Numeric Slicer:
o Allows users to select a numeric range (e.g., price range, quantity range) using a
slider.
4. Hierarchical Slicer:
o Enables users to filter based on a hierarchy of categories. For example, filtering
data by Country > Region > City.
Buttons
buttons are interactive elements that allow users to navigate between report pages, reset filters,
drill through data, or trigger custom actions like bookmarks. Buttons are highly customizable and
can improve the overall user experience by providing intuitive navigation and interaction within
reports.
Steps to Create a Button in Power BI
1. Insert a Button:
1. Go to the Insert Tab:
o In Power BI Desktop, go to the Insert tab in the ribbon.
2. Select Button Type:
3. Add the Button to the Report:
3. Add an Action to the Button:
1. Enable Action:
o Scroll down in the Format pane to the Action section, and toggle Action to "On."
2. Choose the Action Type:
o From the dropdown menu under Type, select what you want the button to do:
Bookmark: Navigate to a specific bookmarked view of the report.
Page Navigation: Jump to another page in the report.
Drill Through: Enable drill-through functionality for detailed views.
Q&A: Trigger a Q&A session for the user to ask questions.
Web URL: Link to an external webpage or document.
Reset Filter: Clear slicers or filters applied to the report.
3. Set the Action Target:
o Depending on the action type, specify the target. For instance:
Bookmark: Choose the bookmark you want the button to activate.
Page Navigation: Select the report page to navigate to.
Web URL: Enter the URL you want the button to open.