Power BI Data Analysis and Visualization
Power BI Data Analysis and Visualization
www.degruyter.com
With a deep sense of gratitude, I dedicate this book to my parents-in-law—Mrs.
Bhanu Bollapragada and Dr. B.K.B. Rao. Thank you for all the love and support.
—Surendra Machiraju
This book is dedicated to my parents and in-laws for their constant support and
inspiration.
—Suraj Gaurav
DOI 10.1515/9781547400720-201
About De|G PRESS
De|G PRESS, the startup born out of one of the world’s most venerable publishers,
De Gruyter, promises to bring you an unbiased, valuable, and meticulously edited
work on important topics in the fields of business, information technology, com-
puting, engineering, and mathematics. By selecting the finest authors to present,
without bias, information necessary for their chosen topic for professionals, in
the depth you would hope for, we wish to satisfy your needs and earn our five-star
ranking.
In keeping with these principles, the books you read from De|G PRESS will
be practical, efficient and, if we have done our job right, yield many returns on
their price.
We invite businesses to order our books in bulk in print or electronic form as a
best solution to meeting the learning needs of your organization, or parts of your
organization, in a most cost-effective manner.
There is no better way to learn about a subject in depth than from a book that
is efficient, clear, well organized, and information rich. A great book can provide
life-changing knowledge. We hope that with De|G PRESS books you will find that
to be the case.
DOI 10.1515/9781547400720-202
Acknowledgments
We wish to acknowledge the contribution of Rahul Jain and Jennifer Curiak.
Rahul is an amazing technical editor and Jennifer does an amazing job of techni-
cal proofreading and cleaning the book up.
Thank you!
Suren Machiraju
Suraj Gaurav
DOI 10.1515/9781547400720-203
About the Authors
DOI 10.1515/9781547400720-204
xii About the Authors
Suraj Gaurav started his career in 2000, at the height of the dot-com era. He
worked in a start-up, Asera, that was developing a revolutionary platform for
building business-to-business applications. In 2002, he moved to Seattle to work
for Microsoft. He spent almost ten years there and worked on various products
including BizTalk Server, the Commerce platform, and Office 365. He has in-depth
experience building enterprise-scale systems like BizTalk, to internet scale ser-
vices like Office 365. He also built the consumption-based billing platform serving
as the commerce engine for Azure.
Gaurav holds a bachelor’s degree in Computer Science from the Indian Insti-
tute of Technology, Kanpur, India. He is listed as an inventor in over twenty-five
patents. When he is not working, he can be found spending time with family and
enjoying the beautiful outdoor life of the Pacific Northwest.
About the Technical Reviewer
Jennifer Curiak specializes in Dynamics 365 implementations, agile coaching,
project management, business analysis, quality assurance, and technical writing.
She works to help teams in a variety of industries become more productive, com-
municate more effectively, and generally get stuff done.
A writer at heart, Curiak started her career as a technical writer for a soft-
ware company in 2000 and has evolved into designing solutions, managing QA
processes and resources, coaching large and small teams in agile development
practices, acting as scrum master, and working on Dynamics 365 customizations
and implementations. She was the technical reviewer on the book Administering,
Configuring, and Maintaining Microsoft Dynamics 365 in the Cloud in 2018, contin-
ues to write in-house technical documentation and end-user documentation, and
contributes to other professional publications.
Jennifer and her husband Mike live in Western Colorado and spend most of
their free time exploring empty and desolate areas of the West by mountain bike
and packraft. She can be contacted directly at [email protected].
Jennifer Curiak
C) 720-933-5587
DOI 10.1515/9781547400720-205
Foreword
It is with great pleasure that I write this foreword for Power BI Data Analysis and
Visualization authored by my friends—Suraj and Suren.
Data Analysis and Visualization is a vast horizon, especially in a world where
over 2,500,000,000 GB of digital data is created every day. With the advent of
IoT and automation that number is expected to grow exponentially. Leveraging
those immense amounts of data through Data Analysis and Visualization is a key
component to profitability.
In this book, Suraj and Suren focus on Microsoft’s Power BI and clearly
demonstrate to the readers via precise instructions how to build data visuals on a
variety of database and CRM applications. As a bonus, the reader also gets a tuto-
rial on embedding the visuals in an Azure Application. Integration of the Cortana
suite is indeed a multiplier.
My very best wishes to the authors and the community of readers.
John R. Girgis
PMP-Certified Project & Engineering Manager
https://www.linkedin.com/in/john-r-girgis-pmp-026a1720/
DOI 10.1515/9781547400720-206
Contents
Chapter 1: Introducing Data Visualization 1
Overview of Technology 1
Importance of Data Visualization 1
Data Visualization Tools 2
Understanding Power BI 2
Comparing Microsoft Power BI and Tableau 3
Key Features of Power BI 4
Sign Up for Free 5
Receive Data from Multiple Data Sources 5
Obtain Key Metrics of Your Business 5
Quick Insights 5
Data-Driven Decision Making from Anywhere 6
Advanced Features of Power BI 6
Embed Power BI Reports and Dashboards into a Web App 6
Real-Time Streaming 6
Support for Natural Language Query 6
Share Content Pack 7
Integration with Cortana 7
Variants of Power BI 7
Power BI Desktop 7
Power BI Service 30
Publishing a Report 38
Summary 41
DOI 10.1515/9781547400720-207
xviii Contents
Data Modeling 74
Creating Relationships Among Tables 74
Using Data Analysis Expressions 82
Using Calculated Columns 84
Using Calculated Tables 86
Creating a Report 88
Creating a Report Using the DirectQuery Option 89
Creating a Report Using the Import Option 95
Saving the Report 96
Publishing the Report 98
Gateway Setup 100
Understanding Gateways 100
Types of Gateways 100
Downloading and Installing the On-Premises Data Gateway 101
Configuring Gateway 107
Adding a Data Source 110
Natural Language Querying 116
Data Refresh in Power BI 123
Configuring Scheduled Refresh 124
Creating Content Packs 129
Power BI Integration with Cortana Suite 133
Creating a Cortana Answer Page and Publishing It 133
Enabling Cortana to Access the Dataset 136
Adding Power BI Credentials to Windows 10 140
Accessing the Report through Cortana 144
Summary 149
Chapter 6: Conclusion 251
Introducing Data Visualization 251
Power BI Azure Application 252
Power BI on Microsoft Stack 252
Power BI on Open Source Stack 253
Power BI on ERP Applications 254
Index 255
Introduction
Broadly speaking, data visualization is a term used to describe a way of present-
ing raw or tabular data in a more easily understood visual context. With data
visualization, users trying to understand raw data can see relationships, trends,
and patterns in a more clear and easy to understand manner. As such, data visu-
alization can be used as an effective and efficient form of communication of the
state of a business for those who need and want to see deeper into the informa-
tion generated and captured by their business processes.
In its 2017 Report, Gartner estimates that by 2020, organizations that offer
users access to a curated catalog of internal and external data will realize twice the
business value from analytics investments than those that do not.
The most significant challenge for data visualization is accessing data. The
most critical business data is locked up in silos within ERP and Custom Applica-
tions. Who are the vendors that provide state of art Data Visualization Tools? How
does a Data Visualization Developer extract the data? This book provides you the
answers to these questions.
1. Business Owners and IT Pros: By 2021, the number of users of modern busi-
ness intelligence (BI) and analytics platforms that are differentiated by smart
data discovery capabilities will grow at twice the rate of those that are not
and will deliver twice the business value.
2. Data Scientists: Through 2020, the number of citizen data scientists will
grow five times faster than the number of data scientists.
3. Data Analysts: By 2020, natural-language generation and artificial intelli-
gence will be a standard feature of 90 percent of modern BI platforms.
4. Enterprise Developers: By 2020, 50 percent of analytic queries will be
generated using search, natural-language processing or voice, or will be
auto-generated.
5. Enterprise Architects: By 2020, organizations that offer users access to a
curated catalog of internal and external data will realize twice the business
value from analytics investments than those that do not.
DOI 10.1515/9781547400720-208
xxii Introduction
We appreciate your investment in this book. We would love to hear from you so
that we may improve this and future offerings.
Chapter 1
Introducing Data Visualization
Overview of Technology
Data visualization is the concept of presenting data through visuals, such as info-
graphics, charts, Sparkline, and geographic maps, etc. The presentation of data
through visuals makes it more appealing to users and allows decision makers to
view data analytics in a visual or graphic format. It helps users to easily identify
difficult concepts or new patterns related to data. Data visualization tools help
to easily recognize patterns, trends, and correlations that are otherwise difficult
to see in textual data. In addition to interactive visuals, you can drill down into
charts and graphs to access the details of the information displayed. You can also
process data as per your requirements.
It is easier for the human brain to process the graphical visual representation
of data versus textual information. For example, charts or graphs can represent
large complex data in a more clear and effective manner than in a spreadsheet
or textual report. Data visualization provides an efficient way to communicate
concepts in general.
DOI 10.1515/9781547400720-001
2 Chapter 1: Introducing Data Visualization
There are several data visualization tools available in the market. Some of them
are listed as follows:
– Microsoft Power BI (This book focuses on this tool.)
– Tableau
– Qlik
Understanding Power BI
Tableau and Microsoft Power BI are listed as the top competitors in the list of the
BI and data visualization tools. Both tools are easy to use and support a large
collection of visuals to present data in a visualized format.
Table 1.1 lists the comparison between Microsoft Power BI and Tableau on several
parameters:
Overview Provides a full overview of the most Leverages data discovery for any
critical data of an organization. type of business user.
User interface Provides an easy-to-use interface Provides an easy-to-use interface.
like Excel.
Infrastructure support Provides better support than Provides limited infrastructure
Tableau. support.
Dashboards Provides scalable dashboards that Allows users to embed dashboards
allow users to select the desired into the available business applica-
visualization as a blueprint and use tions, such as SharePoint, for quick
the navigation to drag and drop data analysis.
data into the visualization.
Data sources Supports several data sources Supports several data connectors
such as SAP HANA, JSON, MySQL, including OLAP, NoSQL, Hadoop,
etc. It examines the relationship and cloud options. It examines the
between data sources automat- relationship between different data
ically when data is added from sources automatically when data
multiple sources. It also allows is added from multiple sources. It
users to connect to Microsoft Azure also allows users to apply changes
databases, third-party databases, to data links as per the require-
files and online services such as ments of the company.
Salesforce and Google Analytics.
Visualization support Helps in uploading the datasets Supports different types of visual-
easily. It provides numerous izations, including heat maps and
visualizations that can be selected line charts, etc. It helps in easily
by users as blueprints. Data for creating complex visualizations
the selected visualization can be through an interface without requir-
inserted from a sidebar. It also ing coding expertise. It also allows
allows users to use natural lan- users to use multiple data points in
guage queries for creating complex their data analysis.
visualizations. To perform data anal-
ysis, it supports 3,500 data points.
4 Chapter 1: Introducing Data Visualization
Note
According to Gartner’s report, “Microsoft Power BI is a leader in the Magic Quadrant for Business
Intelligence and Analytics Platforms.”
ness in the form of interactive reports. Power BI provides several features. Some
key features are as listed below:
–– Free sign up
–– Ability to receive data from multiple data sources
–– Ability to obtain key metrics of your business
–– Quick insights
–– Data-driven decision making from anywhere
One of the key features of any software is its cost. With Power BI, you can sign
up for free. There is no need to save your credit card details. You can also easily
monitor your data with the help of Power BI. You do not need any specialized
setup or training to start your work. You can also utilize a trial Power BI Pro
account to use the advanced features of Power BI. However, you will get only 10
GB space for the trial.
Quick Insights
In addition to the key features of Power BI, it also supports several advanced fea-
tures. Some of the advanced features of Power BI are as follows:
–– Ability to embed Power BI reports and dashboards into a Web App
–– Real-time streaming
–– Support for natural language query
–– Ability to share content pack
–– Ability to integrate with Cortana
One of the features of Power BI is the ability to embed your Power BI reports and
dashboards into a Web app. This can be accomplished with the help of APIs and
sample code available on a source repository like Git.
Real-Time Streaming
Real-time streaming is one of the advanced features of Power BI that helps users
to stream data in Power BI dashboards in real time. In other words, the visuals
pinned to Power BI dashboards are updated with the real-time data.
One of the exciting features of Power BI is its support for natural language. You
can query Power BI in your natural language (English) and get results in the form
of visuals including charts and graphs. This feature is commonly termed as Q&A
as you query from Power BI and Power BI provides answers to your queries.
Variants of Power BI 7
Previously you were only able to share reports with other users in your orga-
nization. However, now you can share a complete package of your dashboard,
report, and dataset with other users in your organization. This complete package
is termed as a content pack. You can create the content pack and publish it to the
team members. As you publish it, it becomes available in a centralized reposi-
tory called AppSource. This repository helps the team members to easily locate
reports and datasets published for them. All you need to create and access an
organizational content pack is a Power BI Pro account.
Now, you can integrate your Power BI reports with Cortana, an exciting feature
of Windows 10 that quickly locates and lists the results to your queries made in
natural language. The integration with Cortana provides relevant information
directly from Power BI dashboards and reports. To use this feature, you need
to create a Cortana answer page in Power BI, an Azure Active Directory (Azure
AD)/Work or School account, and configure one or more datasets to be used
with Cortana.
Variants of Power BI
Power BI Desktop
Power BI Desktop is a flexible and dominant tool that allows data analysts to:
–– Connect to multiple data sources
–– Structure data in an intuitive manner
–– Create powerful data models
–– Create coherent visuals
Power BI Desktop makes the process of designing and creating business intelli-
gence reports simple and centralized.
The selected file is downloaded. You need to double-click the file to start the
installation process. After double-clicking this file, the Microsoft Power BI
Desktop (x64) Setup wizard appears with the Welcome to the Microsoft Power
BI Desktop (x64) Setup Wizard page.
5. Click the Next button, as shown in Figure 1.4.
10 Chapter 1: Introducing Data Visualization
The Destination Folder page of the Microsoft Power BI Desktop (x64) Setup
wizard appears.
9. Enter the full path of the destination folder in the Install Microsoft Power BI
Desktop (x64) to text box.
10. Click the Next button, as shown in Figure 1.6.
Note
You can click the Change button to change the path of the destination folder.
The Ready to install Microsoft Power BI Desktop (x64) page of the Microsoft
Power BI Desktop (x64) Setup wizard appears.
11. Click the Install button, as shown in Figure 1.7.
12 Chapter 1: Introducing Data Visualization
The Installing Microsoft Power BI Desktop (x64) page of the Microsoft Power
BI Desktop (x64) Setup wizard appears. This page displays the installation prog-
ress status, as shown in Figure 1.8.
The Completed the Microsoft Power BI Desktop (x64) Setup Wizard page of
the Microsoft Power BI Desktop (x64) Setup wizard appears.
12. Select the Launch Microsoft Power BI Desktop checkbox to launch Power
BI Desktop.
13. Click the Finish button to finish the wizard, as shown in Figure 1.9.
Connect to Data
Before connecting to data, you should sign in to Power BI as it helps in collating
Power BI Desktop and Power BI Service and allows them to work seamlessly. If
you do not have the Power BI account, you can create it for free.
After clicking the Open button, Power BI connects to the selected data source.
The Navigator dialog box appears.
14. Select the desired sheet under the Display Options section to load it to Power
BI. After selecting a sheet, its content appears in the right pane.
15. Click the Load button to load the selected sheet to Power BI, as shown in
Figure 1.14.
Variants of Power BI 17
The selected sheet is loaded to Power BI and the FIELDS pane appears displaying
the fields of the sheet, as shown in Figure 1.15.
18 Chapter 1: Introducing Data Visualization
By default, you get the Report view of Power BI Desktop. You can access the Data
view by clicking the Data icon in the left pane. It displays all the data in tabular
form, as shown in Figure 1.16.
Variants of Power BI 19
To shape or transform data, Power BI Desktop provides the Query Editor window.
This window allows you to shape data and create relationships. You can open
the Query Editor window by clicking the Edit Queries button under the External
Data section of the Home tab of Power BI Desktop. Figure 1.17 shows the Query
Editor window.
20 Chapter 1: Introducing Data Visualization
Note
The Query Editor window displays a blank pane when there is no data source.
Let us go through the user interface of the Query Editor window before providing
a detailed description of shaping data. Usually, the Query Editor window pro-
vides tools tabs within the Ribbon. The Ribbon provides a large set of commands
or options segregated into different tabs as outlined below.
1. Home tab: This tab contains the query related commands, such as adding
a new data source, entering data, managing columns, etc. Figure 1.18 shows
the Home tab.
3. Add Column tab: This tab contains commands related to adding a new
column, adding a custom column, and formatting a column, etc., as shown
in Figure 1.20.
4. View tab: This tab contains commands to open or display panes or windows,
as shown in Figure 1.21.
In addition to the four main tabs on the Ribbon, the window contains the follow-
ing panes or sections:
1. Queries pane: This is the left pane of the Query Editor window, which dis-
plays the number of active queries with their names, as shown in Figure 1.22.
22 Chapter 1: Introducing Data Visualization
2. Data pane: This is the center pane where the actual data of the query dis-
plays, as shown in Figure 1.23.
3. QUERY SETTINGS pane: This pane lists the steps performed on a query
under the APPLIED STEPS section, as shown in Figure 1.24.
Variants of Power BI 23
15. Click the Close & Apply button under the Close section of the Home tab to
apply the changes, as shown in Figure 1.29.
The changes are applied and a new table is generated. You can do additional
tasks with the Query Editor window as per your requirements.
Creating Visuals
A report is all about visuals. Power BI supports a large collection of visuals, which
can be used for representing the required information in more appealing manner.
Perform the following steps to create visuals based on the query created in the
previous section:
1. Click the Slicer icon in the VISUALIZATIONS pane to add a slicer visual. The
selected visual appears in the work area.
2. Drag the desired field from the FIELDS pane to the Field section of the VISU-
ALIZATIONS pane. In our case, we have selected Country. A list of available
countries appears in the slicer, as shown in Figure 1.30.
Variants of Power BI 27
3. Click the Format icon to view the formatting settings. The formatting settings
related to the selected visual appear under each section.
4. Click the desired section to view the related settings and modify them as per
your requirements.
5. Add another slicer from the VISUALIZATIONS pane to the work area.
6. Drag the Product field from the FIELDS pane to the Field section of the
VISUALIZATIONS pane. A new slicer is added to the work area.
7. Apply the formatting settings as per your requirements.
8. Add a pie chart from the VISUALIZATIONS pane to the work area.
9. Drag the Country field in the FIELDS pane to the Legend section of the
VISUALIZATIONS pane.
10. Drag the Product field in the FIELDS pane to the Details section of the VISU-
ALIZATIONS pane.
11. Drag the Total Products Sold field in the FIELDS pane to the Values section
of the VISUALIZATIONS pane, as shown in Figure 1.31.
28 Chapter 1: Introducing Data Visualization
Note
The extension of Power BI report is .pbix.
Power BI Service
Note
You should have the sign-in credentials already to use Power BI Service. However, you can sign
up for free if you do not have the credentials.
Variants of Power BI 31
The navigation pane contains several options. A brief description of these options
is as follows:
– Expand/collapse icon ( ): Is used to expand/collapse the navigation
menu.
– Favorites: Is used to open or manage the favorite content.
– Recent: Is used to view and open the content visited recently.
– Apps: Is used to view, open, or delete an app.
– Shared with me: Is used to view and search the content shared by a col-
league/friend with you.
– Workspaces: Displays available workspaces.
– Get Data button: Is used to add datasets, reports, and dashboards to Power BI.
Figure 1.36: Canvas
3. Q&A box: Looks for the solution in the dataset linked to the dashboard and
provides an answer to your query in the form of visualization. It can also be
used to add content to the dashboard. Figure 1.37 shows the Q&A box.
5. Dashboard title: Displays the name of the workspace preceded by the dash-
board/report name. Each section in the dashboard title acts as an active link.
Figure 1.39 shows the dashboard title.
34 Chapter 1: Introducing Data Visualization
6. Office 365 app launcher: Helps in easily locating and opening all Office 365
apps. When you click the Office 365 app launcher icon ( ), a list of Office 365
apps appears, as shown in Figure 1.40.
These apps help users quickly launch their emails and documents, etc.
7. Power BI Home button: Opens the featured dashboard if you have set it.
Otherwise, it opens the viewed dashboard. Figure 1.41 shows the Power BI
Home button.
Variants of Power BI 35
8. Labeled icon buttons: Allow users to interact with the content. You can
select the Ellipsis icon (…) to see more options for different tasks including
duplicating, printing, and refreshing the dashboard, etc. Figure 1.42 shows
the labeled icon buttons.
These building blocks are grouped into workspaces, wherein workspaces act
as containers for these building blocks. In Power BI, the following two types of
workspaces are available:
–– My workspace: Allows a Power BI user to work with his/her content per-
sonally. No one can access your “My workspace”. To share the content with
others, you need to create an App workspace (outlined below) and bundle
the required content in the app, and share it with others in your organization.
–– App workspaces: Allow users to share content with others as well as create,
publish, and control apps. App workspaces are considered the major content
containers, which help in building a Power BI app.
Dashboards
A dashboard is a collection of tiles, from no tiles to any number of tiles. A tile is
the representation of data that is pinned to the dashboard. A tile can be created
through several components including reports, datasets, dashboards, Excel,
36 Chapter 1: Introducing Data Visualization
SSRS, etc. You can use the Add tile button to create individual tiles. You can add
text boxes, videos, streaming data, etc., to a tile directly from the dashboard.
In addition to pinning a tile from a report, you can pin the entire report pages
as a single tile to the dashboard.
You can select the Dashboards tab to view the available dashboards asso-
ciated with the workspace you selected. You can simply select a specific dash-
board to open it and view its content. Additionally, each dashboard provides a
personalized view of the associated datasets. You should note that you can not
make editing changes to the dashboards and reports shared by others. However,
you can edit the datasets as well as reports if you own the dashboard. Figure 1.43
shows a list of dashboards available under the Dashboards tab.
Figure 1.43: Dashboards
You may need dashboards for several reasons. Some of them are listed as follows:
–– View decision-making information in one glance.
–– Control important information about the organization.
–– Ensure that the same page and information is accessible and uniform to all
colleagues.
–– Administer the business condition or product condition.
–– Build a customized view of a dashboard.
Reports
A Power BI report is a collection of visualizations/visuals such as charts and
graphs. These visuals are taken from a single dataset. There are several ways to
create reports. Some of them are as follows:
Variants of Power BI 37
All reports associated with a workspace appear under the Reports tab, as shown
in Figure 1.44.
Datasets
A dataset is defined as a set of data that a user imports or connects to in Power BI.
Power BI can connect to all types of datasets and collates them together.
38 Chapter 1: Introducing Data Visualization
All datasets associated with a workspace appear under the Datasets tab, as shown
in Figure 1.45.
Workbooks
A workbook is a special type of dataset that can be imported or connected to
Power BI. When you select Excel as an option for “Get data” and click the Connect
button, the associated workbook appears in Power BI. From here, you can pin
elements directly to the dashboard.
Publishing a Report
2. Click the Publish button under the Share section of the Home tab, as shown
in Figure 1.46.
The Publishing to Power BI dialog box displays the status of publishing the
report to Power BI. Once the publishing is successful, you can open the report in
Power BI by clicking the Open ‘DemoReport.pbix’ in Power BI link, as shown
in Figure 1.48.
40 Chapter 1: Introducing Data Visualization
Summary
This chapter provided a brief overview of one of the prominent data visualization
tools, that is, Power BI. Power BI is a data visualization and business intelligence
tool that allows business owners to easily obtain their business statistics. The
advanced features associated with Power BI make it an ideal choice for busi-
ness analytics executives. This chapter also provided detailed information about
Power BI Desktop and Power BI Service. You also learned to create and publish a
report to Power BI Service.
C
hapter 2
Power BI Azure Application
Power BI can be integrated with Azure services to obtain real-time insights into
your business. With the help of Azure APIs, you can see real-time business data in
an intuitive manner irrespective of the nature of processing of the data.
You can create reports in Power BI and embed them into a Web app. You can
also view real-time streaming of data, which means a live update to data can be
seen in visuals pinned to Power BI dashboards.
Power BI reports and dashboards can be embedded into a Web app with the help
of APIs and sample code available from a source repository like Git.
Perform the following steps to embed Power BI reports into a Web app:
1. Build the source code for Web app in Visual Studio.
2. Register your app for Power BI by performing the following steps:
a. Navigate to the following link:
https://dev.powerbi.com/apps
DOI 10.1515/9781547400720-002
44 Chapter 2: Power BI Azure Application
h. Click the Register App button under the Register your app section to
register the app, as shown in Figure 2.3.
Embedding Power BI Reports into a Web App 45
As you click the Register App button, client ID and client secret values are gener-
ated in the Client ID and Client Secret fields, respectively.
3. Open the Cloud.config file and enter values from the Client ID and Client
Secret fields in the ClientID and the ClientSecret settings, as shown in
Figure 2.4.
46 Chapter 2: Power BI Azure Application
The specified report is embedded into the Web app, as shown in Figure 2.6.
Real-Time Streaming
2. Streaming dataset: Similar to the Push dataset, this dataset also pushes
data into Power BI. However, data is stored temporarily in the cache memory,
which is especially used for displaying visuals such as line charts. Some con-
siderations related to streaming dataset are as follows:
–– The data that flows from the stream cannot be used for creating report
visuals because there is no dedicated database.
–– The data can be visualized by adding a tile and using the “custom stream-
ing data” data source.
–– It shows real-time data quickly in the custom streaming tiles.
3. PubNub streaming dataset: This dataset provides the Power BI web client
that uses the PubNub SDK. This SDK reads the available PubNub data stream
and restricts Power BI Service to store any data. Some considerations related
to PubNub streaming dataset are as follows:
–– The data that flows from the stream cannot be used for creating report
visuals because there is no dedicated database.
–– Several report functionalities are unavailable including report filtering
and use of custom visuals, etc.
–– A PubNub data stream can be configured as the source and a tile can be
added to the dashboard for visualizing the PubNub streaming dataset.
–– The tiles on the dashboard display real-time data quickly.
The next page appears requiring details such as the subscription key and channel
name.
7. Enter the desired dataset name in the Dataset name text box.
8. Enter the relevant subscription key in the Sub-key text box.
9. Enter the relevant channel name in the Channel name text box.
50 Chapter 2: Power BI Azure Application
The next page appears requiring the values from the stream.
11. Specify values and select the relevant data type for the values under the
Values from stream section.
12. Click the Create button, as shown in Figure 2.10.
Real-Time Streaming 51
The specified dataset is created. You can locate this dataset under the Datasets
tab, as shown in Figure 2.11.
Figure 2.16: The Add a custom streaming data tile dialog box
23. Select the desired axis value from the Axis drop-down list.
24. Select the desired value from the Values drop-down list.
25. Click the Next button, as shown in Figure 2.18.
56 Chapter 2: Power BI Azure Application
The tile is added to the dashboard and real-time data appears in the tile, as shown
in Figure 2.20.
58 Chapter 2: Power BI Azure Application
Quick Insights
Power BI provides the Quick Insights feature, which applies complex algorithms
to the dataset and locates different subsets of that dataset efficiently.
You can create appealing visualizations through Quick Insights by running it
on either a dataset or a dashboard tile.
The Searching for insights message box appears that displays the progress of
searching insights, as shown in Figure 2.23.
The Insights are ready dialog box displays “You have insights for DemoRe-
port.” In our example, DemoReport is the selected dataset.
6. Click the View insights button, as shown in Figure 2.24.
Real-Time Streaming 61
The Quick Insights for DemoReport window displays all possible insights for
the selected dataset (DemoReport in our case), as shown in Figure 2.25.
7. Click the Pin visual icon ( ) to pin the selected visual to the dashboard. The
Pin to dashboard dialog box appears.
8. Select the desired radio button to specify whether you want to pin the selected
visual to an existing dashboard or a new dashboard. In our case, we have
selected the New dashboard radio button.
9. Enter the desired name for the new dashboard.
62 Chapter 2: Power BI Azure Application
10. Click the Pin button to pin the selected visual to the new dashboard, as
shown in Figure 2.26.
The Pinned to dashboard message box appears stating that the visualization is
pinned to the specified dashboard successfully.
11. Click the Go to dashboard button to view the visualization pinned to the
dashboard, as shown in Figure 2.27.
13. Select the Open in focus mode option, as shown in Figure 2.28.
Summary
There are two options to bring SQL Server data into Power BI Desktop, as follows:
–– Import
–– DirectQuery
In Power BI Desktop, the Import option imports the selected tables and columns.
The imported data can be used to create visuals.
DOI 10.1515/9781547400720-003
66 Chapter 3: Power BI on Microsoft Stack
Perform the following steps to use the Import option for importing database
tables of SQL Server into Power BI Desktop:
1. Launch Power BI Desktop.
2. Click the Get Data button under the External data section of the Home tab.
A list of data sources appears.
3. Select the SQL Server option from the list, as shown in Figure 3.1.
The Load pane appears displaying the progress of each table being imported into
Power BI Desktop, as shown in Figure 3.4.
Once the loading process is done, the imported tables are displayed in the FIELDS
pane, as shown in Figure 3.5.
Getting Data into Power BI from SQL Server 69
The DirectQuery option does not import or copy data to Power BI Desktop.
However, the FIELDS pane displays the selected tables and columns. When you
use the DirectQuery option, Power BI Desktop queries the connected data source
each time you create a visual or report. This means that you get an updated visual
each time. You can refresh the visuals with updated data by clicking the Refresh
button under the Home tab.
A window appears displaying the name of the database followed by the server
name. It also displays the table view of the query made to the database.
12. Click the Load button to load the query, as shown in Figure 3.7.
Getting Data into Power BI from SQL Server 71
The Create connections message box appears displaying the progress of creat-
ing connections between Power BI and queried SQL Server statement, as shown
in Figure 3.8.
Once the connection is established successfully, a query with the specified fields
is added in the FIELDS pane, as shown in Figure 3.9.
72 Chapter 3: Power BI on Microsoft Stack
–– It limits the number of returned data rows to 1 million, which in turn does not
affect calculations used for creating the dataset.
Features
The DirectQuery option does not support all features in Power BI Desktop. Some
features are supported with some limitations. Some features of Power BI Service
are also not available when we use the DirectQuery option. For example, the
datasets created using the DirectQuery option do not support the Quick Insights
feature. Therefore, you should consider the limitations of such features to deter-
mine the use of the DirectQuery option.
Security
Once a report is published to Power BI Service, all users will be required to use
credentials to connect to the back-end data source and consume the report. This
condition is similar to the one used when data is imported through the Import
option. The same data is available for all users irrespective of the security rules
74 Chapter 3: Power BI on Microsoft Stack
described in the back-end data source. The DirectQuery option is used for imple-
menting per-user security for customers.
Data Modeling
Data modeling defines the way the data is modeled into Power BI. You do not need
to put your data into one table. Instead, different tables can be imported from
different data sources and a relationship can be defined between these tables to
easily model the data. You can create calculated columns and apply configura-
tions to view data segments in Power BI. You can also apply these configurations
to visuals created in Power BI. We will cover the following items in this section:
–– Creating relationships among tables
○○ Setting cardinality of relationships
○○ Understanding cross-filtering
–– Using DAX
–– Using calculated columns
–– Using calculated tables
As discussed earlier, you can import different tables from different data sources
into Power BI. These tables may have a large amount of data. You may also need
to do analysis using data from these tables. In this case, it will be hard to examine
how these tables are related to each other. Therefore, you need to create relation-
ships between these tables so that you can calculate results correctly and get the
correct information in your reports.
In Power BI Desktop, you can easily create relationships between tables. You
can either use the Autodetect feature to automatically create relationships among
tables, or you can create it manually.
Note
You may need to make some edits to the relationship that was created automatically.
The Detecting relationships message box appears displaying the progress of the
relationship detection, as shown in Figure 3.13.
You can see the relationships among tables in the Relationships view, as shown
in Figure 3.16.
78 Chapter 3: Power BI on Microsoft Stack
The Manage relationships window appears and shows the new relationship.
9. Click the Close button to close the Manage relationships window, as shown
in Figure 3.18.
10. Open the Relationships view to analyze the relationship between the
selected tables, as shown in Figure 3.19.
Understanding Cardinality
Cardinality is defined as the degree of relationship, which specifies the number
of occurrences of the first table linked to the number of occurrences of the second
table. Power BI supports the following three types of cardinalities:
–– Many to One (*:1): This is the default type of cardinality set in Power BI. It
states that multiple occurrences in the first table are linked to a single occur-
rence in the other table, called the Lookup table.
–– One to One (1:1): States that a single instance of a value in the first table is
linked to only one instance of a specific value in the other table, called the
Lookup table.
–– One to Many (1:*): States that a single instance of a value in the first table is
(or can be) linked to multiple occurrences in the other table.
ProjectDetails
ProjectPriority
ProName Priority
Project A 1
Project B 2
Project C 3
Project D 3
From the above table, we can identify that the ProjectName column has repeating
values, and One to One cardinality will not work. Therefore, we need to set Many
to One cardinality in this case.
Cross-Filtering
Cross-filtering direction specifies the direction of the filter applied to related
tables. Power BI provides the following two options for cross-filtering directions:
82 Chapter 3: Power BI on Microsoft Stack
Syntax
Syntax defines the way a formula is written. A formula is made up of several ele-
ments, called syntax elements. Figure 3.20 shows a DAX formula.
2. The equals sign operator (=) states that the formula has started.
3. “SUM” is a DAX function, which returns the sum of all the numbers available
in the specified column.
4. The parenthesis “()” encloses the expression having one or more arguments.
There should be at least one argument for a function.
5. “Sale SalesOrderDetail” is the name of the referenced table.
6. “[LineTotal]” is the name of the column in the “Sale SalesOrderDetail” table.
Note
The easiest way to understand a DAX formula is separating the syntax elements into a natural
language. For example, the formula listed in Figure 3.20 can be read as:
To get “Total Sales,” calculate (=) the SUM of values in the [LineTotal] column of the “Sale Sale-
sOrderDetail” table.
Functions
A function is a predefined formula that returns a value in a specified order by per-
forming calculations on specific values, known as arguments. An argument can
be a formula, function, number, or text. Power BI supports a variety of functions.
Table 3.1 lists some useful functions with their syntaxes and descriptions.
Note
A complete list of functions is available at the following link:
https://msdn.microsoft.com/en-us/library/ee634396.aspx
Context
While discussing DAX, it is advisable to understand context. DAX supports the
following two types of contexts:
1. Row context: This type of context is applicable when a function is avail-
able within a formula and this function can examine a single row in a table
through filters. This function inherits and applies row context for each filter-
ing rows of the table. This context is usually applied to measures.
2. Filter context: This type of context deals with applying multiple filters in a
calculation that defines a result or value. They do not override row context,
but are used with row context. Most reports use filter context. For example,
when you apply a visual to a field named TotalSales, and add filters like Year
and Region to it, it means that you are applying a filter context, which pro-
vides a data subset based on the specified year and region.
You can add custom columns to the tables available in your model. After adding
these columns, you can add data to these columns either by loading values from
Data Modeling 85
the data source or by creating a DAX formula. You can create a calculated column
by clicking the New Column button.
Calculated columns that you create in Power BI appear in the FIELDS pane
similar to other columns already available under the respective table. You can
also assign the required name for the calculated column and use this field for
creating visuals like other fields.
Note
The formula bar is the area where you can rename the column and specify a DAX formula.
2. Enter the desired DAX formula in the formula bar. In our case, we are concat-
enating values of two columns into one, as shown in Figure 3.22.
After you click the OK ( ) icon, the calculated column is created in the specified
table. You can view a visual for the calculated column by selecting the desired
86 Chapter 3: Power BI on Microsoft Stack
visual from the VISUALIZATIONS pane and selecting fields to display in the visual
from the FIELDS pane, as shown in Figure 3.23.
2. Enter a DAX formula for joining two tables in the formula bar, as shown in
Figure 3.25.
From the DAX formula mentioned in the figure above, the following consider-
ations can be made:
a. “Employees” is the name of the calculated table.
b. “=” is the operator.
c. UNION is the name of the function that joins two tables named North-
westEmployees and SouthwestEmployees.
3. Click the OK ( ) icon to save the DAX formula. A table named Employees is
created and displayed similar to other tables in the FIELDS pane, as shown
in Figure 3.26.
You can view the content of this table in the Data view, as shown in Figure 3.27.
Creating a Report
Once you are done with the process of pulling data from SQL Server and applying
data modeling practices, you can create a report containing visuals in Power BI
Desktop. As discussed earlier, the following two options can be used to get data
from SQL Server to Power BI Desktop:
1. Using the DirectQuery option
2. Using the Import option
In this section, you will learn to create isolated reports using both options.
Creating a Report 89
Perform the following steps to load data into Power BI Desktop using the
DirectQuery option and create a report based on that data:
1. Launch Power BI Desktop.
2. Click the Get Data button under the External data section of the Home tab.
A list of data sources appears.
3. Select the SQL Server option from the list. The SQL Server database dialog
box displays.
4. Enter the server name in the Server text box.
5. Enter the name of the database in the Database text box.
6. Select the DirectQuery radio button under the Data Connectivity mode
section.
7. Click the Advanced options button to view the advanced options. The asso-
ciated options appear.
8. Enter the command timeout in the Command timeout in minutes text box.
You can also leave this field blank since it is optional.
9. Enter the desired SQL statement in the SQL statement (optional, requires
database) text area. In our case, we have entered the following SQL statement:
A window appears displaying the name of the database followed by the server
name. It also shows the table view of the query made to the database.
11. Click the Load button to load the query, as shown in Figure 3.29.
Creating a Report 91
The Create connections message box appears displaying the process of creating
connections between Power BI and the queried SQL Server statement. Once the
connection is established successfully, a query (Query1) with the specified fields
is added in the FIELDS pane.
12. Right-click the query. A context menu opens.
13. Select the Rename option from the context menu to rename it, as shown in
Figure 3.30.
92 Chapter 3: Power BI on Microsoft Stack
14. Replace the word Query1 with the desired name. In our case, we have entered
Sales_By_Region.
15. Click the New Column button under the Calculations section of the Model-
ing tab. The formula bar appears.
16. Type the following DAX expression to create a calculated column called
Name that concatenates two columns called FirstName and LastName:
17. Click the OK ( ) icon to save the DAX expression. This creates a calculated
column titled Name under the Sales_By_Region table, as shown in Figure
3.31.
Creating a Report 93
18. Insert the desired visuals that you want to showcase in your report. In our case,
we have created a report with a variety of visuals, as shown in Figure 3.32.
Perform the following steps to load the data into Power BI Desktop using the
Import option and creating a report based on that data:
1. Launch Power BI Desktop.
2. Click the Get Data button under the External data section of the Home tab.
A list of data sources appears.
3. Select the SQL Server option from the list. The SQL Server database dialog
box appears.
4. Enter the server name in the Server text box.
5. Enter the name of the database in the Database text box.
6. Select the Import radio button under the Data Connectivity mode section.
7. Click the OK button. The Navigator window appears.
8. Select the desired tables from the Navigator window.
9. Click the Load button, as shown in Figure 3.33.
The Load dialog box appears displaying the progress of loading the selected
tables. Once the selected tables are loaded, they are displayed in the FIELDS pane.
10. Insert the desired visuals that you want to showcase in your report. In our case,
we have created a report showing different visuals, as shown in Figure 3.34.
96 Chapter 3: Power BI on Microsoft Stack
Once you are done with the process of creating a report, you need to save it to an
appropriate location. You should save the report regularly to avoid any loss of
your work on the report due to an unexpected event like a power failure.
Once you save the report, the specified name for the report appears in the title
bar, as shown in Figure 3.36.
The Publishing to Power BI message box appears displaying the progress bar of
publishing the report to Power BI, as shown in Figure 3.39.
Creating a Report 99
Once the publishing is complete, you will receive the message “Publishing suc-
ceeded.” However, you will also receive a warning, stating that the published
report can not connect to the data source due to the unavailability of a gateway.
4. Click the Got it button to close the message box, as shown in Figure 3.40.
Note
We will learn about installing and configuring gateway in the next section.
100 Chapter 3: Power BI on Microsoft Stack
Gateway Setup
As discussed in the previous section, you need to install and configure an enter-
prise gateway to connect the published report to the data source. This section
covers the following topics:
1. Understanding gateways
2. Types of gateways
3. Downloading and installing the on-premises data gateway
4. Configuring gateway
5. Adding a data source
Understanding Gateways
Types of Gateways
Power BI provides two types of gateways, both of which work in the same manner.
These gateways are listed below:
1. On-premises data gateway (personal mode)
2. On-premises data gateway
This type of gateway is ideal for situations as in the following example. If you
have a workbook that contains sales data for several years and you want to create
a Power BI dashboard that contains tiles displaying sales figures based on differ-
ent parameters. You are the owner of the report and use the same dataset for cre-
ating Power BI reports, you need an on-premises data gateway (personal mode).
The following are some considerations while using on-premises data gateway:
1. You can not install a gateway on a domain controller.
2. You should not install a gateway on a laptop that could experience broken
internet connectivity.
3. You should avoid installing gateway on a system running on the wireless
network as it might affect its performance.
After publishing a report in Power BI Service, you can access your report at the
https://app.powerbi.com link with your credentials. As you open the published
report, you will receive an error, as shown in Figure 3.41.
102 Chapter 3: Power BI on Microsoft Stack
From the above figure, you will see that visuals are not appearing in the report. This
is due to the inaccessibility of data gateway to reach the data source. This problem
can be rectified by installing an on-premises data gateway on the machine running
SQL Server and configuring it such that it can be used by Power BI.
Perform the following steps to download and install an on-premises data gateway:
1. Browse the following link:
https://app.powerbi.com/
2. Sign in to Power BI Service with the same credentials used in Power BI
Desktop.
3. Click the Download icon button. A list of options appears.
4. Click the Data Gateway option from the list of options, as shown in Figure 3.42.
Gateway Setup 103
The Choose the type of gateway you need page of the On-premises data
gateway installer wizard appears.
8. Select the On-premises data gateway (recommended) radio button to
install the on-premises data gateway.
9. Click the Next button, as shown in Figure 3.45.
The Getting ready to install the on-premises data gateway page appears, dis-
playing the progress of the installation, as shown in Figure 3.46.
Figure 3.46: The Getting ready to install the on-premises data gateway page
The Reminder before you install page appears. This page provides a warning
and reminder about using the gateway.
10. Click the Next button, as shown in Figure 3.47.
The Getting ready to install the on-premises data gateway page appears.
11. Specify the path of directory where you want to install the gateway in the
Install to text box.
12. Click the I accept the terms of use and privacy statement checkbox.
13. Click the Install button, as shown in Figure 3.48.
The Installing your on-premises data gateway page appears providing status
and progress of the installation, as shown in Figure 3.49.
The Almost done page of the On-premises data gateway installation wizard
appears stating that installation was successful. This page also states that you
need to sign in to register your gateway.
Configuring Gateway
Once the installation is successful, you need to configure the gateway so that it
can be used with Power BI. For configuring the gateway, you need to continue
with the steps followed in the earlier section “Downloading and Installing the
On-Premises Data Gateway.” Perform the following steps to configure/register
gateway:
1. Enter the email address with which you want to register your gateway in the
Email address to use with this gateway text box of the On-premises data
gateway window.
2. Click the Sign in button, as shown in Figure 3.50.
The next page of the On-premises data gateway window asks you to specify
name and recovery key for the gateway.
7. Enter the name of a gateway in the New on-premises data gateway name
text box.
8. Enter the desired recovery key for the gateway in the Recovery key text box.
9. Enter the same recovery key in the Confirm recovery key text box.
Gateway Setup 109
Once the gateway is configured, you will see the status that “The gateway Demo-
Gateway is online and ready to be used.”
11. Click the Close button to close the On-premises data gateway window, as
shown in Figure 3.53.
110 Chapter 3: Power BI on Microsoft Stack
After installing the on-premises data gateway, you can add a data source (SQL
Server) to be used with the gateway. You can find the list of available gateways
under the GATEWAY CLUSTERS section of the Gateways window. The settings
related to the selected gateway cluster appear in the right pane of the Gateways
window.
Perform the following steps to add a data source to the gateway created earlier:
1. Launch Power BI Service.
2. Click the Settings icon button. A list of options appears.
3. Click the Manage gateways option, as shown in Figure 3.54.
Gateway Setup 111
The Gateways window appears. In the left pane, you will see a list of available
gateways under the GATEWAY CLUSTERS section. The right pane displays infor-
mation about the selected gateway and other settings related to the gateway
under the Gateway Cluster Settings tab, as shown in Figure 3.55.
112 Chapter 3: Power BI on Microsoft Stack
4. Click either Add data sources to use this gateway link or select the Ellipsis
icon (…) next to the gateway and click the ADD DATA SOURCE option from
the menu, as shown in Figure 3.56.
5. Enter the desired name for the data source in the Data Source Name text
box.
6. Select the SQL Server option from the Data Source Type drop-down list to
connect the gateway to the SQL Server data source.
7. Enter the name of SQL Server where the database is present in the Server
text box.
8. Enter the same name of the database that you used earlier, in the Database
text box.
Gateway Setup 113
After you select an authentication method, the Username and Password fields
display.
10. Enter the relevant username in the Username text box.
11. Enter the applicable password in the Password text box.
12. Click the Add button, as shown in Figure 3.58.
114 Chapter 3: Power BI on Microsoft Stack
As you click the Add button, the Connection Successful message appears,
which states that the connection has been established, as shown in Figure 3.59.
13. Select the Users tab to add users to the created data source.
14. Specify the email address of the person that you want to allow to publish
reports using this data source.
Gateway Setup 115
15. Click the Add button. The specified person is added to the list box, as shown
in Figure 3.60.
Once the gateway is configured properly, the visuals start appearing on the report,
as shown in Figure 3.61.
116 Chapter 3: Power BI on Microsoft Stack
Note
Q&A should not be replaced with a search engine because Q&A provides results from the data
available in Power BI only while a search engine provides results from data available worldwide.
To use this feature, you should have some data in Power BI. If you do not have
data, you can connect to the samples available in Power BI Service. Perform the
following steps to connect to a sample:
1. Open Power BI Service.
2. Click the Get Data button in the left pane. The Get Data page appears in the
right pane.
3. Click the Samples link, as shown in Figure 3.62.
Natural Language Querying 117
The Importing data message box appears displaying the progress of importing
data, as shown in Figure 3.64.
The dashboard opens and displays the tiles pinned to the dashboard, as shown
in Figure 3.66.
2. Enter the desired query in the Ask a question about your data text box. In
our case, we have entered “count of product by manufacturer.” After we
enter the keywords, we receive the result in the form of a visual, as shown in
Figure 3.68.
You can modify this visual as per your requirements. For example, to change the
visual, you just need to select another visual from the VISUALIZATIONS pane and
the data will be visualized in the updated visual, as shown in Figure 3.69.
3. Click the Pin visual icon located in the upper right corner to pin this visual to
the dashboard as a tile. The Pin to dashboard dialog box appears.
4. Select either the Existing dashboard or the New dashboard radio button to
specify the dashboard where you want to pin this visual. In our case, we have
selected Existing dashboard.
5. Select the desired dashboard from the drop-down list.
6. Click the Pin button, as shown in Figure 3.70.
122 Chapter 3: Power BI on Microsoft Stack
The Pinned to dashboard message box appears, which specifies that the created
visual is pinned to the selected dashboard. It also contains the Go to Dashboard
button that navigates you to the specified dashboard. The dashboard is now
updated with the created visual, as shown in Figure 3.71.
The point of using visuals to help communicate information about data being
captured is to help users in making better business decisions. Because of this,
you should always ensure that the data you are using for these Power BI reports is
accurate and updated. However, it is not possible to import the entire data repeat-
edly into Power BI and create reports on that data. After creating Power BI reports
with the data you have, you can set a scheduled refresh of that data so that your
Power BI reports and visualizations reflect the updated information. This also
eliminates the need to import the data repeatedly. You can also apply a manual
refresh to the data by clicking the Refresh button in Power BI to visualize the
updated data in your reports and dashboards.
Note
There could be multiple data sources for a single dataset.
A dataset contains:
–– Information about the data sources
–– Data source credentials
–– A subset of data taken from the data source
Note
When you update data in the data source and want to apply the same update to your visuals in
the report, you need to refresh data in Power BI. The data refresh updates the data in the dataset
stored in Power BI. This type of data refresh is called a full refresh.
2. Power BI connects with the associated data sources by using the available
information in the dataset.
3. Power BI queries the respective data sources for updated data.
4. Power BI loads the updated data into the dataset.
5. The visuals automatically update and display in your reports or dashboards
based on the latest data.
Additional Information
Other than data refresh, there are a few additional types of refresh available in Power BI as follows:
1. Package refresh: Refers to a type of refresh that synchronizes your Power BI Desktop and
Power BI Service and OneDrive. When you refresh data, the data remains at the original data
source, only the dataset is updated as per the update made to OneDrive or SharePoint Online.
2. Tile refresh: Updates the visuals for tiles pinned on the dashboard whenever there is a change
in data. Power BI checks for updated data every fifteen minutes. However, you can select the
Refresh dashboard tiles option from the menu that appears when you click the Ellipsis icon
(...) in a dashboard to apply tile refresh forcefully.
3. Visual container refresh: Updates the report visuals when you refresh the visual container.
You can apply a scheduled refresh by clicking the Schedule refresh icon or the
Settings option from the Ellipsis icon(…) next to the dataset name. For successful
configuration of a scheduled refresh, you need to set the following settings:
–– Gateway connection
–– Data source credentials
–– Schedule refresh
8. Expand the Data source credentials node. Here, you will see a message
stating that credentials are not required for Admin, as shown in Figure 3.74.
9. Expand the Scheduled refresh node. This is where you need to specify set-
tings related to a schedule refresh, including the frequency and time slots to
refresh the dataset.
10. Drag the slider under the Keep your data up to date section to change its
status to On.
11. Select the desired frequency for a refresh from the Refresh frequency drop-
down list.
12. Select the desired time zone from the Time zone drop-down list.
13. Click the Send refresh failure notification email to me checkbox so that
you receive an email if the refresh has failed.
Data Refresh in Power BI 127
After you click the Apply button, the scheduled refresh is configured.
When the data is loaded through DirectQuery, a direct connection is estab-
lished between Power BI and the database. Power BI thus queries the database
directly whenever you interact with any visual on a report. The refresh frequency
for the dataset created using DirectQuery is set to 1 hour by default. However,
you can change it as per your requirements by changing the frequency in the
Refresh frequency drop-down list and then clicking the Apply button, as shown
in Figure 3.76.
128 Chapter 3: Power BI on Microsoft Stack
You can also see the refresh history by clicking the Refresh history link. This
opens the Refresh history dialog box and displays the history of data refresh, as
shown in Figure 3.77.
A content pack is a complete package of your dashboard, report, and dataset that
can be shared with other users in your organization. You can create the content
pack and publish it to the team. After you publish the content pack, it becomes
available in a centralized repository called AppSource. This repository helps
team members easily locate reports and datasets published for them.
Note
The reports and datasets published as content packs possess Power BI features, including sup-
port for data exploration, data refresh, visuals, and Q&A.
You can locate content packs in the central repository only when you are a member
of a group, such as the entire organization, distribution group, security group, or
Office 365 group, to which the content pack is published. You should note that
the content pack data is read-only for all members of the group. However, you can
copy reports to use them as a base for a personalized version of the content pack.
Note
You should have a Power BI Pro account for creating and accessing an organizational content
pack.
A pop-up appears stating that the content pack is published successfully and
added to the organization’s content gallery.
To integrate Power BI with the Cortana suite, you need the following:
–– A system running Windows 10 with version 1511 or later
–– The Cortana feature to be turned on
–– A Power BI account
–– An Azure Active Directory (Azure AD)/Work or School account
–– One or more datasets configured such that they can be used with Cortana
While integrating Power BI with Cortana, it is advisable to set the size of the report
specifically for Cortana, which is called the Cortana answer page.
Cortana can easily access Power BI reports. For this, you need to select the
“Enable Cortana to access this dataset” checkbox to enable the related dataset of
the report. It allows users with access to the dataset to get answers from Cortana.
7. Select the Reports tab in the right pane. The available reports are displayed
under the Reports tab.
8. Click the View related ( ) icon next to the name of the report that you want
to allow Cortana to access, as shown in Figure 3.88.
The Related content pane appears displaying the dashboards and datasets, as
shown in Figure 3.89.
The Settings page appears with the related settings of the selected dataset.
11. Expand the Q&A and Cortana option.
12. Select the Allow Cortana to access this dataset checkbox.
13. Click the Apply button, as shown in Figure 3.91.
140 Chapter 3: Power BI on Microsoft Stack
Note
You can check the version of Windows 10 by navigating to Start Settings System About. The
About page shows the Windows Edition and Version under the Windows specifications section.
Figure 3.95: Clicking the Join this device to Azure Active Directory link
You are connected with the specified credentials, as shown in Figure 3.96.
144 Chapter 3: Power BI on Microsoft Stack
Once you have created the new account, you can switch to Power BI account to
access Power BI reports through Cortana, as shown in Figure 3.97.
Power BI Integration with Cortana Suite 145
Perform the following steps to access the Power BI report through Cortana:
1. Press the Windows + S key combination on the keyboard.
2. Type the desired keywords in the Type here to search text box. In our case,
we have typed Leads revenue by Employee.
As we type the keywords, the associated Power BI report is shown in the Cortana
Search box, as shown in Figure 3.98.
146 Chapter 3: Power BI on Microsoft Stack
3. Click the report. The visuals of the report are shown in the Cortana Search
box, as shown in Figure 3.99.
Power BI Integration with Cortana Suite 147
4. Click the Open in Power BI link to open the report into Power BI, as shown
in Figure 3.100.
148 Chapter 3: Power BI on Microsoft Stack
Summary
Power BI is a business intelligence and reporting tool that allows users to create
intuitive reports. It supports many data sources including Excel, SQL Server,
PostgreSQL, Dynamics CRM, and MySQL. This chapter focused on integrating
Power BI with SQL Server. The two options, that is, using the Import option and
the DirectQuery option, for getting data into Power BI from SQL Server were dis-
cussed. Both the options of establishing a relationship between tables were also
elaborated. This chapter provided in-depth information about using DAX expres-
sions and creating calculated columns and tables. You also became familiar with
the process of creating a report wherein data was loaded to Power BI through
the Import option and the DirectQuery option. A gateway, a software that allows
150 Chapter 3: Power BI on Microsoft Stack
To integrate PostgreSQL with Power BI, you will need the following:
–– PostgreSQL
–– PostgreSQL database
–– Npgsql connector
–– Power BI Desktop
Npgsql is an open source ADO.NET Data Provider or connector that allows Power
BI users to connect to PostgreSQL database.
DOI 10.1515/9781547400720-004
152 Chapter 4: Power BI on Open Source Stack
Perform the following steps to download and install the Npgsql connector:
1. Visit the following link to download the latest version of Npgsql:
https://github.com/npgsql/Npgsql/releases
2. Click the Npgsql-3.2.7.msi link to download the .msi file.
The selected file will download and display in the Downloads folder on your
computer.
3. Navigate to the Downloads folder and locate the downloaded file.
4. Double-click the Npgsql-3.2.7.msi file.
The Welcome to the Npgsql 3.2.7 Setup Wizard page of the Npgsql 3.2.7 Setup
wizard appears.
5. Click the Next button to start the installation, as shown in Figure 4.1.
The Installing Npgsql 3.2.7 page displays the progress of the Npgsql 3.2.7 instal-
lation, as shown in Figure 4.5.
After clicking the Finish button, the connector has been installed successfully.
The first task in the process of creating a report is getting data from PostgreSQL
into Power BI.
Perform the following steps to get data from the PostgreSQL database:
1. Launch Power BI Desktop.
2. Click the upper part of the Get Data button under the External data section
of the Home tab, as shown in Figure 4.7.
156 Chapter 4: Power BI on Open Source Stack
Figure 4.7: Clicking the upper part of the Get Data button
The selected tables load into Power BI Desktop and appear in the FIELDS pane,
as shown in Figure 4.11.
Data Modeling
After loading the data tables into Power BI, you need to shape data such that it
can be used for creating intuitive reports. The way the data is shaped in Power
BI is called data modeling. For example, if you have multiple tables from differ-
ent data sources, you will need to create a relationship between these tables to
use the data from these tables. You may also need to change the data type for
a column, add or delete a new column or row, create a calculated column that
returns a result based on data available in other columns, create a measure, and
create a calculated table. All these operations fall within data modeling.
In the figure above, you can see that each successful relationship has active
checkbox in the Active column.
4. Click the Close button to close the Manage relationships window.
You can see the relationships between tables in the Relationships view, as
shown in Figure 4.15.
Data Modeling 161
The Manage relationships window appears and displays the new relationship.
11. Click the Close button to close the Manage relationships window.
12. Click the Relationships view to analyze the relationship between the
selected tables.
Note
Cardinality is the degree of relationship, which specifies the number of occurrences of the first
table linked to the number of occurrences of the second table.
Cross filter direction specifies the direction of filter applied to the tables of relationships.
Note
A detailed description of the elements of DAX is covered in Chapter 2.
Perform the following steps to create a calculated column that concatenates the
FirstName and LastName fields:
1. Click the New Column button under the Calculations section of the Model-
ing tab. A new column is added to the selected table in the FIELDS pane, and
the formula bar appears above the Report canvas, as shown in Figure 4.17.
Note
The formula bar is the actual area where a DAX formula can be specified.
2. Enter the DAX formula in the formula bar, as shown in Figure 4.18.
After clicking the OK ( ) icon, the calculated column is created in the selected
table in the FIELDS pane, as shown in Figure 4.19.
You can review the visual for the calculated column by selecting the desired
visual from the VISUALIZATIONS pane and selecting fields to be displayed in the
visual from the FIELDS pane, as shown in Figure 4.20.
Creating a Report 165
Creating a Report
Once you are done with the process of getting data from the PostgreSQL database
and applying data modeling changes, you can create a report containing visuals
in Power BI Desktop. We have created a report shown in Figure 4.21.
d. Select the font from the Font drop-down list in the formatting toolbar.
e. Select the font size from the Font Size drop-down list in the format-
ting toolbar.
f. Click the B button to apply the bold style for the selected text.
g. Click the Center button to centralize the text, as shown in Figure 4.26.
h. Drag the slider for the Background option to change its status to On
in the VISUALIZATIONS pane.
i. Expand the Background option to view settings related to the background.
j. Click the Color drop-down button. The Theme colors palette appears.
k. Select the color from the Theme colors palette.
l. Set the Transparency option to 0%.
m. Expand the General option. The related settings appear.
n. Set the values for the X Position, Y Position, Width, and Height text
boxes, as shown in Figure 4.27.
g. Drag the slider for the Title option to change its status to On.
h. Expand the Title option and set the related settings, as shown in
Figure 4.29.
Creating a Report 171
i. Drag the slider for the Background option to change its status to On.
j. Set the color and transparency, as shown in Figure 4.30.
k. Expand the General option and set the related settings, as shown in
Figure 4.31.
172 Chapter 4: Power BI on Open Source Stack
h. Expand the Items option and specify the settings, as shown in Figure
4.34.
i. Drag the slider for the Title option to change its status to On.
j. Specify the settings related to the Title option, as shown in Figure
4.35.
k. Drag the slider for the Background option to change its status to On.
Creating a Report 175
6. Add the Slicer visual to display the State name related to the country selected
in the Country slicer:
a. Click the Slicer visual from the VISUALIZATIONS pane. The selected
visual appears in the report page.
b. Drag the name field from the person stateprovince table and drop it
into the Field value.
c. Click the Format icon to set the formatting settings.
d. Expand the General option and specify the settings, as shown in
Figure 4.37.
e. Expand the Items option and specify the settings, as shown in Figure
4.38.
f. Drag the slider for the Title option to change its status to On.
g. Specify the settings related to the Title option, as shown in Figure 4.39.
h. Drag the slider for the Background option to change its status to On.
i. Specify the settings related to the Background option, as shown in
Figure 4.40.
Creating a Report 177
7. Add a Pie chart to visualize the subtotal filtered by city and format it:
a. Click the Pie chart visual from the VISUALIZATIONS pane. The
selected visual appears in the report page.
b. Drag the city field from the person address table and drop it into the
Legend value.
c. Drag the subtotal field from the sales salesorderheader table and
drop it into the Values value.
d. Click the Format icon to set the formatting settings.
e. Drag the slider for the Title option to change its status to On, expand
it, and specify the settings, as shown in Figure 4.41.
f. Drag the slider for the Background option to change its status to On.
178 Chapter 4: Power BI on Open Source Stack
h. Expand the General option and specify settings related to it, as shown
in Figure 4.43.
8. Add a Clustered column chart to visualize the total due filtered by city and
format it:
a. Click the Clustered column chart visual from the VISUALIZATIONS
pane. The selected visual appears in the report page.
b. Drag the city field from the person address table and drop it into the
Axis value.
c. Drag the totaldue field from the sales salesorderheader table and
drop it into the Value.
d. Click the Format icon to set the formatting settings.
e. Expand the General option and specify settings related to it, as shown
in Figure 4.44.
f. Drag the slider for the Title option to change its status to On, expand
it, and specify the settings, as shown in Figure 4.45.
180 Chapter 4: Power BI on Open Source Stack
g. Drag the slider for the Background option to change its status to On.
h. Specify the settings related to the Background option, as shown in
Figure 4.46.
9. Add a table that displays the details of subtotal and total due per customer:
a. Click the Table visual from the VISUALIZATIONS pane. The selected
visual appears in the report page.
b. Drag the customerid field from the sales salesorderheader table,
drop it into the Values value, and rename customerid to Custome-
rid.
c. Drag the Name field from the person table and drop it into the Values
value.
d. Drag the city field from the person address table, drop it into the
Values value, and rename city to City.
Creating a Report 181
e. Drag the name field from the person stateprovince table, drop it into
the Values value, and rename name to State.
f. Drag the name field from the person countryregion table, drop it
into the Values value, and rename name to Country.
g. Drag the orderdate field from the sales salesorderheader table,
drop it into the Values value, and rename orderdate to Order date.
h. Drag the subtotal field from the sales salesorderheader table, drop
it into the Values value, and rename subtotal to Subtotal.
i. Drag the totaldue field from the sales salesorderheader table, drop
it into the Values value, and rename totaldue to Total Due, as shown
in Figure 4.47.
l. Expand the Table style option and select the Minimal option from
the Style drop-down list, as shown in Figure 4.49.
m. Expand the Grid option and set the settings, as shown in Figure 4.50.
Creating a Report 183
n. Expand the Column headers option and specify the settings related
to it, as shown in Figure 4.51.
o. Expand the Values option and set the related settings, as shown in
Figure 4.52.
p. Expand the Total option and specify the related settings, as shown in
Figure 4.53.
q. Drag the slider to set the value of the Background option to On,
expand it, and set the related settings, as shown in Figure 4.54.
Creating a Report 185
It is a good practice to save a report regularly. Perform the following steps to save
the report:
1. Select the File tab from the Ribbon. The Backstage View appears.
2. Select the Save As option from the Backstage View. The Save As dialog box
appears.
3. Select the location wherein you want to save the report.
4. Type the desired name for the report in the File name text box.
5. Click the Save button, as shown in Figure 4.55.
You can publish a report created in Power BI Desktop to Power BI Service and
make the report accessible to others.
The Publishing to Power BI dialog box displays the status of publishing the
report to Power BI, as shown in Figure 4.58.
Displaying the most up to date information helps users in making better business
decisions. Therefore, you should always use accurate and updated data for cre-
ating reports in Power BI. This can be done by creating a report, publishing it to
Power BI Service, and using the data refresh functionality of Power BI to update
data in the reports. You can also set a scheduled refresh in Power BI to automat-
ically update visuals when there is an update in data. You can also manually
refresh the reports by clicking the Refresh button in Power BI.
In Power BI Service, a dataset is a subset of data taken from the data source
and includes information about the data sources and their credentials. A dataset
is created automatically and appears under the Datasets tab in Power BI Service.
Data Refresh in Power BI 189
You can apply a scheduled refresh by either using the Schedule refresh icon next
to the dataset name, or by using the Settings option from the menu that appears
when you click the Ellipsis icon (…) next to the dataset name. For successful con-
figuration of a scheduled refresh, you need to set the following settings:
–– Gateway connection
–– Data source credentials
–– Schedule refresh
Gateway Setup
A gateway is piece of software that allows users to access data located on an
on-premises system or network so that it can be used in a cloud service later. Only
authorized users are permitted to access the gateway. Similar to a gatekeeper who
allows only authorized personnel to gain entry, the gateway attends all connec-
tion requests but grants access to only those users who meet certain criteria.
You need to install a data gateway on the machine running PostgreSQL and con-
figure it such that it can be used by Power BI.
The Choose the type of gateway you need page of the On-premises data
gateway installer wizard appears.
8. Select the On-premises data gateway (recommended) radio button to
install the on-premises data gateway.
9. Click the Next button, as shown in Figure 4.64.
The Getting ready to install the on-premises data gateway page appears,
which displays the progress of collecting the required information and files to
install the on-premises data gateway, as shown in Figure 4.65.
Figure 4.65: The Getting ready to install the on-premises data gateway page
The Reminder before you install page appears. This page gives warning for
using the gateway.
10. Click the Next button, as shown in Figure 4.66.
The Getting ready to install the on-premises data gateway page appears.
11. Specify the directory path wherein you want to install the gateway in the
Install to text box.
12. Click the I accept the terms of use and privacy statement checkbox.
13. Click the Install button, as shown in Figure 4.67.
The Installing your on-premises data gateway page displays the progress of
installing the data gateway, as shown in Figure 4.68.
The Almost done page of the On-premises data gateway installation wizard
appears stating that installation was successful. This page also states that you
need to sign in to register your gateway.
Configuring Gateway
Once the installation is successful, you need to configure the gateway so that it
can be used with Power BI. For configuring the gateway, you need to continue
with the steps followed in the earlier section, “Downloading and Installing the
On-premises Data Gateway.” Perform the following steps to configure/register
gateway:
1. Enter the email address with which you want to register your gateway in the
Email address to use with this gateway text box of the On-premises data
gateway window.
2. Click the Sign in button, as shown in Figure 4.69.
The next page of the On-premises data gateway window asks you to specify a
name and recovery key for the gateway.
7. Enter the name of a gateway in the New on-premises data gateway name
text box.
8. Enter the desired recovery key for the gateway in the Recovery key text box.
9. Enter the same recovery key in the Confirm recovery key text box.
10. Click the Configure button, as shown in Figure 4.71.
196 Chapter 4: Power BI on Open Source Stack
Once the gateway is configured, you will see the following status message: “The
gateway DemoGateway is online and ready to be used.”
11. Click the Close button to close the On-premises data gateway window, as
shown in Figure 4.72.
Data Refresh in Power BI 197
Perform the following steps to add a data source to the gateway created earlier:
1. Launch Power BI Service.
2. Click the Settings icon. A list of options appears.
3. Click the Manage gateways option, as shown in Figure 4.73.
198 Chapter 4: Power BI on Open Source Stack
The Gateways window appears. In the left pane, you will see a list of available
gateways under the GATEWAY CLUSTERS section. The right pane displays infor-
mation about the selected gateway and other settings related to the gateway
under the Gateway Cluster Settings tab, as shown in Figure 4.74.
4. Click either Add data sources to use this gateway link or select the Ellipsis
icon (…) next to the gateway and click the ADD DATA SOURCE option from
the menu, as shown in Figure 4.75.
After clicking the Add button, the Connection Successful message appears,
which states that the connection has been established, as shown in Figure 4.78.
14. Select the Users tab to add users to the created data source.
15. Specify the email address of the person that you want to allow to publish
reports using this data source.
Data Refresh in Power BI 201
16. Click the Add button. The specified person is added to the list box, as shown
in Figure 4.79.
8. Expand the Scheduled refresh node and specify settings related to schedule
refresh, including the frequency and time slots to refresh the dataset.
9. Drag the slider under the Keep your data up to date section to change its
status to On.
10. Select the desired frequency for a refresh from the Refresh frequency drop-
down list.
11. Select the desired time zone from the Time zone drop-down list.
12. Click the Send refresh failure notification email to me checkbox to apply
a setting such that you receive an email if the refresh fails.
13. Click the Apply button, as shown in Figure 4.82.
A content pack is a complete package of your dashboard, report, and dataset that
can be shared with other users in your organization. You can create the content
pack and publish it to the team. As you publish the content pack, it becomes
available in a centralized repository called AppSource. This repository helps
team members to easily locate reports and datasets published for them.
You can locate the content packs in a central repository only when you are a
member of a particular group, such as the entire organization, distribution group,
security group, or Office 365 group, to which the content pack is published.
Note
You will need a Power BI Pro account for creating and accessing an organizational content pack.
A pop-up appears stating that the content pack has been published successfully
and added to the organizations content gallery.
You can view the content pack by performing the following steps:
1. Click the Settings icon. A drop-down menu appears.
2. Select the View content pack option from the drop-down menu, as shown
in Figure 4.87.
Creating Content Packs 209
The View content pack page appears listing the content packs, as shown in
Figure 4.88.
Summary
This chapter outlined the process for integrating PostgreSQL with Power BI. It
provided in-depth information about creating a report in Power BI that takes data
from the database located in PostgreSQL. We outlined the step-by-step process
to take data from the data source, create reports, and then publish the report to
Power BI Service. This chapter also reviewed data refresh wherein we discussed
gateway setup and configuration of a scheduled refresh. And last, we outlined the
process for creating and viewing content packs.
C
hapter 5
Power BI on ERP Applications
As discussed earlier, Power BI can be integrated with a number of data sources.
One of the most prominent features of Power BI is its ability to integrate with
Dynamics CRM, which is a customer relationship management (CRM) solution
developed by Microsoft. The ability of Microsoft Dynamics CRM to enhance cus-
tomer relationships for any organization make it a perfect choice for entrepre-
neurs as compared to other sources. You can easily integrate Power BI with Mic-
rosoft Dynamics CRM through the simple user interface. Users can create simple
and intuitive reports in Power BI based on data from Microsoft Dynamics CRM.
This chapter provides an in-depth review of Power BI integration with Microsoft
Dynamics CRM.
Defining CRM
CRM manages interactions between a company and its customers. It belongs to the
data-driven solution category and enhances the interaction and business-driven
capabilities of companies with their customers. CRM works as an integrated
system for managing customer relationships, tracking sales, and producing data.
DOI 10.1515/9781547400720-005
212 Chapter 5: Power BI on ERP Applications
Although there are several CRM solutions available in the market, Microsoft
Dynamics CRM takes precedence over other solutions due to its unique features
such as support of deployment models, easy integration with other stacks pro-
vided by Microsoft, etc. Some unique features and benefits of Microsoft Dynamics
CRM over its competitors are as follows:
–– It is easy to use due to its simple user interface (UI).
–– It provides different deployment models including on-premises, part-
ner-hosted, hybrid, and online depending upon business structure and
needs.
–– It supports “point and click” configuration, which eliminates the need to
open Microsoft Visual Studio separately to customize the CRM deployment.
–– Different licensing options are available per business requirements.
–– It supports reporting features that stipulate valuable data insights. It also
allows organizations to use SQL Server Reporting Services (SSRS) to create
reports.
–– It provides the duplicate detection feature and makes the process of import-
ing data from different data sources easy.
–– It supports several languages and currencies.
–– It is a valuable product that balances both price and features.
–– It integrates with commonly used applications including Microsoft Office and
the Microsoft Server stack.
–– It works on the xRM framework, which makes it a versatile platform for creat-
ing custom line-of-business (LOB) applications.
Sign Up for Microsoft Dynamics CRM Online 213
The Dynamics 365 wizard appears with the Welcome, let’s get to know you
dialog box.
2. Select the desired country from the Country drop-down list, as shown in
Figure 5.1.
The Create your user ID dialog box appears, as shown in Figure 5.2.
The Save this info. You’ll need it later dialog box appears.
21. Click the Set up button, as shown in Figure 5.5.
216 Chapter 5: Power BI on ERP Applications
The Let’s get your FREE 30-day trial set up dialog box appears.
22. Select the None of these. Don’t customize my organization checkbox.
23. Click the Complete Setup button, as shown in Figure 5.6.
Figure 5.6: The Let’s get your FREE 30-day trial set up dialog box
After clicking the Complete Setup button, you are redirected to your new CRM
Online trial, which has a sample dataset already installed. You can access dif-
Creating Sample Data for Dynamics CRM 217
ferent sections of CRM by using the navigation options at the top, as shown in
Figure 5.7.
The primary task in the process of creating a report in Power BI is retrieving data
from the respective data source, that is, Dynamics CRM in this case.
The Navigator window appears, which provides a list of tables that can be loaded
to Power BI Desktop.
10. Select the desired tables from the Navigator window.
11. Click the Load button to load the tables into Power BI Desktop, as shown in
Figure 5.14.
Getting Data into Power BI 221
The selected tables are imported into Power BI Desktop and the name of the
imported tables display under the FIELDS pane, as shown in Figure 5.15.
–– System users
–– Ratings
–– Teams
You may also need to add additional tables to perform specific tasks or create
specific reports.
Creating Reports
The Leads Revenue by Employee report shows the leads revenue generated by
employee. We have used different filters and slicers in this report, as shown in
Figure 5.16.
The primary visuals used in the report above are listed as follows:
–– Chiclet slicers
–– Pie chart
–– Clustered bar chart
–– Slicer
–– Table
–– Map
Chiclet Slicers
Similar to other slicers, a chiclet slicer is used to apply filters on data. In the above
report, we have created five chiclet slicers, as shown in Figure 5.17.
DAY =
WEEK =
if(leads[WeekNo]=WEEKNUM(TODAY(),21)-1 &&
YEAR(leads[createdon])=YEAR(TODAY()),"Last Week",
if(leads[WeekNo]=WEEKNUM(TODAY(),21)+1 &&
YEAR(leads[createdon])=YEAR(TODAY()),"Next Week",
BLANK())))))
Month Duration =
if(leads[QuarterNo]=(ROUNDUP(MONTH(TODAY())/3,0)-1) &&
YEAR(TODAY())=leads[Year],"Last Quarter",
if(leads[QuarterNo]=(ROUNDUP(MONTH(TODAY())/3,0)+1) &&
YEAR(TODAY())=leads[Year],"Next Quarter",
Creating Reports 225
BLANK())))))
YearDuration =
Slicer
A Slicer visual acts as a filter that is applied on other report visuals to provide
filtered results. The REVENUE OFFICER slicer lists the name of revenue officers,
and filters other visuals based on the selected officer in the “Leads Revenue by
Employee” report, as shown in Figure 5.20.
Map
The Map visual highlights specific or important locations on a map. In this report,
this visual highlights the countries, as shown in Figure 5.21.
Table
The Table visual contains rows and columns. In this report, the Table visual dis-
plays information including Employee Name, Designation, City, Country, Total
Revenue, and Email, as shown in Figure 5.22.
The “Leads Revenue by Company” report displays the leads revenue filtered
through companies. This report contains chiclet slicers, a stacked area chart, a
pie chart, the slicer filter, and a table, as shown in Figure 5.23.
Slicer
A Slicer visual acts as a filter that is applied on other report visuals to provide fil-
tered results. The COMPANIES slicer lists the name of companies and thus filters
the revenue status of each company in the “Leads Revenue by Company” report,
as shown in Figure 5.25.
230 Chapter 5: Power BI on ERP Applications
Loans by Category
The “Loans by Category” report displays data related to loans filtered by product
category. This report also contains filters and slicers, as shown in Figure 5.26.
Loans Summary
The “Loans Summary” report displays a summary of total loans. This report con-
tains chiclet slicers, a donut chart, a card grid, PBI_CV, and a table visual, as
shown in Figure 5.28.
232 Chapter 5: Power BI on ERP Applications
Donut Chart
Donut (or doughnut) chart is similar to a pie chart that contains slices wherein
each section depicts a value. The “Total Loan by Stepname” donut chart is shown
in Figure 5.29.
Deep linking allows users to view information available from the Dynamics CRM
portal by clicking the available link. This link redirects the user to the linked
URL. Figure 5.30 shows the deep linking feature applied on the values under the
Company URL column.
You can add a new user in Microsoft Dynamics CRM Online trial. Perform the
following steps to add a new user:
1. Navigate to the Dynamics 365 admin portal.
2. Click the Add a user link under the Active users section, as shown in Figure 5.31.
3. Enter the desired first name in the First name text box.
4. Enter the desired last name in the Last name text box.
5. Enter the display name in the Display name text box.
6. Enter the desired user name in the Username text box.
7. Select the desired location from the Location drop-down list.
8. Expand the Roles section. Different options related to the Roles section
appear.
9. Select the desired radio button under the Roles section to assign a role to the
user, as shown in Figure 5.33.
Adding a New User 235
A confirmation window appears with the status “User was added,” as shown in
Figure 5.35.
Row-Level Security in Power BI 237
You can create roles and rules in Power BI Desktop. These roles definitions are
automatically published to Power BI Service when you publish your report from
Power BI Desktop to Power BI Service. You can apply filters to these roles through
DAX expressions.
238 Chapter 5: Power BI on ERP Applications
As discussed earlier, the roles and rules defined in Power BI Desktop are auto-
matically published to Power BI Service when you publish your report to Power
BI Service.
5. Replace the text with the desired name of the role. In our case, we have
replaced the text with “Manager.” Similarly, we have created one more role
with the name “Officer.”
6. Select the desired table from the Tables section for which you want to apply
a DAX rule.
7. Enter the desired DAX rule for the selected table in the Table filter DAX
expression text area. In our case, we have three tables, namely “leads,”
“opportunities,” and “systemusers.” From these tables, we have used the
“leads” and “opportunities” tables. We have written the following DAX rules
for these tables:
[address1_country]=LOOKUPVALUE(systemusers[address1_
country],systemusers[internalemailaddress],UserName())
[Country]=LOOKUPVALUE(systemusers[address1_
country],systemusers[internalemailaddress],UserName())
Note
Data Analysis Expressions (DAX) is an expression (a set of functions, constants, and operators)
written to apply calculations on data available in your model. The DAX expression should either
return a True or False.
8. Click the OK icon ( ) next to the Table filter DAX expression option to
validate the expression, as shown in Figure 5.38.
Note
In the default configuration, RLS filtering uses single-directional filters irrespective of the di-
rection set for the relationships. However, you can enable bi-directional filtering by selecting
the bi-directional option and selecting the Apply security filter in both directions checkbox. You
should select the Apply security filter in both directions checkbox at the time of implement-
ing dynamic RLS. In dynamic RLS, RLS is implemented based on user name or login ID.
After creating the role in Power BI Desktop, the results of the created role can be
validated within Power BI Desktop.
Perform the following steps to validate the role within Power BI Desktop:
1. Click the View as Roles button under the Security group of the Modeling
tab, as shown in Figure 5.39.
After clicking the OK button, the visuals in the report are filtered as per the
selected role, as shown in Figure 5.41.
Once the required roles are created in Power BI Desktop, you can deploy the
report containing roles to Power BI Service.
Managing Security
After creating a role in Power BI Desktop and publishing the report to Power BI
Service, you can manage RLS on your data model or dataset.
Row-Level Security in Power BI 243
Selecting the SECURITY option opens the RLS page wherein the left pane displays
the name of the roles created in Power BI Desktop, while the right pane allows
you to add members to a role selected in the left pane, as shown in Figure 5.45.
244 Chapter 5: Power BI on ERP Applications
Note
The Security option is available for dataset owners only. In a case where the dataset relates to a
group, the Security option is available for group administrators.
After creating a role in Power BI, you need to add members to the specified role
to allow them to see the filtered results specified in RLS. This section covers the
following topics:
–– Adding a member
–– Removing a member
Note
Roles are created or modified in Power BI Desktop, while members within the roles are added in
Power BI Service.
Adding a Member
Perform the following steps to add a member:
1. Open Power BI Service.
2. Navigate to the dataset that you have published by applying RLS.
3. Click the Ellipsis icon (…) next to the name of the dataset. A menu appears.
Row-Level Security in Power BI 245
4. Select the Security option from the menu. The Row-Level Security page
appears.
5. Select the desired role to which you want to add the member.
6. Enter the email address or name of the user that you want to add to the role.
Note
The member that you are adding to the role should belong to your organization. Groups that are
created within Power BI can not be added as a member.
Note
The value specified in the parentheses beside the role name represents the number of members
belonging to the role.
Removing a Member
Perform the following steps to remove a member:
1. Navigate to the Row-Level Security page.
2. Select the desired role from which you want to remove a member.
3. Click the Close icon (X) next to the name of the member to remove the
selected member, as shown in Figure 5.47.
246 Chapter 5: Power BI on ERP Applications
Similar to the context of validating the role in Power BI Desktop, you can validate
the working of the defined role in Power BI Service.
Perform the following steps to validate the roles within Power BI Service:
1. Expand the My Workspace option.
2. Click the Ellipsis icon (…) next to the report name you want to validate. A
menu appears.
3. Select the Test data as role option. The report is filtered based on the selected
role, as shown in Figure 5.48.
Sharing the Report 247
You can also filter the report based on other roles by selecting the other role from
the Now viewing as drop-down list.
Once you are done with all your work on the report, you can easily share it with
your colleagues.
The specified recipient will receive an email message that contains a link to the
report, and can open this report by clicking the received link.
Summary
Data visualization is the concept of presenting data through visuals, such as info-
graphics, charts, Sparkline, and geographic maps, etc. Data visualization pro-
vides an efficient and effective way to communicate concepts in general because
the human brain processes visualized information more easily than textual infor-
mation. A few of the most commonly used data visualization tools are Microsoft
Power BI, Tableau, and Qlik.
Introduced by Microsoft, Power BI is a business analytics reporting tool used
to create interactive business reports. It incorporates several analytics features to
provide business insights across an entire organization.
The top two competitors in the list of the business intelligence (BI) and data
visualization tools are Power BI and Tableau. These tools are easy to use and
support a large collection of visuals. These tools can be differentiated based on
several parameters, including infrastructure support, dashboards, data sources,
visualizations, customer/technical support, and pricing.
Some of the key features of Power BI include free sign-up, the ability to
import or view data from multiple data sources, the ability to obtain key metrics
of business, Quick insights, and data-driven decision making from anywhere. In
addition to the key features, it also supports several advanced features including
the ability to embed Power BI reports and dashboards into a Web App, real-time
streaming, support for natural language query, share content pack, and integra-
tion with Cortana.
There are two variants of Power BI including Power BI Desktop and Power BI
Service. Power BI Desktop is an on-premises version of Power BI, which allows
users to build reports, queries, and data connections. Power BI Desktop can be
installed on a local machine. You can connect to any data source and import the
required tables from the selected data source to Power BI Desktop. After importing
DOI 10.1515/9781547400720-006
252 Chapter 6: Conclusion
data into Power BI, you can create visuals based on that data. Once the required
visuals are added to the report, you can then save your report.
Power BI Service/Power BI Online is a business intelligence service that hosts
reports in the cloud (Microsoft Azure). The major difference between Power BI
Desktop and Power BI Service is that the former focuses on creating data while
the latter focuses on sharing data.
The major building blocks of Power BI Service are dashboards, reports, work-
books, and datasets.
A dashboard is a collection of tiles that can contain no tiles to many tiles.
A Power BI report is a collection of visualizations/visuals, such as charts and
graphs. A dataset is defined as a set of data that we import or connect to in Power
BI. A special type of dataset that can be imported or connected to Power BI is a
workbook.
Reports created in Power BI Desktop can be published to Power BI Service
where it can be accessed by other users in your organization.
Power BI can be integrated with Azure services to generate real-time insights into
your business. Azure APIs can be used to view the real-time business data in an
easy to understand and highly visualized manner. A Web app created on Azure
can be embedded with Power BI to visualize the report created in Power BI. The
real-time streaming feature of Power BI allows business analysts to collect real-
time information from different sources that provide time-sensitive data. For visu-
alizing real-time data, you are required to set up the real-time streaming dataset
in Power BI. Power BI supports three datasets including Push dataset, Streaming
dataset, and PubNub streaming dataset. You can push data into a dataset using
Power BI REST APIs, streaming dataset UI, and Azure Stream Analytics.
The Quick Insights feature of Power BI applies complex algorithms to the
dataset and locates different subsets of the dataset quickly within the specified
time frame.
Power BI can be integrated with a large number of data sources including Excel,
SQL Server, PostgreSQL, Dynamics CRM, MySQL, etc. One data source provided
by Microsoft is Microsoft SQL Server. Microsoft provides a large list of features
with this integrated solution because both are products of Microsoft. You can use
Power BI on Open Source Stack 253
both the Import and the DirectQuery options to import data into Power BI from
SQL Server. Once you import data into Power BI, you can establish a relationship
between tables.
You can also use Data Analysis Expressions (DAX) expressions to create calcu-
lated columns and tables. DAX is an expression (a set of functions, constants, and
operators) written to apply calculations on data available in your model. Once the
calculated tables and columns are ready, you can use the data to create visuals
for the report. You can easily publish this report to Power BI Service. To access
the report from anywhere, you can set up a gateway on the machine running SQL
Server. A gateway is like a bridge that establishes a connection between Power BI
and SQL Server. It is a piece of software that allows users to access data located
on an on-premises system or network so that it can be used in a cloud service
later. You can configure the data gateway for Power BI and add a data source to
it. You can also use the data refresh feature in Power BI. You can set a scheduled
refresh of data so that your Power BI report visualizes updated information. For
successful configuration of a scheduled refresh, you need to set up the gateway
connection, data source credentials, and schedule refresh.
A content pack is a complete package of your dashboard, report, and dataset
that can be shared with other users in your organization. You can create the
content pack and publish it to the team. You should have a Power BI Pro account
for creating and accessing an organizational content pack.
Power BI can also be integrated with one of the most advanced features of
Windows 10, that is, Cortana Intelligence Suite. When you integrate Cortana with
Power BI, Cortana also looks into Power BI dashboards and reports for related
keywords each time you make a query to Cortana.
You can set the visuals to display updated data by applying manual refresh
and scheduled refresh. To apply scheduled refresh, you need to set up a gateway
connection. As mentioned earlier, a gateway is a piece of software that allows
users to access data located on an on-premises system or network so that it can
be used in a cloud service later.
You can create a content pack that is a complete package of your dashboard,
report, and dataset and can be shared with other users in your organization. As
you publish the content pack, it becomes available in a centralized repository
called AppSource.
One of the most prominent and powerful features of Power BI is its integration
with Dynamics CRM. The ability of Microsoft Dynamics CRM to enhance customer
relationships for any organization make it a perfect choice for entrepreneurs to
choose it over other data sources.
Customer relationship management (CRM) manages interactions between a
company and its customers. A CRM solution simplifies processes and enhances
profitability in different divisions including sales, marketing, and service divisions.
It also centralizes customer information and automates marketing connections.
Microsoft Dynamics CRM improves customer relationships for any type of
organization. It is based on the extended relationship management (xRM) plat-
form and allows partners to customize it through the .NET based framework. It is
easy to use due to its simple user interface (UI).
Microsoft allows organizations to use Microsoft Dynamics CRM solution on
a trial basis and then requires a company to use paid services as per business
requirements. You can easily get data into Power BI using the Get Data button.
Once the data is in Power BI, you can create reports.
The Deep Linking feature allows users to view the information available on
the Dynamics CRM portal by clicking the available link.
Row-level security (RLS) is a feature of Power BI that filters the content based
on a user’s role. You can create roles in Power BI Desktop. These role definitions
are automatically published to Power BI Service when you publish your report to
Power BI Service.
After creating a role in Power BI, you need to add members to the specified
role to allow them to see the filtered results specified in RLS. Once you are done
with all your work on the report, you can easily share it with your colleagues.
Index
A Bar chart, clustered 94, 223, 226
Ability of Microsoft Dynamics CRM 211, 254 Basic radio button 25, 220
Ability to embed Power BI reports and B.BusinessEntityID 89
dashboards 6, 251 Blueprints 3
Access Power BI reports 136, 144 Border color 94
Accounts link 141 Business data, real-time 43, 252
Active users 233 Business insights 2, 251
Add button 113–15, 200–201, 235, 245 Business intelligence (BI) 4, 149, 151, 211,
Add column 21 251
Add data sources 112, 199 Business requirements 212–13, 254
Add grouping button 25 Button 24–25, 95–96, 98–99, 127, 134–37,
Add tile button 36, 52–53 185–87, 202–3, 214–16, 239–41
Add tile dialog box 53 –– account 214
Address 1, 239 –– configure 109, 195
Advanced features of Power BI 5–6 –– download 8
Advanced settings option 200 –– download icon 102
Allow Cortana to access 138–39 –– drop-down 166–67, 169–70
APIs 6, 43–44 –– finish 13, 155
App name text box 43 –– pin 62, 121
App workspaces 35 –– settings icon 110, 129
Apps 6, 32, 34–35, 37, 43–45 –– workspace 48
Apps to help users 34
AppSource 7, 129, 204, 254 C
Area chart, stacked 228–29 Calculated column 74, 84–86, 92–93, 158,
Arguments 83–84 162–65, 253
Authentication method 113 Calculated tables 74, 86–87, 158, 162, 253
Autodetect Calculations 73, 82, 84–87, 92, 162–63, 239,
–– button 75–76, 159 253
–– feature 74–75, 159, 161 Canvas 32–33
–– message box 76–77, 160 Cardinality 80–81, 161–62
Available data sources 15 Category 222, 230
Axis field and subtotal 94 C.CustomerID 89
Azure 7, 133, 252 Change 121, 124, 126–27, 133, 167, 169–71,
–– active directory 7, 133, 142–43 174, 176–77, 179–80
–– APIs 43, 252 Change button 11
–– logic apps 101, 189 Channel name text box 49
–– services 43, 252 Charts 1, 3, 6, 36, 48, 54, 94, 116, 251–52
–– stream analytics 48, 252 –– donut 231–32
Checkbox 9, 67, 126, 136, 172, 203, 240, 248
B –– active 160–61
Background 167–69 –– privacy statement 106, 193
Background option 167, 169, 171, 174–78, –– relationship columns 70
180, 184–85 Chiclet slicers 223–24, 228, 231
Backstage view 29, 96, 185 City 94, 177, 179–80, 226–27
DOI 10.1515/9781547400720-007
256 Index
Dynamics CRM 5, 149, 211, 217, 219–20, 249, First name text box 213, 234
252, 254 Firstname 85, 92, 163–64
–– benefits of Microsoft 212, 249 FirstName column 85, 164
Dynamics CRM portal 233, 249, 254 Focus mode 63
Font 169
E Font size 94, 169
Edit 36–37, 74, 159 Format 94, 166–68, 170, 177, 179, 223–24
Edit queries 19, 23 –– visualized 3
Elements, syntax 82–83 Format icon 27, 133, 170, 173, 175, 177, 179,
Ellipsis icon 35, 58–59, 62, 112, 123–24, 189, 181
199, 243–44, 246 FORMAT IMAGE pane 94, 167
Embed Power BI reports 6, 43, 64, 251 Formatting settings 27–28, 170, 173, 175,
Embed Power BI reports and dashboards 6 177, 179, 181
Employees 86–87, 163, 222, 226 Formatting toolbar 168–69
–– revenue by 145, 222 Formula 82–84
End-users 2 Formula bar 85, 87, 92, 163
EOMONTH 224 Function name syntax 83–84
ERP applications 211–12, 214, 216, 218, 220, Functions 46, 82–85, 87, 100, 162–63, 211,
222, 224, 226, 228 239, 253
Error 72–73, 101–2
Excel 3, 35, 37–38, 82, 149, 252 G
= Gateway 99–101, 104–12, 115, 149, 189,
191–99, 253–54
F –– available 110–11, 197–98
Features –– configure/register 107, 194
–– advanced 6, 41, 251, 253 –– configuring 99–100, 107, 194
–– linking 233, 249, 254 –– enterprise 100
Field blank 70, 89 –– installing 101
Fields 17, 26–28, 72, 78, 81, 84–85, 94, 170 –– new 108, 195
–– product 27 –– selected 111, 198
–– specified 71, 91 Gateway cluster settings 111–12, 198
–– totaldue 179, 181 GATEWAY CLUSTERS 110–11, 197–98
FIELDS pane 17–18, 26–27, 68–69, 71, Gateway configuration 110, 197
85–87, 91, 94–95, 163–64, 221 Gateway connection 124–25, 189, 202,
File 3, 9, 16, 123, 192 253–54
–– msi 9, 152 Gateway connection node 125, 202
–– selected 9, 152 Gateway demogateway 109, 196
File name 9 Gateway link 112, 199
File tab 29, 96, 185 Gateway registration 108, 195
Filter context 84 Gateway setup 100–101, 103, 105, 107, 109,
Filter direction 161–62 111, 113, 115, 189
Filtered results 226, 229, 244, 254 Gateway text box 107, 194
Filtering 48, 82 Gateway type 104, 191
Filters 81, 83–84, 222–23, 226, 229–30, 237, Gateways option 110–11, 197–98
240, 247, 254 General option 168–69, 173, 175, 178–79,
–– security 240 182
Filters content 237, 249
Index 259
Getting data 65, 67, 69, 71, 73, 155, 157, 219, Installing Microsoft Power BI Desktop 12
221 Installing npgsql 154
Graphs 1, 6, 36, 116, 252 Installing npgsql connector 151, 153
Group 24–25, 129–30, 204–5, 228, 244–45 Installing on-premises data gateway 189
–– security 129, 204, 240 Installing Power BI Desktop 8
Group by drop-down list 25 Integration 7, 150, 251, 254
Grouping 25 Interactive reports 5, 7, 65, 151
Groups radio button 130, 205 Interface, easy-to-use 3
Internalemailaddress 239
H Introducing data visualization 1–2, 4, 6, 8,
Help 33, 35, 43, 86, 123 10, 12, 14, 16, 18
Help of Power BI 2, 5
Help users 38, 123 K
Home tab 19–20, 23, 26, 66, 69, 94–95, 159, Key features 5, 251
161, 167–68 Key features of Power BI 4–6, 251
Https 8, 43, 84, 101–2, 136, 152, 189, 213 Key metrics 5, 251
Keywords 119–20, 133, 145, 253
I, J
Icon 85, 87, 92, 124, 138, 164, 166, 239 L
–– visual 61, 121 Languages 212, 214, 249
Icon buttons 33 Last name text box 213, 234
–– labeled 35, 37 Lastname 85, 92, 164
Image 94, 130–32, 167, 205–7 LastName column 85, 164
–– selected 132, 167, 207 LastName fields 163
Image button 94, 167 Launch Microsoft Power BI desktop 13
Import 65, 69, 74, 123, 157, 251–53 Launch Power BI desktop 13–14, 66, 69, 89,
Import data 219, 238, 253 95, 155
Import option 65, 72–73, 88, 95, 149 Launch Power BI service 110, 124, 129, 197,
Import radio button 66, 95 201, 204
Imported data 65 License agreement 10, 152–53
Importing data 118, 212 Limitations 72–73
Importing data message box 118 Linetotal 83
In-depth information 149–50, 210 Link 8, 14, 43, 84, 102–3, 136, 152, 189–90,
Infrastructure support 3, 251 248–49
Insights 1, 4–5, 58, 60–61, 63–64, 251 –– available 233, 249, 254
Insights feature of Power BI 64, 252 –– sample data 218
Insights message box 60 –– samples 116–17
Insights option 59–60 –– upload 131, 206
Install 8, 100–102, 104–6, 152, 189, 191–93, Load 16, 67, 70, 73, 90, 95, 220
217, 253 Load button 16, 67, 70, 90, 95, 157, 220
Install button 11, 106, 154, 193 Load pane 68
Install Microsoft Power BI Desktop 11 Loans 222, 230
Install npgsql 154 Loans by category 230–31
Install page 105, 192 Loans summary 222, 231–32
Install Power BI Desktop 8 Location 16, 30, 65, 96, 131, 167, 185, 227,
Installation 104–7, 152, 154, 191–94 234
–– start data gateway 103, 190 Login 43
260 Index
–– total 82–83 Sp.CountryRegionCode 89
Sales salesorderheader table 170, 177, Specifying data source settings 113, 199
179–81 Specifying installation folder 106, 193
Sample data 217, 219 Specifying username 114, 200
Saving 29–30, 96–97, 185 Specifying values 46, 51
Schedule refresh 124, 126, 189, 203, 253 SQL Server 5, 65–67, 69, 71, 73, 110, 112,
Schedule refresh icon 124–25, 189, 201–2 149–50, 252–53
Scheduled refresh 101, 123–24, 127, 188–89, SQL Server data source 112
201, 203, 210, 253–54 SQL Server database dialog box 66–67,
Scheduled refresh node 126, 203 69–70, 89–90, 95
Search engine 116 SQL Server database tables in Power BI 73
Security 73, 238 SQL Server option 66, 69, 89, 95, 112
Security option 243–45 SQL Server reporting services (SSRS) 36, 212
Selected gateway cluster 110, 197 SQL statement 70, 89
Server text box 66, 69, 89, 95, 112, 156, 199 SSRS (SQL Server Reporting Services) 36,
Set 65, 80–82, 94, 123–24, 166–71, 181–82, 212
184, 188–89, 252–54 State name 175
Setting cardinality of relationships 74 States 80, 85, 89, 94, 164, 181
Setting gateway connection 126, 202 –– dragged 94
Setting refresh frequency 128 Status 106, 109, 125–26, 167, 169–71, 174,
Settings 110–11, 124–26, 139–40, 166–71, 176–77, 179–80, 202–3
173–84, 189, 197–98, 200, 202–3 Step-by-step procedure 4, 64, 150
Settings button 217 Stepname 232
Settings icon 140–41, 197, 204, 208 Stream 48, 50–51
Settings option 124, 138–39, 189 Streaming, real-time 6, 47, 49, 51, 53, 55,
Settings page 125, 139, 202 57–59, 61, 63
Settings window 141 Streaming dataset option 48
Setup wizard 9–13, 152, 155 Streaming dataset UI 48, 252
Setup wizard page 9, 13, 152, 155 Strings 85, 163
Share 7–8, 35, 39, 98, 101, 134, 242, Subsets 5, 58, 64, 100, 123, 188, 252
247–48, 254 Subtitle 56
Share button 247–48 Subtotal 94, 177, 180–81
Share content pack 6–7, 251 Subtotal field 177, 181
Share reports 7 Success dialog box 118–19
Sign 5, 14, 102, 107–8, 135–37, 189, 194, Summary 41, 64, 149, 210, 249
213, 215 Support 3, 6, 73, 129, 212, 251
Sign in button 14, 107–8, 134–35, 137, 143, –– customer/technical 4, 251
194–95 –– technical 4
Sign in dialog box 14, 134–35 Support tickets 4
Sign in text box 134, 136 Syntax 82
Slicer 26–27, 172, 175, 222–23, 226, 228–30 System
Slider 126, 133, 167, 169–71, 174, 176–77, –– object-relational database
179–80, 184, 203 management 151, 253
Sources 47–49, 101, 211, 221, 252 –– on-premises 100, 150, 189, 253–54
–– back-end data 73–74 System users 222
–– multiple 3 Systemusers 239
–– multiple data 5, 8, 123, 251
264 Index
VISUALIZATIONS pane 26–27, 94, 121, Windows 6, 19, 21, 23–24, 70, 90, 108, 140,
169–70, 172, 175, 177, 179–80 145
VISUALIZATIONS pane and selecting –– confirmation 236–37
fields 86, 164 –– feature of 7, 133, 140
Visualizations/visuals 36, 252 –– gateways 110–11, 197–98
Visualizing 48, 252 Wizard 13, 213
Visuals 1, 26, 28–29, 47–48, 65, 72–74, –– on-premises data gateway installation 107,
123–24, 226, 251–54 194
–– creating 26, 82, 85, 162 –– on-premises data gateway installer 103–4,
–– desired 93, 95 190–91
Visuals refresh rate 73 Work area 26–28
Workbooks 31, 35, 38, 101, 252
W, X Workspace window in Power BI Service 123
Web app 6, 43, 45, 47, 64, 251–52 Workspaces 31–33, 35–38, 98, 243
Web app for Power BI 64
WeekNo 224 Y, Z
WEEKNUM 224 YEAR 84, 224–25