Professional Documents
Culture Documents
PowerBI Advanced Analytics With PowerBI
PowerBI Advanced Analytics With PowerBI
with Power BI
1
Data is everywhere. The world contains an astronomical amount
of data, an amount that grows larger and larger each day. This
vast collection of information has changed the way the world
interacts, uncovered breakthroughs in medicine, and revealed
new ways to understand trends in business and in our daily lives.
With the increasing availability of data comes new challenges and
opportunities as business leaders seek to gain important insights
and transform information into actionable and meaningful results.
2
Table of contents
Conclusion...............................................................................18
Advanced analytics in Power BI
Imagine if you could review the latest output of your Through machine learning, computers are able to act
organizations fraud model on demand, or analyze the without being explicitly programmed. Instead, they can
sentiment of social media users who tweet or post about teach themselves to grow and change when exposed
your products. Power BI brings the predictive power of to new data. Once the work of science fiction, machine
advanced analytics to allow users to create predictive learning is rapidly becoming part of our daily lives
models from their data, enabling organizations to make through practical speech recognition programs, more
data-based decisions across all aspects of their business. effective web searches, and even self-driving cars. Using
Azure Machine Learning Studio, users can quickly create
predictive models by dragging, dropping, and connecting
data modules. Power BI then allows users to visualize the
results of their machine learning algorithm.
From <https://powerbi.microsoft.com/en-us/blog/power-bi-azure-ml/>
4
To accomplish this in Power BI, first use R to extract data SQL and use R to read scored data into Power BI. Then,
from Azure SQL that has not yet been scored by the machine publish the Power BI file to the Power BI service. Finally,
learning model. Next, use R to call the Azure Machine use the Personal Gateway to schedule a refresh of the data,
Learning web service and send it the unscored data. Write which triggers a scheduled rerun of the R script and brings
the output of the Azure Machine Learning model back into in the new predictions.
From <https://powerbi.microsoft.com/en-us/blog/power-bi-azure-ml/>
5
R integration
Learn more:
R connector R showcase
R in Power Query R custom visuals
R visuals in Power BI
6
Quick Insights feature
Or, in the left navigation pane, select the ellipses (...) and
then choose View Insights.
7
4. The visualizations display in a special Quick Insights
canvas with up to 32 separate insight cards. Each card
has a chart or graph, plus a short description.
Learn more:
Quick insights with Power BI Types of Quick Insights
8
Segmentation and cohort analysis
Segmentation and cohort analysis is a simple, yet powerful, Clustering allows you to use machine learning algorithms to
way to explore data and identify deviations from the norm. quickly find groups of similar data points in a subset of your
Segmentation and cohort analysis is simply the act of data. After you have created a cluster field of data, custom
breaking down or combing data into meaningful groups, visuals in Power BI allow further analysis and evaluation of
and then comparing those groups to identify meaningful the clusters. For example, you could use the cluster column
relationships in your data. It is typically used to develop a and each of the associated measures in a radar chart to see
hypothesis about your data and identify areas for further the aggregate of each measure for each cluster. You could
analysis. Power BI has several tools to help this process, also use the cluster column and one of the measures in a box
including clustering, grouping, and binning. and whiskers plot to see the distribution of values for that
measure in each cluster. This can help you determine the
minimum, maximum, and median values for that measure
within each cluster.
Learn more:
Clustering
9
Data grouping and Binning
Sometimes, two categories of data points within a field are Typically applied in the explore phase of an analysis project,
better talked about together and should be grouped into a grouping manually aggregates data points into groups. These
single category. Grouping data points this way can help more groups become part of the data model and automatically
clearly view, analyze, and explore data and trends in visuals. apply to new or refreshed data.
10
Data streaming in Power BI
Power BI lets you easily display and analyze your real- With Power BI real-time streaming, you can stream
time data, empowering your organization to gain instant data and update dashboards in real time. Any visual
insights from time-sensitive information. Monitor social or dashboard that can be created in Power BI can also
media campaigns as they go viral. Display streaming be created to display and update real-time data and
video on your dashboards. Bring your dashboards to life visuals. The devices and sources of streaming data can
with IoT sensor readouts. The rich functionality of Power be factory sensors, social media, service usage metrics,
BI, combined with the velocity of real-time data, will and anything else from which time-sensitive data can
transform the way you do business. be collected or transmitted. Streaming data can be
consumed two ways in Power BI: as tiles with visuals from
Real-time data is all around us, and Power BI features are streaming data, or as data sets created from streaming
designed to help you get to that data with minimum setup data that persist in Power BI.
cost. Integration with streaming data providers such as
Azure Event Hub, PubNub, and Temboo allows Power BI
to get to your real-time datano matter where it lives.
In addition, Power BI allows you to dive deep into your Learn more:
real-time data through integration with Microsoft Azure Real-time streaming in Power BI
Stream Analytics and Azure Machine Learning. Predictive
intelligence can help you take proactive action to stay
on the right course, and stream analytics can shape and
aggregate your data. Data streams are stored in the cloud
for historical analysis and visualization.
11
Visualizations in Power BI
Community-sourced visualizations
Learn more:
Download a custom visual from the gallery
Add a custom visualization to a Power BI report
R visualizations
The R Showcase in Power BI allows you to create new or To use the R Script Showcase in your reports, visit the
use existing advanced analytics in R visualizations through community page of the Power BI website. Click the R Script
the community R Script Showcase to leverage R scripts in Showcase link, and then select and download the report
Power BI. you would like to use.
12
Custom visualizations
Custom visualization in Power BI allows you to create full Once youve tested your custom visual, you can export it
custom visuals to add to reports or submit to the Power to your Power BI dashboard, or submit it to the Power BI
BI community for others to use. You can create a custom visuals gallery.
visual using Power BI developer tools, which let you design
and test a custom visual by writing custom visual TypeScript
code and creating CSS.
Learn more:
Power BI Custom Visuals Gallery
13
Data connection and shaping
Azure services
With Azure services and Power BI, you can turn your data and integration to bring your business intelligence efforts
processing efforts into analytics and reports that provide to life. A multitude of Azure connections are available, and
real-time insights into your business. Whether your data the business intelligence solutions you can create with Azure
processing is cloud-based or on-premises, straightforward or services are as unique as your business. You can connect just
complex, single-sourced or massively scaled, warehoused or one Azure data source, or a handful, and then shape and
real-time, Azure and Power BI have the built-in connectivity refine your data to build customized reports.
Power BI
Power BI
Learn more:
Azure and PowerBI Stream Analytics & Power BI
14
DirectQuery
DirectQuery allows you to build visualization over very large Security should also be considered when using DirectQuery
data sets, where it would otherwise be unfeasible to import in the Power BI service. All users who consume a published
all of the data. Traditionally, underlying data changes can report connect to the back-end data source using the
require a refresh of data. For some reports, the need to credentials entered after publication to the Power BI service.
display current data can require large data transfers, making This is the same situation as data that is imported: all users
re-importing data unfeasible. Users can avoid this issue by see the same data, irrespective of any security rules defined
using DirectQuery to query live against the data source. in the back-end source. Finally, not all Power BI Desktop
features are supported in DirectQuery mode, or the feature
When using DirectQuery, it is important to consider the may have some limitations. In addition, some capabilities in
performance and load of your data set, the security, and the Power BI service (such as Quick Insights) are not available
available supported features. All DirectQuery requests for data sets using DirectQuery.
are sent to the source database, so the time required to
refresh a visual depends on how long the back-end source
takes to respond with the results from the query. Power BI
creates queries that are as efficient as possible, but there Learn more:
are conditions under which a generated query may not be Use DirectQuery in Power BI Desktop
efficient enough and the performance may be impacted or
the refresh would fail. This situation can be mostly avoided
by using columns with a cardinality below 1 million.
Learn more:
Visualizing and operationalizing R data in Power BI
15
Data shaping in Power Query with R
The integration of R into Query Editor lets you perform just to name a few. R is a powerful language, and can be
a data cleansing using R, and then perform advanced used in Query Editor to prepare your data model and create
data shaping and analytics in data sets. Examples include reports. To use Query Editor, follow the steps below:
completion of missing data, predictions, and clustering,
When put into the Run R Script dialog, the code will
look like this:
16
Data Analysis Expressions
Data Analysis Expressions (DAX) is a collection of functions, But, what if you need to analyze growth percentages across
operators, and constants that can be used in a formula or product categories and for different date ranges? Or, you
expression to calculate and return one or more values. DAX need calculate year-over-year growth compared to market
helps you create new information from data that is already in trends? DAX formulas provide this capability and many
your model. Learning how to create effective DAX formulas other important capabilities as well. Learning how to create
will help you get the most out of your data. Its quite easy effective DAX formulas will help you get the most out of your
to create a new Power BI Desktop file and import data into data. When you get the information you need, you can begin
it. You can even create reports that show valuable insights to solve real business problems that affect your bottom line.
without using any DAX formulas at all. This is the power in Power BI, and DAX will help you get there.
This formula will calculate the total sales for the previous
quarter, depending on the filters applied in a report. For
example, if we put SalesAmount and our new Previous
Quarter Sales measure in a chart, and then added Year and
QuarterOfYear as slicers, wed get something like this:
Learn more:
Introduction to DAX
17
Conclusion
Power BI business analytics tools enable users at all levels of uncover new insights. Power BI allows you to dig deep into
an organization to analyze data and share insights. Through your data, while being productive and creative with what
dashboards, Power BI provides a 360-degree view of your you build. With more than 20 built-in visuals and a gallery
most important metricsin one place, updated in real time, of vibrant custom visualizations, Power BI makes it easy to
and available on all of your devices. With one click, explore use advanced analytics to effectively communicate your
data using intuitive tools to quickly find answers and message and address business challenges.
Additional resources:
18