Iv Year Soc
Iv Year Soc
Iv Year Soc
Power BI - Introduction
Power BI is a Data Visualization and Business Intelligence tool that
converts data from different data sources to interactive dashboards
and BI reports. Power BI suite provides multiple software, connector,
and services - Power BI desktop, Power BI service based on Saas, and
mobile Power BI apps available for different platforms. These set of
services are used by business users to consume data and build BI
reports.
Power BI desktop app is used to create reports, while Power BI
Services (Software as a Service - SaaS) is used to publish the reports,
and Power BI mobile app is used to view the reports and dashboards.
Power BI Desktop is available in both 32-bit and 64-bit versions. To
download the latest version, you can use the following link −
https://powerbi.microsoft.com/en-us/downloads/
Power BI – Architecture
Power BI Desktop − This is used to create reports and data
visualizations on the dataset.
Power BI Gateway − You can use Power BI on-premises gateway to
keep your data fresh by connecting to your on-premises data sources
without the need to move the data. It allows you to query large
datasets and benefit from the existing investments.
Power BI Mobile Apps − Using Power BI mobile apps, you can stay
connected to their data from anywhere. Power BI apps are available
for Windows, iOS, and Android platform.
Power BI Service − This is a cloud service and is used to publish
Power BI reports and data visualizations.
Following are the available data sources in Power BI –
Flat Files
SQL Database
OData Feed
Blank Query
Azure Cloud platform
Online Services
Blank Query
Other data sources such as Hadoop, Exchange, or Active
Directory
Power BI – Phases in Development
Power BI visual design is easy. Once you connect to a data source,
you can shape the data (remove columns, change data types, and so
on), do data modelling (create relations) and design visuals.
This guide steps you through the following phases:
Connecting to data sources
Shape the data
Model the data
Report on the data
To transform data:
Click on Home > Transform Data.
Use the Power Query Editor to apply transformations like
removing null values, changing column names, etc.
Click Close & Apply to save the changes.
Creating Visualizations
Visualizations are key to understanding your data. Power BI offers
various visualizations like bar charts, line charts, pie charts, maps,
and tables.
Steps to create a visualization:
Drag a field from the Fields pane to the report canvas.
Choose a visualization type from the Visualizations pane (e.g.,
pie chart, bar chart).
Customize the visualization by dragging additional fields (e.g.,
category, values) into the axis or legend.
3. Power BI Mobile:
A set of apps available on iOS, Android, and Windows devices for
viewing and interacting with reports on the go.
4.Power BI Report Server:
An on-premises server where organizations can host and distribute
Power BI reports behind their firewall.
5. Power BI Gateway:
Bridges the gap between the Power BI service and on-premises data
sources. It allows for scheduled data refreshes and real-time data
analysis.
Features of Power BI
Data Connectivity:
Power BI can connect to a wide variety of data sources, including:
Files: Excel, CSV, XML, JSON, etc.
Databases: SQL Server, Oracle, MySQL, PostgreSQL.
Online services: Google Analytics, SharePoint, Salesforce, Dynamics
365, and many more.
Data Transformation:
Power Query Editor allows users to clean, reshape, and transform
data before building reports.
Interactive Visualizations:
A wide range of visualization types, such as bar charts, pie charts,
line graphs, maps, etc., with drag-and-drop functionality.
Custom Visuals:
Power BI allows developers to create custom visualizations using the
Power BI Developer Tools.
Real-Time Analytics:
Power BI provides real-time dashboards for live data monitoring,
useful in IoT applications and performance tracking.
Power BI Architecture
Power BI consists of three main layers:
Data Integration: Ingests data from various sources.
Data Processing: Uses Power Query to transform and clean
data.
Data Presentation: Involves creating visualizations, reports,
and dashboards for business intelligence and decision-making.
Benefits of Power BI
User-Friendly Interface:
The drag-and-drop functionality makes it easy for users to build
reports without extensive technical knowledge.
Cost-Effective:
Power BI has a free version (Power BI Desktop) and affordable
licensing options (Pro and Premium).
Scalability:
It supports both individual users and enterprise-scale reporting,
making it suitable for organizations of all sizes.
Cloud-Based:
Power BI service is cloud-based, allowing access from anywhere
with an internet connection.
Applications of Power BI
1. Business Intelligence and Reporting
Power BI is primarily used for business intelligence (BI), helping
organizations turn raw data into actionable insights:
Interactive Reports: Create dynamic reports with drill-down
capabilities to explore data from different angles.
Dashboards: Provide a single view of key performance indicators
(KPIs) from various reports and data sources in real-time.
Automated Data Refresh: Set up scheduled refreshes to ensure
reports and dashboards display up-to-date information.
6. Healthcare Analytics
In the healthcare industry, Power BI helps organizations improve
patient care and operational efficiency:
Patient Data Analysis: Track patient demographics, treatment
outcomes, and satisfaction levels to enhance patient care.
Hospital Resource Utilization: Analyze bed occupancy rates,
equipment usage, and staffing levels to optimize resource allocation.
Clinical and Operational KPIs: Monitor clinical outcomes, patient
wait times, and operational costs to improve overall performance.
7. Project Management
Power BI assists project managers by providing real-time insights
into project performance:
Project Tracking: Monitor project progress, milestones, and budgets
in real time, identifying potential delays or cost overruns.
Resource Allocation: Analyze team workloads and allocate resources
more efficiently across multiple projects.
Risk Management: Identify project risks early and take corrective
actions based on data-driven insights.
9. Manufacturing Analytics
In manufacturing, Power BI is used to monitor and optimize
production processes:
Production Efficiency: Track machine utilization, downtime, and
output rates to enhance operational efficiency.
Quality Control: Analyze defect rates and production errors to
improve product quality.
Supply Chain Visibility: Provide end-to-end visibility into the supply
chain, helping manufacturers manage inventory and supplier
relationships better.
Conclusion
Power BI is a versatile tool that can be used by individuals and
organizations to make data-driven decisions. By mastering the skills
in this tutorial, you’ll be able to create powerful and insightful
reports, share them, and enhance your data analysis workflows.
Power BI is one of the most popular tools for organizations seeking
to leverage data to drive business decisions due to its rich features,
ease of use, and integration capabilities.
Power BI is a highly flexible tool with broad applications across
various industries. Its ability to handle large datasets, connect to
multiple data sources, and provide real-time insights makes it ideal
for any organization aiming to become data-driven and improve
decision-making processes.
1. Total Sales by Customer
This query will calculate the total sales amount for each customer by
evaluating data from both the Sales and Customers tables.
EVALUATE
SUMMARIZE (
Sales,
Customers[Name],
"Total Sales", SUM(Sales[Amount])
)
EVALUATE
SUMMARIZE (
Sales,
Products[ProductName],
"Total Discount", SUMX(Sales, Sales[Amount] * Sales[Discount])
)
3. Total Sales by Region
This query calculates the total sales per region using the Sales table.
EVALUATE
SUMMARIZE (
Sales,
Sales[Region],
"Total Sales", SUM(Sales[Amount])
)
This query joins Sales and Products to show total sales for each
product in each region.
EVALUATE
SUMMARIZE (
Sales,
Products[ProductName],
Sales[Region],
"Total Sales", SUM(Sales[Amount])
)
5. Merged Dataset (Sales, Customers, Products)
EVALUATE
SELECTCOLUMNS (
NATURALINNERJOIN (
Sales,
Customers
),
"OrderID", Sales[OrderID],
"Customer Name", Customers[Name],
"Product", Sales[ProductID],
"Amount", Sales[Amount],
"Discount", Sales[Discount],
"Region", Sales[Region],
"Date", Sales[Date]
)
This will merge Sales and Customers based on a natural inner join,
providing a combined view.
6. Merged Dataset with Products
EVALUATE
SELECTCOLUMNS (
NATURALINNERJOIN (
NATURALINNERJOIN (Sales, Customers),
Products
),
"OrderID", Sales[OrderID],
"Customer Name", Customers[Name],
"Product Name", Products[ProductName],
"Amount", Sales[Amount],
"Discount", Sales[Discount],
"Region", Sales[Region],
"Date", Sales[Date]
)
Explanation:
MORE EXAMPLES
EVALUATE
ROW("Total Sales", MIN(Sales[Amount]))
MIN –
MIN/SUM/AVERAGE/MAX/COUNT/DISTINCTCOUNT/COUNT
ROWS
EVALUATE
ROW(
"Total Discounted Sales",
SUMX(
Sales,
IF(Sales[Discount] > 0,
Sales[Amount] * (1 - Sales[Discount]),
Sales[Amount]
)
)
)
EVALUATE
ROW(
"Total Discounted Sales",
SUMX(
Sales,
SWITCH(
TRUE(),
Sales[Discount] > 0, Sales[Amount] * (1 - Sales[Discount]),
Sales[Amount] // Default case
)
)
)
EVALUATE
SUMMARIZE(
FILTER(
Sales,
Sales[Region] = "EAST"
),
"Total Sales", SUM(Sales[Amount])
)
EVALUATE
ROW(
"Total Sales",
CALCULATE(
SUM(Sales[Amount]),
ALL(Sales[Region])
)
)
EVALUATE
FILTER(
Sales,
Sales[Amount] > 1000
)
EVALUATE
SUMMARIZE(
Sales,
Sales[CustomerID], -- Include identifying columns
Sales[Amount], -- Include the amount column
"Rank",
RANKX(
ALL(Sales), -- Removes any filters on the Sales table
Sales[Amount], -- The expression to rank
, -- No tie-breaking value
DESC, -- Rank in descending order
Dense -- Ranking method (Dense or Skip)
)
)
EVALUATE
SUMMARIZE(
Sales,
Sales[Amount],
Sales[Discount], -- Include the Revenue column
"Profit to Revenue Ratio",
DIVIDE(
Sales[Amount],
Sales[Discount],
0 -- Value to return if denominator is 0
)
)
EVALUATE
SUMMARIZE(
Sales,
Sales[CustomerID], -- Include identifying columns if
needed
Sales[Amount], -- Include the original Amount column
"Adjusted Amount",
IF(
Sales[Amount] = 0,
BLANK(),
Sales[Amount]
)
)
EVALUATE
SUMMARIZE(
Sales,
Sales[Product], -- Include the Product column
Sales[Region], -- Include the Region column
"Product and Region",
CONCATENATE(Sales[Product], " - " & Sales[Region]) --
Concatenate Product and Region with a hyphen
)
EVALUATE
SUMMARIZE(
Sales,
Sales[Date], -- Include the OrderDate column
"Year",
YEAR(Sales[Date]) -- Extract the year from OrderDate
)
EVALUATE
SUMMARIZE(
Sales,
Sales[Date], -- Include the OrderDate column
"Formatted Date",
FORMAT(Sales[Date], "MMM DD, YYYY") -- Format the
OrderDate as MMM DD, YYYY
)
EVALUATE
ROW("Today's Date", TODAY())
EVALUATE
ROW("Current Time", NOW())
EVALUATE
VALUES(Sales[Product])