Professional Documents
Culture Documents
83ccab741bc75a2c8fb3b31687fd3b5d
83ccab741bc75a2c8fb3b31687fd3b5d
In Power BI Desktop and in the Power BI service, the report editor is where you design the reports your consumers
see, with charts, tables, maps, and other visuals. It's similar in the two environments. Typically you start creating a
report in Power BI Desktop. Then you publish it to the Power BI service, where you can continue modifying it. The
Power BI service is also where you create the dashboards based on your reports.
After you create your dashboards and reports, you distribute them to your report consumers. Depending on how
you share them, your end users can interact with them in Reading view in the Power BI service, but not edit them.
Read more about what report consumers can do in the Power BI service.
This video shows the report editor in Power BI Desktop. This article also shows the report editor in Power BI
Desktop.
https://www.youtube.com/embed/IkJda4O7oGs
In the Power BI service, the report editor is only available in Editing View. To open a report in Editing view, you
must be a report owner or creator, or be a contributor to the workspace that houses the report.
The Filters pane displays any filters on the visual, the page, or on all pages. In this case, there are page-level
filters, but no visual-level filters.
The top of the Visualization pane identifies the type of visual in use. In this example, a Clustered column chart.
The bottom of the Visualization pane has three tabs:
Fields displays the fields in the visual. You may have to scroll down to see all the details. This chart is using
StoreNumberName and This Year Sales.
Format To display the format pane for the selected visualization, select the paint roller icon.
Analytics To display the Analytics pane, select the magnifying glass icon.
The Fields pane lists all the available tables in the data model. When you expand a table, you see the fields in that
table. The yellow check mark lets you know that at least one field from that table is in a visualization.
Read on for details about each pane.
Here's where you select a visualization type. The small icons show the different types of visualizations you can
create. In the image above, the bubble chart is selected. If you start building a visualization by selecting fields
without selecting a visualization type first, Power BI picks the visualization type for you. You can keep Power BI's
selection, or change the type by selecting a different icon.
You can download custom visualizations to Power BI Desktop. Their icons will show up in this pane, too.
Manage the fields in a visualization
The buckets (sometimes called wells) in this pane vary depending on the type of visualization you've selected. For
example, if you've selected a bar chart, you see Axis, Legend, and Values. When you select a field or drag it onto the
canvas, Power BI adds that field to one of the buckets. You can also drag fields from the Fields list directly into the
buckets. Some buckets are limited to certain types of data. For example, Values won't accept non-numeric fields.
So if you drag a Categor y field into the Values bucket, Power BI changes it to Count of Categor y .
For more information, see Add visualizations to a Power BI report.
This part of the pane also has options to control drillthrough and filter behavior.
Format your visuals
Select the paint roller icon to display the Format pane. The options available depend on the type of visualization
selected.
The formatting possibilities are extensive. To learn more, explore on your own, or visit these articles:
Customizing visualization title, background, and legend
Color formatting
Customizing X-axis and Y-axis properties
Add analytics to your visualizations
Select the magnifying glass icon to display the Analytics pane. The options available depend on the type of
visualization selected.
With the Analytics pane in the Power BI service, you can add dynamic reference lines to visualizations, and provide
focus for important trends or insights. To learn more, see Analytics pane in Power BI Desktop.
In Power BI Desktop, you also have options to show/hide fields, add calculations, etc.
IC O N M EA N IN G
Measure group
Hierarchy of fields: Select the arrow to see the fields that make
up the hierarchy. Watch this Power BI video on YouTube about
Creating and working with hierarchies for more information.
Identity field: Fields with this icon are unique fields, set to
show all values, even if they have duplicates. For example,
your data might have records for two different people named
'Robin Smith', and each will be treated as unique. They won't
be summed.
Next steps
Create a report
More about reports in the Power BI service, Power BI Desktop, and Power BI mobile apps.
Basic concepts for Power BI designers
More questions? Try the Power BI Community
What are paginated reports in Power BI Premium?
8/13/2020 • 6 minutes to read • Edit Online
Paginated reports are designed to be printed or shared. They're called paginated because they're formatted to fit
well on a page. They display all the data in a table, even if the table spans multiple pages. They're also called pixel
perfect because you can control their report page layout exactly. Power BI Report Builder is the standalone tool
for authoring paginated reports. Paginated reports are based on the RDL report technology, long the standard
report format in SQL Server Reporting Services.
Paginated reports often have many pages. For example, this report has 563 pages. Each page is laid out exactly,
with one page per invoice, and repeating headers and footers.
You can preview your report in Report Builder, then publish it to the Power BI service, app.powerbi.com. You need
a Power BI Pro license to publish a report to the service. You can publish and share paginated reports in your My
Workspace or in workspaces, as long as the workspace is in a Power BI Premium capacity. Also, a Power BI admin
needs to enable paginated reports in the Premium capacities section of the Power BI admin portal.
Next steps
Install Power BI Report Builder from the Microsoft Download Center
Tutorial: Create a paginated report
Online course: Power BI Paginated Reports in a Day
Enter data directly in a paginated report
Tutorial: Embed Power BI paginated reports into an application for your customers
Tutorial: From Excel workbook to stunning report in
Power BI Desktop
8/13/2020 • 8 minutes to read • Edit Online
In this tutorial, you build a beautiful report from start to finish in 20 minutes!
Your manager wants to see a report on your latest sales figures. They've requested an executive summary of:
Which month and year had the most profit?
Where is the company seeing the most success (by country)?
Which product and segment should the company continue to invest in?
Using our sample finance workbook, we can build this report in no time. Here’s what the final report will look like.
Let’s get started!
Prerequisites
Before you start, you need to download Power BI Desktop.
If you're planning to publish your report to the Power BI service and you aren't signed up yet, sign up for a free
trial.
2. Select the Units Sold column. On the Home tab, select Data Type , then select Whole Number . Choose
Replace current to change the column type.
The top data cleaning step users do most often is changing data types. In this case, the units sold are in
decimal form. It doesn’t make sense to have 0.2 or 0.5 of a unit sold, does it? So let’s change that to whole
number.
3. Select the Segment column. On the Transform tab, select Format , then select UPPERCASE .
We also want to make the segments easier to see in the chart later. Let’s format the Segment column.
4. Let's shorten the column name from Month Name to just Month . Double-click the Month Name column,
and rename to just Month .
5. In the Product column, select the dropdown and clear the box next to Montana .
We know the Montana product was discontinued last month, so we want to filter this data from our report
to avoid confusion.
6. You see that each transformation has been added to the list under Quer y Settings in Applied Steps .
7. Back on the Home tab, select Close & Apply . Our data is almost ready for building a report.
You see the Sigma symbol in the Fields list? Power BI has detected that those fields are numeric. Power BI
also indicates the date field with a calendar symbol.
6. Drag the Date field from the Financials table to the Date field in the Calendar table to join the tables, and
create a relationship between them.
Build your report
Now that you've transformed and loaded your data, it's time to create your report. In the Fields pane on the right,
you see the fields in the data model you created.
Let’s build the final report, one visual at a time.
3. In the Fields section of the Visualizations pane, select the drop-down in the Axis value. Change Date from
Date Hierarchy to Date .
Power BI updates the column chart to show profit for each month.
Now you can easily see that December 2014 had the most profit.
Visual 3: Profit by Country
Create a map to see which country had the highest profits.
1. From the Fields pane, drag the Countr y field to a blank area on your report canvas to create a map.
2. Drag the Profit field to the map.
Power BI creates a map visual with bubbles representing the relative profit of each location.
Looks like the company should continue to invest in the Paseo product and target the Small Business and
Government segments.
Visual 5: Year slicer
Slicers are a valuable tool for filtering the visuals on a report page to a specific selection. In this case, we can create
a slicer to narrow in on performance for each month and year.
1. In the Fields pane, select the Date field and drag it to the blank area on the left of the canvas.
2. In the Visualizations pane, choose Slicer .
3. In the Fields section of the Visualizations pane, select the drop-down in Fields . Remove Quarter and Day so
only Year and Month are left.
4. Expand each year and resize the visual, so all months are visible.
Now if your manager asks to see just 2013 data, you can use the slicer to switch between years, or specific months
of each year.
Extra credit: Format the report
If you want to do some light formatting on this report to add more polish, here are a few easy steps.
Theme
On the View ribbon, change the theme to Executive .
Next steps
Tutorial: Analyze sales data from Excel and an OData feed
More questions? Try the Power BI Community.
Tutorial: From Excel workbook to a report in the
Power BI service to Microsoft Teams
8/13/2020 • 5 minutes to read • Edit Online
Your manager wants to see a report on your latest sales and profit figures by the end of the day. But the latest data
is in various third-party systems and files on your laptop. In the past, it’s taken hours to create visuals and format a
report, and you’re beginning to feel anxious.
No worries. With Power BI, you can create a stunning report and share it in Microsoft Teams in no time!
In this tutorial, we upload an Excel file, create a new report, and share it with colleagues in Microsoft Teams, all from
within Power BI. You'll learn how to:
Prepare your data in Excel.
Download sample data.
Build a report in the Power BI service.
Pin the report visuals to a dashboard.
Share a link to the dashboard.
Share the dashboard in Microsoft Teams
NOTE
To follow along with the rest of this tutorial, download the Financial Sample workbook.
1. To get started, sign in to the Power BI service. If you haven’t signed up, you can do so for free.
2. In My workspace , select New > Upload a file .
3. Select Local File , browse to where you saved the Financial Sample Excel file, and select Open .
4. On the Local File page, select Impor t .
Now you have a Financial Sample dataset. Power BI also automatically created a blank dashboard. If you
don't see the dashboard, refresh your browser.
5. You want to create a report. Still in My workspace , select New > Repor t .
6. In the Select a dataset to create a repor t dialog box, select your Financial Sample dataset > Create .
2. Now you can begin to create visualizations. Let's say your manager wants to see profit over time. In the
Fields pane, drag Profit to the report canvas.
By default, Power BI displays a column chart with one column.
TIP
If your chart values don't look as you expect, check your aggregations. For example, in the Values well, select the
Profit field you just added and ensure the data is being aggregated the way you'd like it. In this example, we're using
Sum .
Create a map
Your manager wants to know which countries are the most profitable. Impress your manager with a map
visualization.
1. Select a blank area on your report canvas.
2. From the Fields pane, drag the Countr y field to your report canvas, then drag the Profit field to the map.
Power BI creates a map visual with bubbles representing the relative profit of each location.
Looks like the European countries are outperforming the North American countries.
Create a visual showing sales
What about displaying a visual showing sales by product and market segment? Easy.
1. Select the blank canvas.
2. In the Fields pane, select the Sales , Product , and Segment fields.
Power BI creates a clustered column chart.
3. Change the type of chart by choosing one of the icons in the Visualizations menu. For instance, change it
to a Stacked column char t .
4. To sort the chart, select More options (...) > Sor t by .
Spruce up the visuals
Make the following changes on the Format tab in the Visualizations pane.
1. Select the Profit by Date column chart. In the Title section, change Text size to 16 pt . Toggle Shadow to
On .
2. Select the Sales by Product and Segment stacked column chart. In the Title section, change title Text
size to 16 pt . Toggle Shadow to On .
3. Select the Profit by Countr y map. In the Map styles section, change Theme to Grayscale . In the Title
section, change title Text size to 16 pt . Toggle Shadow to On .
Pin to a dashboard
Now you can pin all of your visuals to the blank dashboard that Power BI created by default.
1. Hover over a visual and select Pin visual .
2. You need to save your report before you can pin a visual to the dashboard. Give your report a name and
select Save .
3. Pin each visual to the dashboard that Power BI created, Financial Sample.xlsx .
4. When you pin the last visual, select Go to dashboard .
5. Power BI added a placeholder Financial Sample.xlsx tile to the dashboard automatically. Select More
options (...) > Delete tile .
6. Rearrange and resize the tiles any way you want.
The dashboard and report are ready.
2. In the Share dashboard page, enter the email addresses of the recipients in the Enter email addresses
box and add a message in the box below it.
3. Decide which of these options you want, if any:
Allow recipients to share your dashboard .
Allow recipients to build new content using the underlying datasets .
Send an email notification to recipients.
4. Select Share .
3. The link appears in the Posts for that person, group, or channel.
Next steps
Now that you've created a basic report in the Power BI service, how about creating a report in Power BI
Desktop? Try the tutorial, From Excel workbook to stunning report in Power BI Desktop.
More questions? Try the Power BI Community.
Power BI Paginated Reports in a Day course
8/13/2020 • 4 minutes to read • Edit Online
The Power BI Paginated Repor ts in a Day video-based course empowers you as a report author with the
technical knowledge required to create, publish, and distribute Power BI paginated reports. It comprises almost 4
hours 20 minutes of viewable content—available on demand, and is free of charge. There's also a self-study kit that
you can download and use to complete eight hands-on labs.
Specifically, the course targets:
Power BI report authors
Excel analysts
Report authors with SQL Server Reporting Services (SSRS) skills, requiring a refresher
Crystal Reports authors
After you complete the course, you'll know how to:
Design report layouts
Connect to data sources to retrieve report data
Work with parameters
Visualize report data
Add interactive features
Publish, consume, deliver, and embed paginated reports
Watch the welcome and introduction video to start the course.
Course outline
The course of 24 videos is organized into eight modules. We recommend you watch the videos in the recorded
sequence, starting with video 01 and ending with video 24.
Introduction
Video 01: Welcome and Course Introduction
Module 01: Power BI Repor ting
Video 02: Power BI Reporting - Part 1
Video 03: Power BI Reporting - Part 2
Module 02: Designing Repor t Layouts
Video 04: Designing Report Layouts - Part 1
Video 05: Designing Report Layouts - Part 2
Video 06: Designing Report Layouts - Part 3
Video 07: Designing Report Layouts - Part 4
Module 03: Retrieving Repor t Data
Video 08: Retrieving Report Data - Part 1
Video 09: Retrieving Report Data - Part 2
Video 10: Retrieving Report Data - Part 3
Module 04: Working with Parameters
Video 11: Working with Parameters - Part 1
Video 12: Working with Parameters - Part 2
Video 13: Working with Parameters - Part 3
Module 05: Visualizing Repor t Data
Video 14: Visualizing Report Data - Part 1
Video 15: Visualizing Report Data - Part 2
Video 16: Visualizing Report Data - Part 3
Video 17: Visualizing Report Data - Part 4
Module 06: Adding Interactive Features
Video 18: Adding Interactive Features - Part 1
Video 19: Adding Interactive Features - Part 2
Module 07: Beyond Repor t Development
Video 20: Beyond Report Development - Part 1
Video 21: Beyond Report Development - Part 2
Module 08: Bonus Content
Video 22: Bonus Content: Review
Video 23: Bonus Content: Evolution of Paginated Reporting
Video 24: Bonus Content: Lowering the Barrier to Entry
Self-study kit
You can download and set up a self-study kit, which consists of the presentation content and eight hands-on labs:
1. Use this link to download the self-study kit (.zip) locally to your PC.
2. Open the file properties, and check "unblock" (Windows may flag the file as potentially untrusted).
3. Extract the file contents to a folder in your file system. We recommend you create a folder that will be easy to
find, perhaps naming it Training . The lab documents will refer to this location as <CourseFolder> .
Once extracted, you'll have the PowerBIPRIAD folder, and within it you'll find the following folders:
Lab01A (and all other lab folders). The lab folders contain the lab document and lab resources, which may
include assets and solution files.
MySolution : This folder stores your solution files. The lab instructions will direct you when to use it.
Presentation : This folder contains the course presentation file, which is available as a PDF document.
Get started with the kit
We recommend watching the online course first. You can refer back to the presentation theory by opening the
<CourseFolder>\PowerBIPRIAD\Presentation\PowerBIPRIAD_Presentation.pdf file. The presentation
includes eight lab slides, which indicate when it's time to put the theory to practice. It also includes many resource
links to help you find related content.
When you're ready to commence the first lab, open the
<CourseFolder>\PowerBIPRIAD\Lab01A\PowerBIPRIAD_Lab01A.pdf file. This document guides you to
sign in to the Power BI service, upload a dataset, and then install Power BI Report Builder.
NOTE
You're responsible for having your own Power BI account. If you don't already have one, see Sign up for Power BI as an
individual.
You must sign in to Power BI to publish a Power BI Desktop file to a workspace. The publication results in a dataset that's
used as a report data source. You don't need a Power BI Pro license or a Power BI Premium subscription to use a dataset as
a report data source.
Some lab tasks involve publishing your paginated report to a workspace. You can only open a paginated report when it's
been saved to a workspace on dedicated capacity, which has the paginated reports workload enabled. If you don't have
access to a suitable workspace, you'll be provided with a link to watch a video that demonstrates report publication instead.
Instructor kit
Use this link to download the instructor kit (.zip) locally to your PC.
Next steps
For more information related to this article, check out the following resources:
Tutorial: Create a paginated report and upload it to the Power BI service
Questions? Try asking the Power BI Community
Suggestions? Contribute ideas to improve Power BI
Tutorial: Create a paginated report and upload it to
the Power BI service
8/13/2020 • 9 minutes to read • Edit Online
In this tutorial, you connect to a sample Azure SQL database. Then you use a wizard in Power BI Report Builder to
create a paginated report with a table that wraps to multiple pages. Then you upload the paginated report to a
workspace in a Premium capacity in the Power BI service.
Prerequisites
Here are the prerequisites for creating the paginated report:
Install Power BI Report Builder from the Microsoft Download Center.
Follow the quickstart Create an Azure SQL database sample in the Azure portal. Copy and save the value in
the Ser ver name box on the Over view tab. Remember the user name and password you created in Azure.
Here are the prerequisites for uploading your paginated report to the Power BI service:
You need a Power BI Pro license.
You need a workspace on the service in a Power BI Premium capacity. It has a diamond icon next to the
workspace name.
2. In the left pane, verify that New Repor t is selected, and in the right pane, select Table or Matrix Wizard .
3. In the Choose a dataset page, select Create a dataset > Next .
14. Select Test Connection . You see the Test results message that Test connection succeeded .
15. Select OK > OK .
Now in the Connection string box, Report Builder displays the connection string you just created.
16. Select OK .
17. In the Choose a connection to a data source page, you see "(in this Report)" under the data source
connection you just created. Select that data source > Next .
18. Type the same user name and password in the box.
19. In the Design a quer y page, expand SalesLT, expand Tables, and select these tables:
Address
Customer
Product
ProductCategory
SalesOrderDetail
SalesOrderHeader
Because Relationships > Auto Detect is selected, Report Builder detects the relationships between these
tables.
20. Select Run Quer y . Report Builder displays the Quer y results .
23. In the Arrange fields page, drag these fields from the Available fields box to the Row groups box:
CompanyName
SalesOrderNumber
Product_Name
24. Drag these fields from the Available fields box to the Values box:
OrderQty
UnitPrice
LineTotal
Report Builder automatically made the fields in the Values box sums.
25. In the Choose the layout page, keep all the default settings, but clear Expand/collapse groups . In
general, the expand/collapse groups feature is great, but this time you want the table to wrap to multiple
pages.
26. Select Next > Finish . The table is displayed on the design surface.
1. In the Report Data pane, you see the embedded Azure data source and the embedded dataset based on it,
both of which you created.
2. The design surface is about 6 inches wide. On the design surface, you see the matrix, displaying column
headings and placeholder values. The matrix has six columns and appears to be only five rows tall.
3. Order Qty, Unit Price, and Line Total are all sums, and each row group has a subtotal.
You still don't see actual data values. You need to run the report to see them.
4. In the Properties pane, the selected matrix is called Tablix1. A tablix in Report Builder is a data region that
displays data in rows and columns. It can be either a table or a matrix.
5. In the Grouping pane, you see the three row groups you created in the wizard:
CompanyName
Sales Order
Product Name
This matrix doesn't have any column groups.
Run the report
To see the actual values, you need to run the report.
1. Select Run in the Home toolbar.
Now you see the values. The matrix has many more rows than you saw in Design view! Note that Report
Builder says it's page 1 of 2? . Report Builder loads the report as quickly as possible, so it only retrieves
enough data for a few pages at a time. The question mark indicates that Report Builder hasn't loaded all the
data yet.
2. Select Print Layout . The report will be in this format when you print it. Report Builder now knows the
report has 33 pages, and has automatically added a date and time stamp in the footer.
3. Drag the right edge of Product name until the column ends at 3 3/4 inches.
Now the matrix is almost as wide as the print area.
Format the currency
If you noticed when you ran the report, the dollar amounts aren't formatted as currency yet.
1. Select the upper-left [Sum(OrderQty)] cell, hold down the Shift key, and select lower-right [Sum(LineTotal)]
cell.
2. On the Home tab, select the dollar sign ($ ) currency symbol, then select the arrow next to Placeholder
styles > Sample Values .
2. Select the top Static bar in the Row Groups . You see that the Company Name cell in the matrix is selected.
3. In the Proper ties pane, you're looking at the properties for Tablix Member . Set KeepWithGroup to
After and RepeatOnNewPage to True .
It's time to run the report and see how it looks now.
4. Select Run on the Home tab.
5. Select Print Layout , if it's not already selected. Now the report has 29 pages. Scroll through a few pages.
You see the currency is formatted, the columns have headings on every page, and the report has a footer
with page numbers and date and time stamp on every page.
6. Save the report to your computer.
If you can't turn it on, you need to ask your Power BI admin to give you permission to add the workspace to
the dedicated Premium capacity.
4. Choose an available dedicated capacity for this workspace , if necessary > Save .
If the workspace isn't in a Premium capacity, when you try to upload your report you see the message,
"Unable to upload paginated report." Contact your Power BI administrator to move the workspace.
5. In your new workspace, select Get Data .
6. In the Files box > Get .
7. Select Local File , navigate to where you saved the file > Open .
Power BI imports your file, and you see it under Repor ts on the App list page.
10. Select Edit credentials and enter the credentials you used in Azure when you created the Azure database.
11. Now you can view your paginated report in the Power BI service.
Next steps
What are paginated reports in Power BI Premium?
Get samples for Power BI
8/13/2020 • 12 minutes to read • Edit Online
Say you're new to Power BI and want to try it out but don't have any data. Or maybe you'd like to see reports that
illustrate some of the capabilities of Power BI. We've got you covered.
Power BI offers different kinds of samples, for different purposes:
A Power BI repor t (.pbix file) that you can view in the Data Stories Gallery, open and explore in Power BI
Desktop, or upload to the Power BI service.
A sample app that you download from AppSource, also right in the Power BI service. Apps include
dashboards, reports, and datasets. You can modify them, then distribute them to your colleagues.
Eight original built-in samples in the Power BI service as content packs, with dashboards, reports, and
datasets. You install them right in the Power BI service. The built-in samples are also available as Power BI
reports (.pbix) and Excel workbooks (.xlsx).
Excel workbook versions of the built-in samples, containing the data model and Power View sheets. You can
explore or edit the data model in Excel, use the Excel workbook as a data source for a Power BI report. You can
also upload the workbook as an Excel file and display the Excel visuals and PivotTables in Power BI reports.
Also a Financial data sample workbook , a simple flat table in an Excel file available for download. It
contains anonymized data with fictitious products, with sales divided by segments and countries/regions. It
makes a useful basic data source for a Power BI report.
Our online documentation uses these same samples in tutorials and examples, so you can follow along.
Because you installed it, you can also open the workspace and edit the elements of the app. Select the Edit pencil
icon to open the workspace.
Now you see the dashboard, report, and dataset from the app in the list view of the workspace. Here in the
workspace, you can edit each of them.
If you want to, you can distribute this app to anyone in your organization. Select Update app .
5. Select one of the samples to open a description of that sample, and choose Connect .
6. Power BI imports the content pack and adds a new dashboard, report, and dataset to your current
workspace. Use the samples to take Power BI for a test run.
Now that you have data, you're on your way. Try out some of our tutorials using the sample content packs or just
open the Power BI service and explore.
Download original sample Power BI files
Each of the sample content packs is also available as Power BI .pbix file. The .pbix files are designed to be used
with Power BI Desktop.
1. Download the files individually using the links below. Selecting these links saves the file automatically to
your Downloads folder.
Customer Profitability Sample PBIX
Human Resources Sample PBIX
Procurement Analysis Sample PBIX
Retail Analysis Sample PBIX
Sales and Marketing Sample PBIX
Supplier Quality Analysis Sample PBIX
2. In Power BI Desktop, select File > Open and navigate to the location where you saved the sample .pbix
file.
3. Select the .pbix file to open it in Power BI Desktop.
Download sample Excel files
Each of the sample content packs is also available as an Excel workbook. The Excel workbooks are designed to be
used with the Power BI service.
1. Download the files individually using the links below, or download a zip file of all the sample files. If you're
an advanced user, you might want to download the Excel workbooks to explore or edit the data models.
Customer Profitability Sample
Human Resources Sample
Opportunity Tracking Sample
Procurement Analysis Sample
Retail Analysis Sample
Sales and Marketing Sample
Supplier Quality Analysis Sample
2. Save the downloaded file. Where you save the file makes a difference.
Local - If you save your file to a local drive on your computer or another location in your
organization, from Power BI, you can import your file into Power BI. Your file remains on your local drive,
so the whole file isn't imported into Power BI. What happens is a new dataset is created in your Power BI
site and data, and in some cases the data model, are loaded into the dataset. If your file has any reports,
those reports appear in your Power BI site under Reports.
OneDrive - Business – If you have OneDrive for Business and you sign into it with the same
account you sign into Power BI with, OneDrive for Business is by far the best place to keep your work in
Excel, Power BI, or a .CSV file in-sync with your dataset, reports, and dashboards in Power BI. Because both
Power BI and OneDrive are in the cloud, Power BI connects to your file on OneDrive about every hour. If
any changes are found, your dataset, reports, and dashboards are automatically updated in Power BI.
SharePoint Team-Sites Saving your Power BI files to SharePoint – Team Sites is much the same
as saving to OneDrive for Business. The biggest difference is how you connect to the file from Power BI.
You can specify a URL or connect to the root folder.
3. Open the Power BI service (app.powerbi.com) and sign in.
4. Navigate to your My Workspace or to another workspace, or create a workspace just for the sample.
5. In the bottom-left corner of the navigation pane, select Get data .
6. On the Get Data page that appears, select Files > Get .
7. Select the location where you downloaded and saved the sample.
8. Select the file. Depending on where you saved the file, select Connect or Open .
9. Choose whether to import the data or to bring the workbook into Power BI and see it exactly as it is in
Excel online.
10. If you select Impor t , Power BI imports the sample workbook and adds it as a new dashboard, report, and
dataset, in this case each named Procurement Analysis Sample .
Because the workbook has Power View sheets, Power BI creates a report with a page for each Power BI
sheet.
Power BI creates a new dashboard with a new blank tile. Selecting that tile takes you to the report you
just added.
11. Open the report. Select different elements of the report to explore their interactions.
Next steps
Basic concepts for designers in the Power BI service
Tutorial: Connect to the Power BI samples
Data sources for Power BI
More questions? Try the Power BI Community
COVID-19 tracking sample for US state and local
governments
5/13/2020 • 6 minutes to read • Edit Online
The Power BI team has created a COVID-19 tracking sample that enables US state and local governments to publish
or customize an interactive report about COVID-19. Using Power BI Desktop, they can analyze and visualize COVID-
19 data to keep their communities informed at the city, county, state, and national levels. Then using Power BI
Publish to Web, they can share the report publicly to inform citizens. The article offers different options for using
Power BI interactive visualizations in your own public story, blog, or website.
Prerequisites
Before you can get started using Power BI to tell your story, you need these prerequisites:
Download the free Power BI Desktop app.
Sign up for the Power BI service.
The embed code is an HTML iFrame element that you can insert into any HTML page. Adjust the width and height
of the iFrame provided to fit within your site. The sample report is authored at 16:9 proportions, so pick a size that
preserves this dimension. When implemented correctly, the graphic appears without any extra grey borders. It is
useful to review the iFrame sizing tips and tricks when making these changes.
https://raw.githubusercontent.com/CSSEGISandData/COVID-
19/master/csse_covid_19_data/csse_covid_19_time_series/time_series_covid19_confirmed_global.csv
3. Select OK .
NOTE
The link published by Johns Hopkins University can change. Check the Johns Hopkins GitHub page for the latest
information.
4. Select Load to load the dataset for total confirmed cases worldwide.
This article, Connect to webpages from Power BI Desktop, provides more information about loading data
from the web.
You can then use Power BI Desktop to visualize the data. Finally, use the steps in Option 2: Publish your report to
the Power BI service to publish the report and create a custom embed code.
Disclaimers
This report and data are provided "as is", "with all faults", and without warranty of any kind. Microsoft gives no
express warranties or guarantees and expressly disclaims all implied warranties, including merchantability, fitness
for a particular purpose, and non-infringement.
USAFacts data is available under a Creative Commons license. To use it, cite USAFacts as the data provider and link
back to USAFacts. For exact attribution steps, see the #MadewithUSAFacts section of the USAFacts page,
Coronavirus in the United States: Mapping the COVID-19 outbreak in the states and counties.
Johns Hopkins University data is copyright 2020 Johns Hopkins University, all rights reserved. It's provided to the
public strictly for educational and academic research purposes. Here are the full Terms of Use of the data shown in
the mashup example. More information is available from the Johns Hopkins University website.
Next steps
Get samples for Power BI
Customer Profitability sample for Power BI: Take a
tour
5/13/2020 • 10 minutes to read • Edit Online
The Customer Profitability sample content pack contains a dashboard, report, and dataset for a company that
manufactures marketing materials. This dashboard was created by a CFO to see key metrics about their five
business unit managers (executives), products, customers, and gross margins (GM). At a glance, they can see what
factors are impacting profitability.
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Customer Profitability sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix file
in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack and then adds a new dashboard, report, and dataset to your current
workspace.
4. Continue exploring. If you find something interesting, select Pin from the upper-right corner to pin
it to a dashboard.
5. Use your browser's back arrow to return to the dashboard.
Open the underlying Power BI report
Many of the tiles on the Customer Profitability sample dashboard were pinned from the underlying Customer
Profitability sample report.
1. Select one of these tiles to open the report in Reading view.
If the tile was created in Q&A, selecting it opens the Q&A window. Select Exit Q&A to return to the
dashboard and try a different tile.
2. The report has three pages. Each tab at the bottom of the report represents a different page.
Team Scorecard focuses on the performance of the five managers and their books of business.
Industr y Margin Analysis provides a way to analyze the profitability compared to what's happening in
the entire industry.
Executive Scorecard provides a view of each of the managers, in a custom page size format.
Team Scorecard page
Let's look at two of the team members in detail and see what insights can be gained:
1. In the Executive slicer on the left, select Andrew's name to filter the report page to display only data about
Andrew:
For a quick KPI, look at Andrew's Revenue Status (Total Year) ; it's green, which means he's performing
well.
The Revenue % Variance to Budget by Month and Executive chart shows that, except for a dip in
February, Andrew is doing well. Andrew's most dominant region is the east region, which includes 49
customers, and five out of seven products. Andrew's GM% is not the highest or the lowest.
The RevenueTY and Revenue % Var to Budget by Month chart shows a steady, even-profit story.
However, if you filter by selecting the square for Central in the region treemap, you discover that
Andrew has revenue only in March and only in Indiana. Is this trend intentional or is it something that
needs looking into?
2. Now on to Valery. In the Executive slicer, select Valery's name to filter the report page to display data only
about Valery.
Notice the red KPI for Revenue Status (Total Year) . This item definitely needs further investigation.
Valery's revenue variance also paints a worrying picture; Valery is not meeting set revenue margins.
Valery has only nine customers, handles only two products, and works almost exclusively with customers
in the north region. This specialization could explain the wide fluctuations in the metrics.
If you select the Nor th square in the tree map, it shows that Valery's gross margin in the north region is
consistent with the overall margin.
Selecting each of the other Total Revenue by Region squares tells an interesting story: their GM%
ranges from 23% to 79%. Valery's revenue numbers, in all regions except the north region, are extremely
seasonal.
3. Continue exploring to find out why Valery's area is not performing well. Look at regions, the other business
units, and the next page in the report: Industr y Margin Analysis .
Industry Margin Analysis
This report page provides a different slice of the data. It looks at gross margin for the entire industry, broken down
by segment. The CFO uses this page to compare company and business unit metrics to industry metrics to help
them explain trends and profitability. You might wonder why the Gross Margin % by Month and Executive
chart is on this page, because it's team-specific. Having it here lets us filter the page by business unit manager.
1. How does profitability vary by industry? How do the products and customers break down by industry? To
answer these questions, select one or more industries from the top left (start with the CPG industry). To clear
the filter, select the eraser icon.
2. On the Revenue Var % to Budget, GM%, and RevenueTY by Industr y bubble chart, the CFO looks for
the largest bubbles, because they have the biggest impact on revenue. To easily see each manager's impact
by industry segment, filter the page by select each manager's name in turn in the area chart.
3. As you select each manager in the chart, note the following details:
Andrew's area of influence spans many different industry segments with widely varying GM% (most on
the positive side) and Var%.
Annelie's chart is similar, except that Annelie only concentrates on a handful of industry segments with a
focus on the Federal segment and a focus on the Gladius product.
Carlos has a clear focus on the services segment, with good profit. Carlos has also greatly improved
Var% for the High Tech segment and a new segment, Industrial, performed exceptionally well compared
to budget.
Tina works with a handful of segments and has the highest GM%, but the mostly small size of the
bubbles shows that Tina's impact on the company's bottom line is minimal.
Valery, who is responsible for only one product, works in only five industry segments. Valery's industry
influence is seasonal, but always produces a large bubble, indicating a significant impact on the
company's bottom line. Do the industry segments explain their negative performance?
Executive Scorecard
This page has a custom page size format.
3. Type total revenue by industry for Valery in the question box. Notice how the visualization updates as you
type the question.
As you can see, the Distribution industry is the biggest revenue area for Valery.
Dig deeper by adding filters
Let's take a look at the Distribution industry.
1. Open the Industr y Margin Analysis report page.
2. Without selecting any visualizations on the report page, expand the filter pane on the right (if it isn't already
expanded). The Filters pane should display only Page level filters .
3. Locate the filter for Industr y and select the arrow to expand the list. Let's add a page filter for the
Distribution industry. First, clear all selections by clearing the Select All checkbox. Then select Distribution
only.
4. The Gross Margin % by Month and Executive chart tells us that only Valery and Tina have customers in
this industry and Valery worked with this industry only from June to November.
5. Select Tina and then Valer y in the Gross Margin by Month and Executive chart legend. Notice Tina's
portion of the Total Revenue by Product chart is small compared to Valery.
6. To see actual revenue, select the Q&A box in the dashboard and enter total revenue by executive for
distribution by scenario.
We can similarly explore other industries and even add customers to our visuals to understand causes for
Valery's performance.
The IT Spend Analysis sample content pack contains a dashboard, report, and dataset that analyzes the planned vs.
actual costs of an IT department. This comparison helps us understand how well the company planned for the year
and investigate areas with huge deviations from the plan. The company in this example goes through a yearly
planning cycle, and then quarterly it produces a new latest estimate (LE) to help analyze changes in IT spend over
the fiscal year.
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the IT Spend Analysis sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix
file in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack and then adds a new dashboard, report, and dataset to your current
workspace.
2. Now select USA . Notice that Australia and New Zealand are a very small part of our overall spending as
compared to the United States.
Next, let's explore which category in the USA is causing the variance.
In the first IT area, Infrastructure , notice that the percentage has changed drastically between the initial
variance plan and the variance plan latest estimate.
4. Select each name in turn in the Cost Element Group slicer to find the cost element with the largest
variance.
5. With Other selected, select Infrastructure in the IT Area slicer and select subareas in the IT Sub Area
slicer to find the subarea with the largest variance.
Notice the large variance for Networking . Apparently the company decided to give its employees phone
services as a benefit, even though this move was not planned for.
The Human Resources sample content pack contains a dashboard, report, and dataset for a human resources
department. In this sample, the human resources department has the same reporting model across different
companies, even when they differ by industry or size. This sample looks at new hires, active employees, and
employees who have left. It strives to uncover any trends in the hiring strategy. Our main objectives are to
understand:
Who we hire
Biases in our hiring strategy
Trends in voluntary separations
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Human Resources sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix file
in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack and then adds a new dashboard, report, and dataset to your current
workspace.
New hires
Let's explore new hires first.
1. In your workspace, select the Dashboards tab, and open the Human Resources Sample dashboard.
2. On the dashboard, select the New Hire Count, New Hires Same Period Last Year, Actives YoY %
Change By Month tile.
The Human Resources Sample report opens to the New Hires page.
The Human Resources Sample report opens to the Active Employees vs. Separations page.
Notice the trend in the 50+ age group. During the latter part of the year, more employees over age 50 left
voluntarily. This trend is an area to investigate further with more data.
8. You can also follow the same steps for the Active Employee Count by Gender pie chart, changing it to
separations instead of active employees. Look at the voluntary separation data by gender to see if you find
any other insights.
9. Select Human Resource Sample from the top nav pane to return to the dashboard. You can choose to
save the changes you've made to the report.
Bad hires
The last area to explore is bad hires. Bad hires are defined as employees who didn't last for more than 60 days.
We're hiring rapidly, but are we hiring good candidates?
1. Select the Bad Hires as % of Actives by Age Group dashboard tile. The report opens to tab three, Bad
Hires .
2. Select Nor thwest in the Region slicer on the left and select Male in the Bad Hire Count by Gender
donut chart. Look at the other charts on the Bad Hires page. Notice there are more male bad hires than
females and many Group A bad hires.
3. If you look at the Bad Hire Count by Gender donut chart and select different regions in the Region slicer,
you'll notice that the East region is the only region with more female than male bad hires.
4. Select the name of the dashboard from the top nav pane to return to the dashboard.
2. You can pick one of those suggestions, or enter: show age group, gender, and bad hires SPLY where region is
east.
The Opportunity Analysis sample content pack contains a dashboard, report, and dataset for a software company
that has two sales channels: direct and partner. The sales manager created this dashboard to track opportunities
and revenue by region, deal size, and channel.
This sample relies on two measures of revenue:
Revenue: A salesperson's estimate of what the revenue will be.
Factored revenue: Calculated as revenue X probability% and is accepted as being a more-accurate predictor of
actual sales revenue. Probability is determined by the deal's current sales stage:
Lead: 10%
Qualify: 20%
Solution: 40%
Proposal: 60%
Finalize: 80%
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Opportunity Analysis sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix file
in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack, and then adds a new dashboard, report, and dataset to your current
workspace.
Our CFO uses this page to manage workload. By looking at the revenue opportunities by sales stage and month,
they can plan accordingly.
Note the following details:
Average revenue for the Finalize sales stage is the highest. Closing these deals is a top priority.
If you filter by month (by selecting a month in the Month slicer), you see that January has a high proportion of
large deals in the Finalize sales stage with a factored revenue of $75 million. February, on the other hand, has
mostly medium deals in the Solution and Proposal sales stages.
In general, the factored revenue numbers fluctuate based on sales stage, number of opportunities, and deal size.
Add filters for these factors by using the Filter pane on the right to discover further insights.
The Procurement Analysis sample content pack contains a dashboard, report, and dataset that analyzes a
manufacturing company's spending on vendors by category and location. In the sample, we explore these areas:
Who the top vendors are
What categories we spend the most on
Which vendors give us the highest discount and when
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Procurement Analysis sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix
file in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack, and then adds a new dashboard, report, and dataset to your current
workspace.
Spending trends
First, let's look for trends in spending by category and location.
1. In the workspace where you saved the sample, open the Dashboards tab, then find the Procurement
Analysis Sample dashboard and select it.
2. Select the dashboard tile, Total Invoice by Countr y/Region , which opens to the Spend Over view page
of the Procurement Analysis Sample report.
Note the following details:
In the Total Invoice by Month and Categor y line chart, the Direct category has consistent spending,
Logistics has a peak in December, and Other has a spike in February.
In the Total Invoice by Countr y/Region map, most of our spending is in the United States.
In the Total Invoice by Sub Categor y column chart, Hardware and Indirect Goods & Ser vices are the
biggest spend categories.
In the Total Invoice by Tier bar chart, most of our business is done with our tier 1 (top 10) vendors. Doing so
enables us to manage better vendor relationships.
Spending in Mexico
Let's explore the spending areas in Mexico.
1. In the Total Invoice by Countr y/Region map, select the Mexico bubble. Notice that in the Total Invoice
by Sub Categor y column chart, most spending is in the Indirect Goods & Ser vices sub category.
2. Drill down into the Indirect Goods & Ser vices column:
In the Total Invoice by Sub Categor y chart, select the drill-down arrow in the upper-right
corner of the chart.
Select the Indirect Goods & Ser vices column.
As you can see, the highest spending by far is for the Sales & Marketing subcategory.
Select Mexico in the map again.
For Mexico, the biggest spending is in the Maintenance & Repair subcategory.
3. Select the up arrow on the upper-left corner of the chart to drill back up.
4. Select the drill-down arrow again to turn drill down off.
5. In the top nav pane, select Procurement Analysis Sample to return to the dashboard.
Discount by month
If you look at the Total Invoice and Discount % by Month combo chart, we see that February is the busiest
month, and September is the least busy month.
Look at the discount percent during these months: when volume increases, the discount shrinks, and when volume
is low, the discount increases. The more we need the discount, the worse of a deal we get.
Discount by city
Another area to explore is the discount by city. Select each city in turn in the tree map and see how the other charts
change:
St. Louis had a large spike in total invoices in February and a large dip in discount savings in April.
Mexico City has the highest discount percentage (11.05%) and Atlanta has the smallest (0.08%).
Edit the report
Select Edit repor t in the upper-left corner and explore in Editing view:
See how the pages are made.
Add pages and charts based on the same data.
Change the visualization type for a chart; for example, change the tree map to a donut chart.
Pin charts to your dashboard.
The Retail Analysis sample content pack contains a dashboard, report, and dataset that analyzes retail sales data of
items sold across multiple stores and districts. The metrics compare this year's performance to last year's for sales,
units, gross margin, and variance, as well as new-store analysis.
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Retail Analysis sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix
file in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack, and then adds a new dashboard, report, and dataset to your current
workspace.
The FD-01 district has the highest average Sales per Square Foot and FD-02 has the lowest Total Sales
Variance compared to last year. FD-03 and FD-04 are worst performers overall.
4. Select individual bubbles or other charts to see cross highlighting, revealing the impact of your selections.
5. To return to the dashboard, select Retail Analysis Sample from the top nav pane.
6. On the dashboard, select the This Year's Sales New & Existing Stores tile, which is equivalent to typing
This year sales in the Q&A question box.
The Q&A results appear:
2. Now change the question to this year sales by zip and chain .
Notice how Power BI answers the question as you type and displays the appropriate chart.
3. Experiment with more questions and see what kind of results you get.
4. When you're ready, return to the dashboard.
In the Total Sales Variance % by Fiscal Month chart, notice the large variability on variance %
compared to last year, with January, April, and July being particularly bad months.
Let's see if we can narrow down where the issues might be.
2. In the bubble chart, select the 020-Mens bubble.
Observe that although the men's category wasn't as severely affected in April as the overall business,
January and July were still problematic months.
3. Select the 010-Womens bubble.
Notice the women's category performed much worse than the overall business across all months, and in
almost every month compared to the previous year.
4. Select the bubble again to clear the filter.
Notice that for the Womens-10 category, Allan's district didn't meet last year's volume.
3. Explore the other district managers and categories; what other insights can you find?
4. When you are ready, return to the dashboard.
Notice the difference in average sales/square foot across the new stores.
3. Select the Fashions Direct legend item in the Open Store Count by Open Month and Chain top-right
chart. Notice, even for the same chain, the best store (Winchester Fashions Direct) significantly outperforms
the worst store (Cincinnati 2 Fashions Direct) by $21.22 vs $12.86, respectively.
4. Select Winchester Fashions Direct in the Name slicer and observe the line chart. The first sales numbers
were reported in February.
5. Select Cincinnati 2 Fashions Direct in the slicer and observe in the line chart that it was opened in June
and appears to be the worst performing store.
6. Explore by selecting other bars, lines, and bubbles throughout the charts and see what insights you can
discover.
Prerequisites
The samples are available for the Power BI service and Power BI Desktop. We're using the Retail analysis sample, if
you want to follow along.
The Retail Analysis sample content pack used in this tutorial consists of a dashboard, report, and dataset. To
familiarize yourself with this particular content pack and its scenario, see Retail Analysis sample for Power BI: Take a
tour before you begin.
If you don't see Get Data , expand the nav pane by selecting the following icon at the top of the pane: .
3. On the Get Data page that appears, select Samples .
4. Select Retail Analysis Sample , and then choose Connect .
What was imported?
With the sample content packs, when you select Connect , Power BI gets a copy of that content pack and stores it
for you in the cloud. Because the person who created the content pack included a dataset, a report, and a
dashboard, that's what you get when you select Connect .
1. When you select Connect , Power BI creates the new dashboard and lists it on your Dashboards tab.
2. Open the Repor ts tab. Here, you'll see a new report named Retail Analysis Sample.
Check out the Datasets tab; there's a new dataset there as well.
Explore your new content
Now explore the dashboard, dataset, and report on your own. There are many different ways to navigate to your
dashboards, reports, and datasets. One of these ways is described in the following procedure.
1. Navigate back to the Dashboards tab, and then select the Retail Analysis Sample dashboard to open it.
The dashboard opens, which has a variety of visualization tiles.
2. Select one of the tiles in the dashboard to open the underlying report. In this example, we'll select the area
chart, This Year's Sales, Last Year's Sales by Fiscal Month .
The report opens to the page that contains the area chart you selected; in this case, the District Monthly
Sales page of the report.
NOTE
If the tile was created by using Power BI Q&A, the Q&A page will open instead. If the tile was pinned from Excel, Excel
Online will open inside of Power BI.
3. When someone shares a content pack with colleagues, they typically want to share only the insights, rather
than provide direct access to the data. On the Datasets tab, you have several options for exploring your
dataset. However, you can't view the rows and columns of your data, as you can in Power BI Desktop or
Excel.
4. One way of exploring the dataset is by creating your own visualizations and reports from scratch. Select the
chart icon to open the dataset in report editing mode.
5. Another way of exploring the dataset is to run quick insights. Select More options (...), and then choose Get
quick insights . When the insights are ready, select View insights .
2. The file opens in Report view. Notice the four tabs at the bottom of the report editor; these tabs represent
the four pages in this report. For this example, the New Stores page is currently selected.
.
3. For a deep dive into the report editor, see Take a tour of the report editor.
In Data view, you can inspect, explore, and understand data in your Power BI Desktop model. It's different
from how you view tables, columns, and data in the Query Editor. The data in Data view is already loaded
into the model.
When you're modeling your data, sometimes you want to see what's actually in the rows and columns of a
table, without creating a visual on the report canvas. This is especially true when you're creating measures
and calculated columns, or you need to identify a data type or data category.
Relationship view shows all of the tables, columns, and relationships in your model. From here you can view,
change, and create relationships.
Next steps
This environment is a safe one to play in, because you can choose not to save your changes. But if you do save
them, you can always select Get Data for a new copy of this sample.
We hope this tour has shown how Power BI dashboards, datasets, relationships, and reports can provide insights
into sample data. Now it's your turn; connect to your own data. With Power BI, you can connect to a wide variety of
data sources. To learn more, see Get started with the Power BI service and Get started with Power BI Desktop.
For more information, see:
Basic concepts for designers in the Power BI service
Samples for the Power BI service
Data sources for Power BI
More questions? Try the Power BI Community
Sales and Marketing sample for Power BI: Take a tour
5/13/2020 • 9 minutes to read • Edit Online
The Sales and Marketing sample contains a dashboard and report for a fictitious manufacturing company named
VanArsdel Ltd. The VanArsdel Chief Marketing Officer (CMO) created this dashboard to keep an eye on the industry
and the company's market share, product volume, sales, and sentiment.
VanArsdel has many competitors, but is the market leader in its industry. The CMO wants to increase market share
and discover growth opportunities. However, for unknown reasons, VanArsdel's market share has started to
decline, with significant dips in June.
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Sales and Marketing sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix file
in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack and then adds a new dashboard, report, and dataset to your current
workspace.
3. Our share in the Moderation and Convenience categories is high; these segments are the ones where we
compete.
4. Return to the dashboard by selecting the Sales and Marketing Sample in the top nav pane.
What does total unit market share look like for category (versus region)?
1. Notice the Total Units YTD by Manufacturer, Region tile. What is the total unit market share by
category?
2. Select the question box at the top of the dashboard and type the question, total units by manufacturer and
category for 2014 as a treemap. Notice how the visualization updates as you type the question.
3. To compare the findings, pin the chart to your dashboard. Notice this interesting fact: In 2014, VanArsdel
sold only products in the Urban category.
4. Return to the dashboard.
2. Look at the Total Units by Month and isVanArsdel column chart at the bottom of the report. The black
column represents VanArsdel (our products) and the green column is our competition. The drop in June
2014 that VanArsdel experienced was not experienced by the competition.
3. The Total Categor y Volume by Segment bar chart on the right is filtered to show VanArsdel's top two
segments. Take a look at how this filter was created:
a. Select the Total Categor y Volume by Segment chart.
b. Select the Filters pane on the right to expand it.
c. Under Visual level filters , notice that Segment is filtered to include only the Convenience and
Moderation segments.
d. Modify the filter by selecting Segment to expand it, and then check Productivity to add that segment.
4. In the Total Units by Month and isVanArsdel chart, select Yes in the legend to cross-filter the page by
VanArsdel. In the Total Categor y Volume by Segment chart, notice that we don't compete in the
Productivity segment.
5. Select the Yes again in the legend to remove the filter.
6. Look at the % Units Market Share and % Units Market Share R12M by Month line chart. It shows
our monthly market share and rolling 12-month market shares. Rolling-months data helps to smooth out
monthly fluctuations and shows the long-term trends. In the Total Categor y Volume by Segment bar
chart, select Convenience , and then Moderation to see the fluctuation in market share for each segment.
Notice that the Moderation segment shows much more fluctuation in market share.
We're still looking to find out why our market share dipped so low in June. Next, let's check the Sentiment
Analysis page of the report.
Sentiment Analysis page
Page three of the report focuses on consumer sentiment.
Tweets, Facebook, blogs, and articles all contribute to consumer sentiment, which is shown in the two line charts on
left side of the page. The VanArsdel - Sentiment by Month chart in the top-left corner shows that sentiment for
our products was mostly neutral up until February. Then, a large drop started in February and bottomed out in
June. What happened to cause this drop in sentiment?
Let's look at external sources. In February, several articles and blog posts rated VanArsdel's customer service as the
worst in the industry. This bad press had a direct correlation to customer sentiment and sales. VanArsdel worked
hard to improve customer service, and customers and the industry took note. In July, positive sentiment started to
rise and then reached an all-time high in the 60s. This uptick in sentiment is reflected in the Total Units by Month
charts on pages one and two of the report. Perhaps this partially explains our market share dips for June?
Sentiment gap might be another area to explore. Which districts have the highest sentiment gap, how can
management capitalize on it, and how can they replicate it in other districts?
YTD Category Trend Analysis page
Page two of the report focuses on the year-to-date category trend.
This industry sample dashboard and underlying report focus on one of the typical supply chain challenges:
supplier quality analysis. Two primary metrics are at play in this analysis: total number of defects and the total
downtime that these defects caused.
This sample has two main objectives:
Understand who the best and worst suppliers are, with respect to quality.
Identify which plants do a better job finding and rejecting defects, to minimize downtime.
This sample is part of a series that shows how you can use Power BI with business-oriented data, reports, and
dashboards. It was created by obviEnce with real data, which has been anonymized. The data is available in several
formats: content pack, .pbix Power BI Desktop file, or Excel workbook. See Samples for Power BI.
This tutorial explores the Supplier Quality Analysis sample content pack in the Power BI service. Because the report
experience is similar in Power BI Desktop and in the service, you can also follow along by using the sample .pbix
file in Power BI Desktop.
You don't need a Power BI license to explore the samples in Power BI Desktop. If you don't have a Power BI Pro
license, you can save the sample to your My Workspace in the Power BI service.
5. Power BI imports the content pack and then adds a new dashboard, report, and dataset to your current
workspace.
4. In the Downtime (min) by Plant map, select individual plants in turn to see which vendor or material is
responsible for the downtime at that plant.
Which are the worst suppliers?
We want to find the worst eight suppliers and determine what percentage of the downtime they're responsible for
creating. We can do so by changing the Downtime (min) by Vendor area chart to a treemap.
1. On the Downtime Analysis page of the report, select Edit repor t in the upper-left corner.
2. Select the Downtime (min) by Vendor area chart, and in the Visualizations pane, select the Treemap
icon.
The treemap automatically sets the Vendor field as the Group .
From this treemap, we can see the top eight vendors are the eight blocks on the left of the treemap. We can
also see they account for about 50% of all downtime minutes.
3. Select Supplier Quality Analysis Sample in the top nav pane to return to the dashboard.
Comparing plants
Now let's explore which plant does a better job managing defective material, resulting in less downtime.
1. On the dashboard, select the Total Defect Repor ts by Plant, Defect Type map tile.
4. Select Supplier Quality Analysis Sample in the top nav pane to return to the dashboard.
Notice that although Raw Materials material type has many total defects, most of those defects are either
rejected or have no impact.
Let's verify that this material type doesn't cause much downtime, despite high defect quantity.
2. In the dashboard, look at the Total Defect Qty, Total Downtime Minutes by Material Type tile.
Raw materials appear to be well managed; although they have more defects, they have lower total
downtime minutes.
Compare defects to downtime by year
1. Select the Total Defect Repor ts by Plant, Defect Type map tile to open the report to the Supplier
Quality Analysis page.
2. In the Total Defect Qty by Month and Year chart, notice that defect quantity is higher in 2014 than in
2013.
3. Do more defects translate into more downtime? Ask questions in the Q&A box to find out.
4. Select Supplier Quality Analysis Sample in the top nav pane to return to the dashboard.
5. Because we know that raw materials have the highest number of defects, type in the question box: show
material types, year, and total defect qty.
There were many more raw materials defects in 2014 than in 2013.
6. Next, change the question to: show material types, year, and total downtime minutes .
Notice that downtime for raw materials was about the same in 2013 and 2014, even though there were
many more raw materials defects in 2014. It appears that more defects for raw materials in 2014 didn't lead
to much more downtime for raw materials in 2014.
Compare defects to downtime month to month
Let's look at another dashboard tile related to total defective quantity.
1. Select Exit Q&A in the upper-left corner to return to the dashboard.
Look more closely at the Total Defect Quantity by Month, Year tile. It shows that the first half of 2014
had a similar number of defects as 2013, but in the second half of 2014, the number of defects increased
significantly.
Let's see if this increase in defect quantity led to an equal increase in downtime minutes.
2. In the question box, type total downtime minutes by month and year as a line chart.
Other than a jump in downtime minutes during June and October, the number of defects didn't result in
significantly more downtime. This result shows we're managing defects well.
3. To pin this chart to your dashboard, select the pin icon above the question box.
4. To explore the outlier months, check out the downtime minutes during October by material type, plant
location, category, and so on, by asking questions such as total downtime minutes in October by plant.
5. Select Exit Q&A in the upper-left corner to return to the dashboard.
Need some data to try with Power BI Desktop and the Power BI service? We have a simple Excel workbook of
sample financial data available for download: Financial Sample Excel workbook.
This workbook has a table of sales and profit data sorted by market segment and country.
Next steps
Here are two tutorials that use this Financial sample data:
Power BI Desktop: From Excel workbook to stunning report
Power BI service: From Excel workbook to stunning report
More questions? Try the Power BI Community.
Using external tools in Power BI Desktop (preview)
8/13/2020 • 4 minutes to read • Edit Online
Beginning with the July 2020 release of Power BI Desktop, you can use external tools to provide additional
functionality and value to Power BI Desktop. Support for external tools enables you to leverage the multitude of
community tools for Analysis Services for BI professionals, such DAX query/expression optimization and authoring,
and application lifecycle management (ALM).
The External Tools ribbon in Power BI Desktop contains buttons for external tools installed on the machine, and
registered with Power BI Desktop. External tools launched from Power BI Desktop are automatically connected to
the Analysis Services engine that operates as part of Power BI Desktop, providing a seamless experience for users.
These featured external tools include the following, with links to their installation location. Each external tool is
supported by their respective tool authors:
Tabular Editor
DAX Studio
ALM Toolkit
The following sections describe the operations supported by external tools, a list of featured tools included in
Power BI Desktop, and instructions on how to register additional tools.
The source code for Tabular Editor can be found in the following GitHub repo: Tabular Editor on GitHub
The primary tool author for Tabular Editor is Daniel Otykier.
DAX Studio
You can install DAX Studio from the following link: DAX Studio website
DAX Studio is known for being a complete tool for DAX authoring, diagnosis, performance tuning and analysis. Its
features include object browsing, integrated tracing, query execution breakdowns with detailed statistics, DAX
syntax highlighting and formatting. The following image shows a Dax Studio screen.
The source code for DAX Studio can be found in the following GitHub repo: DAX Studio on GitHub
The primary tool author for DAX Studio is Darren Gosbell.
ALM Toolkit
You can install ALM Toolkit from the following link: ALM Toolkit website
ALM Toolkit is a schema compare tool for Power BI datasets, used for application lifecycle management (ALM)
scenarios. With it, you can perform straightforward deployment across environments and retain incremental
refresh historical data. With ALM Toolkit, you can diff and merge metadata files, branches, and repos. You can also
reuse common definitions between datasets.
The source code for ALM Toolkit can be found in the following GitHub repo: ALM Toolkit on GitHub
The primary tool author for ALM Toolkit is Christian Wade.
{
"name": "<tool name>",
"description": "<tool description>",
"path": "<tool executable path>",
"arguments": "<optional command line arguments>",
"iconData": "image/png;base64,<encoded png icon data>"
}
The following list describes the list of elements in the JSON file:
name: Provide a name for the tool, which will appear as a button caption in the External Tools ribbon within
Power BI Desktop.
description: (optional) Provide a description, which will appear as a tooltip on the External Tools ribbon button
within Power BI Desktop.
path: Provide the fully qualified path to the tool executable.
arguments: (optional) Provide a string of command-line arguments that the tool executable should be
launched with. You may use any of the following placeholders:
%ser ver%: Replaced with the server name and portnumber of the local instance of Analysis Services
Tabular for imported/DirectQuery data models.
%database%: Replaced with the database name of the model hosted in the local instance of Analysis
Services Tabular for imported/DirectQuery data models.
iconData: Provide image data, which will be rendered as a button icon in the External Tools ribbon within Power
BI Desktop. The string should be formatted according to the syntax for Data URIs without the "data:" prefix.
Name the file "<tool name>.pbitool.json" and place it in the following folder:
%commonprogramfiles%\Microsoft Shared\Power BI Desktop\External Tools
A value of 1 (decimal) enables the use of external tools in Power BI, which is the default value.
A value of 0 (decimal) disable the use of external tools in Power BI.
Next steps
You might also be interested in the following articles:
Use cross-report drill through in Power BI reports
Using slicers Power BI Desktop
Use the updated ribbon in Power BI Desktop
5/21/2020 • 2 minutes to read • Edit Online
Power BI Desktop has revised its ribbon to better align its appearance and experience with other Microsoft
products, such as Microsoft Office.
Dynamic ribbon content based on your view - in the existing ribbon for Power BI Desktop, icons or
commands that weren't available were simply grayed out, creating a less-than-optimal experience. With the
updated ribbon, icons are dynamically displayed and arranged, so that you always know which options are
available to you, in context.
A single-line ribbon, when collapsed, saves you space - another benefit of the updated ribbon is the
ability to collapse the ribbon itself into a single line, dynamically displaying ribbon items based on your
context.
Keytips to navigate and select buttons - to help navigate the ribbon, you can press Alt + Windows
Key to activate keytips. Once activated, you can press the shown keys on your keyboard to navigate.
Custom format strings - in addition to setting custom format strings in the Properties pane, you can also
set them in the ribbon. Select the measure or column you want to customize and a Measure tools or
Column tools contextual tab appears, depending on your selection. In that tab's formatting section, you can
type your custom format string directly into the dropdown box.
Accessibility - the title bar, ribbon, and file menu are fully accessible. Press Ctrl + F6 to navigate to the
ribbon section. Once there, you can use Tab to move between the top and bottom bars, and use arrow keys
to move between elements.
In addition to those visible changes, an updated ribbon also lets us make future updates to Power BI Desktop, and
its ribbon, such as the following:
Create more flexible and intuitive controls in the ribbon, such as the visuals gallery
Add the black and dark gray Office themes to Power BI Desktop
Improve accessibility
Next steps
There are all sorts of data you can connect to using Power BI Desktop. For more information on data sources, check
out the following resources:
What is Power BI Desktop?
Data Sources in Power BI Desktop
Shape and Combine Data with Power BI Desktop
Connect to Excel workbooks in Power BI Desktop
Enter data directly into Power BI Desktop
Work with Report view in Power BI Desktop
5/13/2020 • 4 minutes to read • Edit Online
If you've been working with Power BI, you know how easy it's to create reports providing dynamic perspectives
and insights into your data. Power BI also has more advanced features in Power BI Desktop. With Power BI
Desktop, create advanced queries, mashup data from multiple sources, create relationships between tables, and
more.
Power BI Desktop includes a Report view , where you can create any number of report pages with visualizations.
Report view in Power BI Desktop provides a similar design experience to the report's editing view in the Power BI
service. You can move visualizations around, copy and paste, merge, and so on.
The difference between them is when using Power BI Desktop, you can work with your queries and model your
data to make sure your data supports the best insights in your reports. You can then save your Power BI Desktop
file wherever you like, whether it's your local drive or to the cloud.
You can switch between Repor t , Data , and Relationship views by selecting the icons in the left-hand navigation
pane:
Once you've added some data, you can add fields to a new visualization in the canvas.
To change the type of visualization, you can select it on the canvas, then select a new type in Visualizations .
TIP
Be sure to experiment with different visualization types. It's important your visualization convey information in your data
clearly.
A report will have at least one blank page to start. Pages appear in the navigator pane just to the left of the canvas.
You can add all sorts of visualizations to a page, but it's important not to overdo it. Too many visualizations on a
page make it look busy and difficult to find the right information. You can add new pages to your report. Just click
New Page on the ribbon.
To delete a page, click the X on the page's tab at the bottom of the Report view.
NOTE
Reports and visualizations can't be pinned to a dashboard from Power BI Desktop. To do that, you'll need to publish to your
Power BI site. For more information, see Publish datasets and reports from Power BI Desktop.
To correct the error, just replace the broken fields with the fields you want to use from the model in the report to
which you pasted the visual. If you're using a custom visual, you must also import that custom visual to the
destination report.
You cannot see a hidden report page when viewing the report in the Power BI service.
Hiding a report page is not a security measure. The page can still be accessed by users, and its content is
still accessible using drill-through, and other methods.
When a page is hidden, when in View mode, no view-mode navigation arrows are shown.
Types of filters in Power BI reports
5/13/2020 • 3 minutes to read • Edit Online
Filters don't all behave the same way because they're not created the same way. How you create them influences
how they behave in the new filter pane in editing mode. In this article, we describe the different kinds of filters: the
different ways you create them and the different things they're good for. Read about how to add filters to reports.
Let’s start with the two most common filter types: manual and automatic.
Manual filters
Manual filters are the filters that report creators drag and drop anywhere in the new filter pane. Users with edit
permission to the report can edit, delete, clear, hide, lock, rename, or sort this filter in the new pane.
Automatic filters
Automatic filters are the filters that get automatically added to the visual level of the filter pane when you build a
visual. These filters are based on the fields that make up your visual. Users with edit permission to the report can
edit, clear, hide, lock, rename, or sort this filter in the new pane. They can't delete automatic filters, because the
visual refers to those fields.
Cross-drill filters
Cross-drill filters are automatically added to the new pane when a drill-down filter is passed to another visual on
the report page via the cross-filter or cross-highlight feature. Users with edit permission to the report can't delete,
clear, hide, lock, rename, or sort this filter because it's associated with the drill-down functionality of visuals. They
also can't edit this filter because it comes from drilling down in another visual. To remove the drill-down filter, you
click the drill-up button for the visual that's passing the filter.
Drillthrough filters
Drillthrough filters get passed from one page to another via the drillthrough feature. They show up in the
drillthrough pane. There are two types of drillthrough filters. The first type is the one that invokes the drillthrough.
Report editors can edit, delete, clear, hide, or lock this type of filter. The second type is the drillthrough filter that
gets passed to the target, based on the page-level filters of the source page. Report editors can edit, delete, or clear,
this transient type of drillthrough filter. They can't lock or hide this filter for end users.
URL filters
URL filters get added to the new pane by adding a URL query parameter. Users with edit permission to the report
can edit, delete, or clear the filter in the new pane. They can't hide, lock, rename, or sort this filter because it's
associated with the URL parameter. To remove the filter, you remove the parameter from the URL. Here's an
example URL with a parameter:
app.powerbi.com/groups/me/apps/app-id/reports/report-id/ReportSection?filter=Stores~2FStatus%20eq%20'Off'
Pass-through filters
Pass-through filters are visual-level filters created through Q&A. Authors can delete, hide, or sort these filters in
the new pane. However, they can't rename, edit, clear, or lock these filters.
F ILT ER
TYPE EDIT C L EA R DEL ET E H IDE LO C K SO RT REN A M E
Manual Y Y Y Y Y Y Y
filters
Auto filters Y Y N Y Y Y Y
Include/Excl N N Y Y Y Y N
ude filters
Drill-down Y Y N N N N N
filters
F ILT ER
TYPE EDIT C L EA R DEL ET E H IDE LO C K SO RT REN A M E
Cross Drill N N N N N N N
filters
Drillthrough Y Y Y Y Y N N
filters
(Invokes
drillthrough
)
Drillthrough Y Y Y N N N N
filters
(Transient)
URL filters - Y Y Y N N N N
transient
Pass N N Y Y N Y N
Through
filters
Next steps
Add filters to reports
Take a tour of the report Filters pane
Filters and highlighting in reports
More questions? Try the Power BI Community
Filters and highlighting in Power BI reports
5/13/2020 • 4 minutes to read • Edit Online
This article introduces you to filtering and highlighting in the Power BI service. The experience is almost exactly the
same in Power BI Desktop. Filters remove all but the data you want to focus on. Highlighting isn't filtering. It
doesn't remove data, but instead highlights a subset of the visible data; the data that isn't highlighted remains
visible but dimmed.
There are many different ways you can filter and highlight reports in Power BI. Putting all of that information in
one article would get confusing, so we've broken it into these sections:
Introduction to filters and highlighting, the article you're reading now.
How to create and use filters in Editing view in reports in Power BI Desktop and the Power BI service. When you
have editing permissions for a report, you can create, modify, and delete filters in reports.
How visuals filter and highlight in a report shared with you, in report Reading view in the Power BI service.
What you can do is more limited, but you still have a wide range of filtering and highlighting options.
A detailed tour of the filter and highlighting controls available in Editing view in Power BI Desktop and the
Power BI service. The article takes an in-depth look at types of filters such as date and time, numeric, and text. It
also covers the differences between basic and advanced options.
After you've learned how filters and highlighting work by default, learn how to change the way visualizations
on a page filter and highlight each other
Did you know? Power BI has a new filter experience. Read more about the new filter experience in Power BI
reports.
If the filter has the word All next to it, that means all the values in the field are included in the filter. For example,
Chain(All) in the screenshot below means this report page includes data about all the store chains. On the other
hand, the report-level filter FiscalYear is 2013 or 2014 tells us that the report only includes data for the fiscal
years of 2013 and 2014.
So this page of the report has six page-level filters and one report-level filter.
Each visual can have filters for all the fields in the visual, and a report author may add more. In the image below,
the bubble chart has six filters.
In Reading view, explore the data by modifying the existing filters. The changes you make are saved with the
report, even if you open the report in a mobile app. Learn how when you take a tour of the report Filters pane
When you exit the report, your filters are saved. To undo your filtering and return to the default filtering, slicing,
drill, and sorting set by the report author, select Reset to default from the top menubar.
Ad hoc highlighting
Select a value or axis label in a visual to highlight the other visuals on the page. To remove the highlighting, select
the value again, or select any empty space in the same visual. Highlighting is a fun way to quickly explore data
impacts. To fine-tune how this type of cross-highlighting works, see Visual interactions.
Next steps
The new filter experience in Power BI reports
Add a filter to a report (in Editing view)
Take a tour of report filters
Change how report visuals cross-filter and cross-highlight each other
More questions? Try the Power BI Community
High-density line sampling in Power BI
8/13/2020 • 8 minutes to read • Edit Online
Beginning with the June 2017 release of the Power BI Desktop and updates to the Power BI ser vice , a new
sampling algorithm is available that improves visuals that sample high-density data. For example, you might create
a line chart from your retail stores' sales results, each store having more than ten thousand sales receipts each year.
A line chart of such sales information would sample data (select a meaningful representation of that data, to
illustrate how sales vary over time) from the data for each store, and create a multi-series line chart that thereby
represents the underlying data. This is common practice in visualizing high-density data. Power BI Desktop has
improved its sampling of high-density data, the details of which are described in this article.
NOTE
The High Density Sampling algorithm described in this article is available in both Power BI Desktop and the Power BI
ser vice .
Next steps
For information about high-density sampling in scatter charts, see the following article.
High Density Sampling in Power BI scatter charts
Introduction to Power BI Q&A visualizations
8/13/2020 • 5 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
Power BI is moving to a new look, and some images in the documentation may not match what you see in the service. Learn
more about the new look and try it for yourself.
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in this
article are from Power BI Desktop.
The Q&A visual can be both used as a tool to allow consumers to quickly get answers to their data, and by
designers to create visuals in report by simply double-clicking anywhere on a report and using natural language to
get started. As it behaves like any other visual, the Q&A visual can be cross-filtered/cross-highlighted and also
supports bookmarks. The Q&A visual also supports themes and other default formatting options available inside
Power BI.
The Q&A visual consists of four core components;
The question box. This is where users type in their question and are shown suggestions to help them complete
their question.
A pre-populated list of suggested questions.
Icon to convert the Q&A visual into a standard visual.
Icon to open Q&A tooling which allows designers to configure the underlying natural language engine.
Prerequisites
1. This tutorial uses the Sales & Marketing sample PBIX file.
2. From the upper left section of the Power BI Desktop menu bar, select File > Open
3. Find your copy of the Sales & Marketing sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity. See sharing reports.
But you can tell Power BI which visual type to use by adding it to your natural language query. Keep in mind
that not all visual types will work or make sense with your data. For example, this data wouldn't produce a
meaningful scatter chart. But it works as a filled map.
1. Type a question in the Q&A field. Power BI adds a red underline to words it does not recognize. Whenever
possible, Power BI helps define unrecognized words. In the first example below, selecting either of the
suggestions will work for us.
2. As we type more of the question, Power BI lets us know that it doesn't understand the question, and tries to
help. In the example below, Power BI asks us "Did you mean..." and suggests a different way to word our
question using terminology from our dataset.
3. With Power BI's help, we were able to ask a question with all recognizable terms. Power BI displays the
results as a line chart.
4. Let's change the visual to a column chart.
5. Add more visuals to the report page and see how the Q&A visual interacts with the other visuals on the
page. In this example, the Q&A visual has cross-filtered the line chart and map and cross-highlighted the bar
chart.
Format and customize the Q&A visual
The Q&A visual can be customized using the formatting pane, and by applying a theme.
Apply a theme
When you select a theme, that theme is applied to the entire report page. There are many themes to choose from,
so try them out until you get the look you desire.
1. In the menu bar, select the Home tab and choose Switch theme .
2. In this example we've selected More themes > Color blind safe .
Format the Q&A visual
Format the Q&A visual, the question field, and the way suggestions are displayed. You can change everything from
the background of a title to the hover color for unrecognized words. Here we've added a grey background to the
question box and changed the underlines to yellow and green. The title is centered and has a yellow background.
Select the icon to Turn this Q&A result into a standard visual .
This visual is no longer a Q&A visual but is a standard column chart. It can be pinned to a dashboard. In the report,
this visual behaves the same as other standard visuals. Notice that the Visualizations pane shows a Column chart
icon selected instead of the Q&A visual icon.
If you're using the Power BI Ser vice , you can now pin the visual to a dashboard by selecting the pin icon.
Use the Tooling pane to teach Q&A terms it doesn't recognize, to manage those terms, and to manage the
suggested questions for this dataset and report. In the Tooling pane you can also review questions that have been
asked using this Q&A visual and see questions that have been flagged by users. To learn more, see Q&A Tooling
into.
Next steps
There are a variety of ways you can integrate natural language. For more information, see the following articles:
Q&A Tooling
Q&A Best Practices
Overview of accessibility in Power BI
5/13/2020 • 2 minutes to read • Edit Online
When working with Power BI, consider the different types of users who may interact with your reports. You can
create reports that are easily navigated and understood by keyboard or screen reader users. Such reports enable
users who may have visual or physical impairments to benefit from your reports.
This article provides an overview of Power BI and accessibility. Additional articles provide guidance, and tools, that
can help you create great reports with accessibility in mind.
Universal design
Universal design is the design of products that are usable by as many people as reasonable possible, without the
need for special adaptation or specialized design. When creating reports or experiences in Power BI, it’s important
to consider the needs of your users. Designing an accessible experience won't only benefit your end users who
may have hearing, motor, cognitive, or visual impairments. It can help all the end users in your organization. Power
BI gives you the tools to make and consume accessible reports. It’s up to you, as a report creator, to use those tools
to improve everyone’s experience.
Accessibility standards
Power BI is committed to the following accessibility standards. The standards help ensure that your Power BI
experiences are accessible to as many people as possible. When you build accessible reports or dashboards, that
content is accessible for anyone who views them using Power BI Mobile.
WCAG 2.1
Web Content Accessibility Guidelines (WCAG) help make web content accessible to people with disabilities. The
following are key principles of the guidelines:
1. Perceivable . Information and user interface components must be presentable to users in ways they can
perceive.
2. Operable . User interface components and navigation must be operable.
3. Understandable . Information and the operation of user interface must be understandable.
US Section 508
US Section 508 is a standard that requires governments and federal agencies to make their electronic and
information technology accessible to people with disabilities.
EN 301 549
EN 301 549 is the Harmonized European Standard for Accessibility requirements for ICT products and services.
Next steps
For more information about Power BI accessibility, see the following resources:
Design Power BI reports for accessibility
Consume Power BI reports by using accessibility features
Creating reports in Power BI using accessibility tools
Keyboard shortcuts in Power BI Desktop
Report accessibility checklist
Intro to Power BI Q&A
8/13/2020 • 4 minutes to read • Edit Online
Sometimes the fastest way to get an answer from your data is to perform a search over your data using natural
language. The Q&A feature in Power BI lets you explore your data in your own words using natural language. Q&A
is interactive, even fun. Often, one question leads to others as the visualizations reveal interesting paths to pursue.
Asking the question is just the beginning. Travel through your data, refining or expanding your question,
uncovering new information, zeroing in on details, or zooming out for a broader view. The experience is interactive
and fast, powered by an in-memory storage.
Power BI Q&A is free and available to all users. In Power BI Desktop, report designers can use Q&A to explore data
and create visualizations. In the Power BI service, everyone can explore their data with Q&A. Our mobile apps
support Q&A too, with the Q&A virtual assistant in iOS and the Q&A visual on Android devices. If you have
permission to edit a dashboard or report, you can also pin your Q&A results.
Even before you start typing, Q&A displays a new screen with suggestions to help you form your question. Start
either from one of the suggested questions or type your own questions. Q&A supports a wide range of questions,
including but not limited to:
Ask natural questions Which sales has the highest revenue?
Use relative date filtering Show me sales in the last year
Return only the top N Top 10 products by sales
Provide a filter Show me sales in the USA
Provide complex conditions Show me sales where product category is Category 1 or Category 2
Return a specific visual Show me sales by product as pie chart
Use complex aggregations Show me median sales by product
Sor t results Show me top 10 countries by sales ordered by country code
Compare data Show me date by total sales vs total cost
View trends Show me sales over time
Autocomplete
As you type your question, Power BI Q&A shows relevant and contextual suggestions to help you quickly become
productive with natural language. As you type, you get immediate feedback and results. The experience is similar to
typing in a search engine.
Red/Blue underlines
Q&A shows words with underlines to help you see which words the system understood or didn't recognize. A solid
blue underline indicates that the system successfully matched the word to a field or value in the data-model. The
example below shows that Q&A recognized the word EU Sales.
Often when you type in a word into Q&A, it's marked with a red underline. A red underline can indicate one of two
potential issues. The first type of issue is categorized as low confidence. If you type a vague or ambiguous word, the
field is underlined in red. An example could be the word 'Sales'. Multiple fields could contain the word 'Sales', so
the system uses a red underline to prompt you to choose the field you meant. Another example of low confidence
could be if you type the word 'area', but the column it matches is 'region'. Power BI Q&A recognizes words that
mean the same thing, thanks to the integration with Bing and Office. Q&A underlines the word in red so you know
it's not a direct match.
The second type of issue is when Q&A doesn't recognize the word at all. You could encounter this issue by using a
domain-specific term that isn't mentioned anywhere in the data, or the data fields are incorrectly named. An
example could be using the word 'Costs' though it doesn't exist anywhere in the data. The word is in the English
dictionary, but Q&A marks this term with a red underline.
NOTE
You can customize the blue/red underline colors in the Q&A Visual formatting pane. Also, the Q&A tooling article explains
Teach Q&A, which you use to define terms Q&A didn't recognize.
Visualization results
As you type your question, Q&A tries to instantly interpret and visualize the answer. As part of the latest updates,
Q&A now tries to interpret the question and plot the fields automatically to the correct axis. For example, if you
type 'Sales by year', Q&A detects that year is a date field and always prioritizes placing this field on the X axis. If you
want to change the visualization type, type 'as chart type' after the question. Q&A currently supports these types of
visualizations:
Line chart
Bar chart
Matrix
Table
Card
Area
Pie chart
Scatter/Bubble chart
Add Q&A to a report
You can add Q&A to a report in Power BI Desktop or the Power BI service in two different ways:
Add a Q&A visual.
Add a Q&A button.
To add the Q&A visual to a report, select the new Q&A icon the select the new Q&A visual in the Visualization
pane. Alternatively, double-click anywhere on the report canvas to insert the Q&A visual.
To add a button, on the Home ribbon, select Buttons > Q&A You can completely customize the Q&A button
image.
NOTE
When you start Q&A from the button, it still uses the old Q&A. Subsequent releases of Power BI will change that.
Next steps
You can integrate natural language in your reports in a variety of ways. For more information, see these articles:
Q&A visual
Q&A best practices
Intro to Q&A tooling to train Power BI Q&A
(preview)
5/6/2020 • 4 minutes to read • Edit Online
With Power BI Q&A tooling, you can improve the natural language experience for your users. As a designer or
administrator, you interact with the natural language engine and make improvements in three areas:
Review questions your users have asked.
Teach Q&A to understand questions.
Manage terms you've taught Q&A.
In addition to these dedicated tooling capabilities, the Modeling tab in Power BI Desktop offers more options:
Synonyms
Row labels
Hide from Q&A
Configuring of the linguistic schema (advanced)
Review questions
Select Review questions to see a list of datasets being used in the Power BI service for your tenant. The Review
questions page also displays the dataset owner, workspace, and last refreshed date. From here you can select a
dataset and see what questions users have been asking. The data also shows words that were not recognized. All
data shown here is for the last 28 days.
Teach Q&A
The Teach Q&A section allows you to train Q&A to recognize words. To begin, type a question that contains a
word or words that Q&A doesn't recognize. Q&A prompts you for the definition of that term. Enter either a filter
or a field name that corresponds to what that word represents. Q&A then reinterprets the original question. If
you're happy with the results, you can save your input. To learn more, see Teach Q&A
Manage terms
Anything you've saved from the Teach Q&A section shows up here, so you can review or delete terms you've
defined. Currently you can't edit an existing definition, so to redefine a term you must delete and recreate that
term.
Suggest questions
Without doing any setup, the Q&A visual will suggest several questions to get started with. These questions are
automatically generated based on your data model. In Suggest questions , you can overwrite the auto-generated
questions with your own questions.
To start, type the question you want to add in the text box. In the preview section, you see what the result will look
like in the Q&A visual.
Select the Add button to add this question to Your suggested questions . Every additional question is added to
the end of this list. The questions will show up in the Q&A visual in the same order as they do in this list.
Make sure to select Save to show your list of suggested questions in the Q&A visual.
Next steps
There are a number of best practices for improving the natural language engine. For more information, Q&A best
practices.
Edit Q&A linguistic schema and add phrasings in
Power BI Desktop
5/6/2020 • 15 minutes to read • Edit Online
Using common phrases and natural language to ask questions of your data is powerful. Even more powerful is
when your data answers. When you ask Power BI Q&A a question, it makes a best effort to answer correctly. But for
even better Q&A interactions, you can improve the answers. One way is by editing the linguistic schema.
It all starts with your enterprise data. The better the data model, the easier it will be for users to get quality answers.
One way to improve the model is to add a linguistic schema that defines and categorizes terminology and
relationships between table and column names in your dataset. Power BI Desktop is where you manage your
linguistic schemas.
There are two sides to Q&A. The first side is the preparation, or modeling. The second side is asking questions and
exploring the data, or consuming. In some companies, employees known as data modelers or IT admins may be the
ones to assemble the datasets, create the data models, and publish the datasets to Power BI. A different set of
employees would be the ones to "consume" the data online. In other companies, these roles may be combined.
This article is for the data modelers, the people who optimize datasets to provide the best possible Q&A results.
Prerequisites
If you haven't already read the article on improving your data model for Q&A, you may want to read that article
first. It includes numerous tips for designing and improving your data model and an important section on
adding synonyms.
Download sample .yaml and .pbix files.
Install a .yaml file editor. We recommend Visual Studio Code.
Set up an editor for .yaml files
We recommend using Visual Studio Code to edit linguistic schema .yaml files. Visual Studio Code includes out-of-
the-box support for .yaml files and can be extended to specifically validate the Power BI linguistic schema format.
1. Install Visual Studio Code.
2. Select the sample linguistic schema that you saved earlier: .yaml file (SummerOlympics.lsdl.yaml).
3. Select Visual Studio Code and Always use this app to open .yaml files .
4. In Visual Studio Code, install the YAML Support by Red Hat extension.
a. Select the Extensions tab (last one on the left) or CTRL+SHIFT+X.
b. Search for "yaml" and select YAML Suppor t by Red Hat in the list.
c. Select Install > Reload .
Before you can edit a linguistic schema, you must open (export) it from Power BI Desktop. Saving the .yaml file
back to the same location is considered importing. But you can also import other .yaml files instead. If, for instance,
you have a similar dataset and you've already put in a lot of work adding parts of speech, identifying relationships,
creating phrasings, and creating synonyms, you can use that .yaml file in a different Power BI Desktop file.
Q&A uses all this information together with any enhancements that you make to provide a better answer, auto
completion, and summary of the questions.
NOTE
The sample .yaml file included with this tutorial doesn't contain State:Generated or State:Deleted tags since it was
prepared specifically for this tutorial. To see these tags, open an unedited .pbix file in Relationship view and export the
linguistic schema.
When you import your linguistic schema file back into Power BI Desktop, anything that is marked State:
Generated is ignored, and later regenerated. Thus, if you’d like to change some generated content, remove the
corresponding State: Generated tag as well. Similarly, if you want to remove some generated content, change the
State: Generated tag to State: Deleted so that it isn't regenerated when you import your linguistic schema file.
Export, then import a .yaml file
1. Open the dataset in Model view in Power BI Desktop.
2. On the Modeling tab, select Linguistic Schema > Expor t linguistic schema .
3. Save it. The file name ends with .lsdl.yaml.
4. Open it in Visual Code or another editor.
5. In Model view in Power BI Desktop, on the Modeling tab, select Linguistic Schema > Impor t linguistic
schema .
6. Navigate to the location where you saved the edited .yaml file and select it. A Success message lets you
know that the linguistic schema .yaml file was successfully imported.
Kinds of phrasings
To understand the different types of phrasings, you’re first going to need to remember a couple of basic grammar
terms:
A noun is a person, place, or thing. Examples: car, teenager, Marty, flux capacitor
A verb is an action or state of being. Examples: hatch, burst, devour, eject
An adjective is a descriptive word that modifies a noun. Examples: powerful, magical, golden, stolen
A preposition is a word used before a noun to relate it to a previous noun, verb, or adjective Examples: of, for,
near, from
An attribute is a quality or feature of something.
A name is a word or set of words by which a person, animal, place, or thing is known or referred to.
Attribute phrasings
Attribute phrasings are the workhorse of Q&A, used when one thing is acting as an attribute of another thing.
They’re simple and straightforward, and perform most of the heavy lifting when you haven't defined a subtler,
more detailed phrasing. Attribute phrasings are described using the basic verb “have” (“products have categories”
and "host countries have host cities"). They also automatically allow questions with the prepositions “of” and “for”
(“categories of products”, “orders for products”) and possessive (“John’s orders”). Attribute phrasings are used in
these kinds of questions:
Which customers have orders?
List host cities by country ascending
Show orders that have chai
List customers with orders
What is the category of each product?
Count Robert King's orders
Power BI generates the overwhelming majority of attribute phrasings needed in your model, based on
table/column containment and model relationships. Typically, you don’t need to create them yourself. Here's an
example of how an attribute phrasing looks inside the linguistic schema:
product_has_category:
Binding: {Table: Products}
Phrasings:
- Attribute: {Subject: product, Object: product.category}
Name Phrasings
Name phrasings are helpful if your data model has a table that contains named objects such as athlete names and
customer names. For example, a “product names are names of products” phrasing is essential for being able to use
product names in questions. Name phrasing also enables “named” as a verb (for example, “List customers named
John Smith”). However, it's most important when used in combination with other phrasings, to allow a name value
to be used to refer to a particular table row. For example, in “Customers that bought chai”, Q&A can tell the value
“chai” refers to the whole row of the product table, rather than just a value in the product name column. Name
phrasings are used in these kinds of questions:
Which employees are named Robert King
Who is named Ernst Handel
Fernand De Montigny's sports
Count of athletes named Mary
What did Robert King buy?
Assuming you used a sensible naming convention for name columns in your model (for example, “Name” or
“ProductName” rather than “PrdNm”), Power BI generates most of the name phrasings needed in your model
automatically, so you usually don’t need to create them yourself.
Here's an example of how a name phrasing looks inside of the linguistic schema:
employee_has_name:
Binding: {Table: Employees}
Phrasings:
- Name:
Subject: employee
Name: employee.name
Adjective phrasings
Adjective phrasings define new adjectives used describe things in your model. For example, “happy customers are
customers where rating > 6” phrasing is needed to ask questions like “list the happy customers in Des Moines”.
There are several forms of adjective phrasings, for use in different situations.
Simple adjective phrasings define a new adjective based on a condition, such as “discontinued products are
products where status = D”. Simple adjective phrasings are used in these kinds of questions:
Which products are discontinued?
List the discontinued products
List the gold medalists
Products that are backordered
Here's an example of how a simple adjective phrasing looks inside of the linguistic schema:
product_is_discontinued:
Measurement adjective phrasings define a new adjective based on a numeric value that indicates the extent to
which the adjective applies, such as “lengths indicate how long rivers are” and "small country/regions have small
land areas". Measurement adjective phrasings are used in these kinds of questions:
List the long rivers
Which rivers are the longest?
List the smallest country/regions that won gold in basketball
How long is the Rio Grande?
Here's an example of how a measurement adjective phrasing looks inside of the linguistic schema:
river_has_length:
Dynamic adjective phrasings define a set of new adjectives based on values in a column in the model, such as
“colors describe products” and "events have event genders". Dynamic adjective phrasings are used in these kinds of
questions:
List the red products
Which products are green?
Show skating events for females
Count issues that are active
Here's an example of how a dynamic adjective phrasing looks inside the linguistic schema:
product_has_color:
Noun phrasings
Noun phrasings define new nouns that describe subsets of things in your model. They often include some type of
model-specific measurement or condition. For example, for our Olympics model we might want to add phrasings
that distinguish champions from medalists, ball sports from water sports, teams versus individuals, age categories
of athletes (teens, adults, seniors), etc. For our movie database, we might want to add noun phrasings for “flops are
movies where net profit < 0” so that we can ask questions like “count the flops by year”. There are two forms of
noun phrasings, for use in different situations.
Simple noun phrasings define a new noun based on a condition, such as “contractors are employees where full
time = false” and "champion is athlete where count of medals >5". Simple noun phrasings are used in these kinds
of questions:
Which employees are contractors?
Count the contractors in Portland
How many champions in 2016
Here's an example of how a simple noun phrasing looks inside of the linguistic schema:
employee_is_contractor:
Dynamic noun phrasings define a set of new nouns based on values in a column in the model, such as “jobs define
subsets of employees”. Dynamic noun phrasings are used in these kinds of questions:
List the cashiers in Chicago
Which employees are baristas?
List the referees in 1992
Here's an example of how a dynamic noun phrasing looks inside of the linguistic schema: employee_has_job:
Preposition phrasings
Preposition phrasings are used to describe how things in your model are related via prepositions. For example, a
“cities are in countries” phrasing improves understanding of questions like “count the cities in Washington”. Some
preposition phrasings are created automatically when a column is recognized as a geographical entity. Preposition
phrasings are used in these kinds of questions:
Count the customers in New York
List the books about linguistics
Which city is Robert King in?
How many books are by Stephen Pinker?
Here's an example of how a preposition phrasing looks inside of the linguistic schema: customers_are_in_cities:
Binding: {Table: Customers}
Phrasings:
- Preposition:
Subject: customer
Prepositions: [in]
Object: customer.city
Verb phrasings
Verb phrasings are used to describe how things in your model are related via verbs. For example, a “customers buy
products” phrasing improves understanding of questions like “who bought cheese?” and “what did John buy?”
Verb phrasings are the most flexible of all of the types of phrasings, often relating more than two things to each
other, such as in “employees sell customers products”. Verb phrasings are used in these kinds of questions:
Who sold what to whom?
Which employee sold chai to John?
How many customers were sold chai by Mary?
List the products that Mary sold to John.
Which discontinued products were sold to Chicago customers by Boston employees?
Verb phrasings can also contain prepositional phrases, thereby adding to their flexibility, such as in “athletes win
medals at competitions” or “customers are given refunds for products”. Verb phrasings with prepositional phrases
are used in these kinds of questions:
How many athletes won a gold medal at the Visa Championships?
Which customers were given a refund for cheese?
At which competition did Danell Leyva win a bronze medal?
Some verb phrasings are created automatically when a column is recognized as containing both a verb and a
preposition.
Here's an example of how a verb phrasing looks inside of the linguistic schema:
customers_buy_products_from_salespeople:
Another example would be adding the alternate phrasing “employees sell customers products” to the “customers
buy products from employees” relationship. Note that you don't need to add variations like “employees sell
products to customers” or “products are sold to customers by employees”, since the “by” and “to” variations of the
subject and indirect object are inferred automatically by Q&A.
Data sources
Supported data sources
Power BI Q&A supports the following configurations of data sources in the Power BI service:
Import mode
Live connect to Azure Analysis Services
Live connect to SQL Server Analysis Services (with a gateway)
Power BI datasets.
In each of these configurations, row-level security is also supported.
Data sources not supported
Power BI Q&A currently does not support the following configurations:
Object level security with any type of data source
DirectQuery against any source. A workaround is to use Live connect with Azure Analysis Services, which uses
DirectQuery.
Composite models
Reporting Services
Tooling limitations
The new tooling dialog allows users to customize and improve the natural language in Q&A. To learn more about
tooling, read the intro to Q&A tooling.
NOTE
Q&A Tooling only supports import mode. It doesn't yet support connecting to an on-premises or Azure Analysis Services
data source. This current limitation will be removed in subsequent releases of Power BI.
Next steps
There are a number of best practices for improving the natural language engine. For more information, Q&A best
practices.
Visualization types in Power BI
8/13/2020 • 4 minutes to read • Edit Online
Power BI visualizations
We'll be adding new visualizations, stay tuned!
And check out the Microsoft AppSource , where you'll find a growing list of Power BI visuals you can download
and use in your own dashboards and reports. Feeling creative? Learn how to create and add your own visuals to
this community site.
TIP
The Basic Area chart is based on the line chart with the area between the axis and line filled in.
TIP
Bar charts are the standard for looking at a specific value across different categories.
Cards: Multi row
TIP
A Combo chart combines a column chart and a line chart. Choose from Line and Stacked Column and Line and Clustered
Column.
TIP
Doughnut charts are similar to Pie charts. They show the relationship of parts to a whole.
TIP
Displays current status in the context of a goal.
A key influencer chart displays the major contributors to a selected result or value.
For more information, see Key influencer charts in Power BI
KPIs
TIP
Displays progress toward a measurable goal.
TIP
Emphasize the overall shape of an entire series of values, usually over time.
TIP
Used to associate both categorical and quantitative information with spatial locations.
For more information, see Tips and tricks for map visuals.
Maps: ArcGIS maps
TIP
Compares regions by color.
TIP
A table supports two dimensions, but a matrix makes it easier to display data meaningfully across multiple dimensions --
it supports a stepped layout. The matrix automatically aggregates the data and enables drill down.
Report designers can create a Power App and embed it into a Power BI report as a visual. Consumers can
interact with that visual within the Power BI report.
For more information, see Add a Power Apps visual to your report.
Q&A visual
TIP
Similar to the Q&A experience on dashboards, the Q&A visual lets you ask questions about your data using natural
language.
TIP
Ribbon charts show which data category has the highest rank (largest value). Ribbon charts are effective at showing rank
change, with the highest range (value) always displayed on top for each time period.
TIP
Display relationships between 2 (scatter) or 3 (bubble) quantitative measures -- whether or not, in which order, etc.
TIP
Too many data points on a visual can bog it down, so a sophisticated sampling algorithm is used to ensure the accuracy of
the visualization.
For more information, see High Density Scatter charts in Power BI.
Slicers
TIP
Work well with quantitative comparisons among items where there are many categories.
TIP
Are charts of colored rectangles, with size representing value. They can be hierarchical, with rectangles nested within the
main rectangles.
Waterfall charts
TIP
Waterfall charts show a running total as values are added or subtracted.
Power BI Report Builder is a tool for authoring paginated reports that you can publish to the Power BI service.
When you design a paginated report, you're creating a report definition that specifies what data to retrieve, where
to get it, and how to display it. When you run the report, the report processor takes the report definition you have
specified, retrieves the data, and combines it with the report layout to generate the report. You preview your report
in Report Builder. Then publish your report to the Power BI service.
Ready to start authoring? Install Power BI Report Builder from the Microsoft Download Center.
Prefer learning from videos? Check out the Video-based course: Power BI Paginated Reports in a Day.
The following paginated report features a matrix with row and column groups, sparklines, indicators, and a
summary pie chart in the corner cell, accompanied by a map with two sets of geographic data represented by color
and by circle size.
Next steps
What are paginated reports in Power BI Premium?
Video-based course: Power BI Paginated Reports in a Day
Getting around in Report Design View for paginated
reports
3/7/2020 • 5 minutes to read • Edit Online
Report Design View in Power BI Report Builder is the design space for creating paginated reports that you can
publish to the Power BI service. The design surface is at the center of Report Builder, with the ribbon and panes
around it. The design surface is where you add and organize your report items. This article explains the panes you
use to add, select, and organize your report resources, and change report item properties.
TIP
If you drag a field from the Report Data pane directly to the report design surface instead of placing it in a data region such
as a table or chart, when you run the report, you will see only the first value from the data in that field.
You can also drag built-in fields from the Report Data pane to the report design surface. When rendered, these
fields provide information about the report, such as the report name, the total number of pages in the report, and
the current page number.
Some things are automatically added to the Report Data pane when you add something to the report design
surface. For example, if you embed an image in your report, it will be added to the Images folder in the Report Data
pane.
NOTE
You can use the New button to add a new item to the Report Data pane. You can add multiple datasets from the same data
source or from other data sources to the report. To add a new dataset from the same data source, right-click a data source >
Add Dataset .
3 Parameters pane
With report parameters, you can control report data, connect related reports together, and vary report
presentation. The Parameters pane provides a flexible layout for the report parameters.
Read more about Report Parameters
4 Properties pane
Every item in a report, including data regions, images, text boxes, and the report body itself, has properties
associated with it. For example, the BorderColor property for a text box shows the color value of the text box's
border, and the PageSize property for the report shows the page size of the report.
These properties are displayed in the Properties pane. The properties in the pane change depending on the report
item that you select.
To see the Properties pane, on the View tab in the Show/Hide group > Proper ties .
Changing Property Values
In Report Builder, you can change the properties for report items several ways:
By selecting buttons and lists on the ribbon.
By changing settings within dialog boxes.
By changing property values within the Properties pane.
The most commonly used properties are available in the dialog boxes and on the ribbon.
Depending on the property, you can set a property value from a drop-down list, type the value, or select
<Expression> to create an expression.
5 Grouping pane
Groups are used to organize your report data into a visual hierarchy and to calculate totals. You can view the row
and column groups within a data region on the design surface and also in the Grouping pane. The Grouping pane
has two panes: Row Groups and Column Groups. When you select a data region, the Grouping pane displays all the
groups within that data region as a hierarchical list: Child groups appear indented under their parent groups.
You can create groups by dragging fields from the Report Data pane and dropping them on the design surface or in
the Grouping pane. In the Grouping pane, you can add parent, adjacent, and child groups, change group properties,
and delete groups.
The Grouping pane is displayed by default but you can close it by clearing the Grouping pane check box on the
View tab. The Grouping pane is not available for the Chart or Gauge data regions.
For more information, see Grouping Pane and Understanding Groups.
Next steps
What are paginated reports in Power BI Premium?
Planning a report in Power BI Report Builder
3/7/2020 • 2 minutes to read • Edit Online
Power BI Report Builder lets you create many kinds of paginated reports. For example, you can create reports that
show summary or detailed sales data, marketing and sales trends, operational reports, or dashboards. You can also
create reports that take advantage of richly formatted text, such as for sales orders, product catalogs, or form
letters. All these reports are created by using different combinations of the same basic building blocks in Report
Builder. To create a useful, easily understood report, it helps to plan first. Here are some things you might want to
consider before you get started:
Next steps
What are paginated reports in Power BI Premium?
Report data in Power BI Report Builder
8/13/2020 • 3 minutes to read • Edit Online
Report data can come from multiple sources of data in your organization. Your first step in designing a Power BI
Report Builder report is to create data sources and datasets that represent the underlying report data. Each data
source includes data connection information. Each dataset includes a query command that defines the set of fields
to use as data from a data source. To visualize data from each dataset, add a data region, such as a table, matrix,
chart, or map. When the report is processed, the queries run on the data source, and each data region expands as
needed to display the query results for the dataset.
Learn how to Create an embedded data source for paginated reports in Power BI Report Builder.
Terms
Data connection. Also known as a data source. A data connection includes a name and connection
properties that are dependent on the connection type. By design, a data connection doesn't include
credentials. A data connection doesn't specify which data to retrieve from the external data source. To do
that, you specify a query when you create a dataset.
Connection string. A connection string is a string version of the connection properties that are needed to
connect to a data source. Connection properties differ based on data connection type.
NOTE
Data source connection strings can't be expression-based.
Embedded data source. Also known as a report-specific data source. A data source that is defined in a
report and used only by that report.
Credentials. Credentials are the authentication information that must be provided to allow you access to
external data.
Next steps
What are paginated reports in Power BI Premium?
Data retrieval guidance for paginated reports
Supported data sources for Power BI paginated
reports
8/13/2020 • 2 minutes to read • Edit Online
This article spells out supported data sources for paginated reports in the Power BI service, and how to connect to
Azure SQL Database data sources. Some data sources are supported natively. You can connect to others by way of
data gateways.
DATA SO URC E A UT H EN T IC AT IO N N OT ES
Azure SQL Database Basic, single sign-on (SSO), OAuth2 You may use an Enterprise Gateway
Azure SQL Data Warehouse with Azure SQL DB. However, you may
not use SSO or oAuth2 to authenticate
in those scenarios.
Azure SQL Managed Instance Basic via Public or Private Endpoint (Private
Endpoint needs to be routed through
Enterprise Gateway)
Azure Analysis Services SSO, OAuth2 The AAS firewall must be disabled or
configured to allow all IP ranges in the
BlackForest region. This applies only in
the BlackForest region.
Except for Azure SQL Database, all data sources are ready to use after you have uploaded the report to the Power BI
service. The data sources default to using single sign-on (SSO), where applicable. For Azure Analysis Services, you
can change the authentication type to OAuth2. However, once the authentication type for a given data source is
changed to OAuth2, it can't revert back to use SSO. In addition, this change applies to all the reports that use that
data source across all workspaces for a given tenant. Row-level security in paginated reports won't work unless
users choose SSO for authentication type.
For Azure SQL Database data sources, you need to supply more information, as described in the Azure SQL
Database Authentication section.
If you don't supply any credentials, an error occurs when you run the report. Select Continue to go to the Data
source credentials page for the report you just uploaded:
Select the Edit credentials link for a given data source to bring up the Configure dialog box:
For Azure SQL Database data sources, here are the supported authentication types:
Basic (user name and password)
SSO (single sign-on)
OAuth2 (stored AAD token)
For SSO and OAuth2 to work correctly, the Azure SQL Database server that the data source is connecting to needs
to have AAD authentication support enabled. For the OAuth2 authentication method, AAD generates a token and
stores it for future data source access. To use the SSO authentication method instead, select the SSO option right
below it, End users use their own OAuth2 credentials when accessing this data source via DirectQuer y .
Next steps
View a paginated report in the Power BI service
More questions? Try the Power BI Community
Report design tips in Power BI Report Builder
3/7/2020 • 9 minutes to read • Edit Online
Use the following tips to help design your paginated reports in Power BI Report Builder.
Designing reports
A well-designed report conveys information that leads to action. Identify the questions that the report helps
to answer. Keep those questions in mind as you design the report.
To design effective data visualizations, think about how to display information that is easy for the report user
to understand. Choose a data region that is a good match for the data that you want to visualize. For
example, a chart effectively conveys summary and aggregated information better than a table that spans
many pages of detailed information. You can visualize data from a dataset in any data region, which includes
charts, maps, indicators, sparklines, data bars, and tabular data in various grid layouts based on a tablix.
If you plan to deliver the report in a specific export format, test the export format early in your design.
Feature support varies based on the renderer that you choose.
When you build complex layouts, build the layout in stages. You can use rectangles as containers to organize
report items. You can build data regions directly on the design surface to maximize your working area, and
then, as you complete each one, drag it to the rectangle container. By using rectangles as containers, you can
position all its contents in one step. Rectangles also help control the way report items render on each page.
To reduce clutter in a report, consider using conditional visibility for specific report items and let the user
choose whether to show the items. You can set visibility based on a parameter or a text box toggle. You can
add conditionally hidden text boxes to show interim expression results. When a report displays unexpected
data, you can show these interim results to help debug expressions.
When you work with nested items in tablix cells or rectangles, you can set different background colors for
the container and contained items. By default, the background color is No color . Items with a specific
background color show through items with a background color set to No color . This technique can help you
select the right item to set display properties, such as border visibility on tablix cells.
For more information about things to consider as you design your report, see Planning a Report in Report Builder).
Next steps
What are paginated reports in Power BI Premium?
Tables, matrixes, and lists in Power BI Report Builder
3/7/2020 • 6 minutes to read • Edit Online
In Report Builder, tables, matrixes, and lists are data regions that display paginated report data in cells that are
organized into rows and columns. The cells typically contain text data such as text, dates, and numbers but they can
also contain gauges, charts, or report items such as images. Collectively, tables, matrixes, and lists are frequently
referred to as tablix data regions.
The table, matrix, and list templates are built on the tablix data region, which is a flexible grid that can display data
in cells. In the table and matrix templates, cells are organized into rows and columns. Because templates are
variations of the underlying generic tablix data region, you can display data in combination of template formats
and change the table, matrix, or list on to include the features of another data region as you develop your report.
For example, if you add a table and find it does not serve your needs, you can add column groups to make the
table a matrix.
The table and matrix data regions can display complex data relationships by including nested tables, matrixes, lists,
charts and gauges. Tables and matrixes have a tabular layout and their data comes from a single dataset, built on a
single data source. The key difference between tables and matrixes is that tables can include only row groups,
where as matrixes have row groups and column groups.
Lists are a little different. They support a free-layout that and can include multiple peer tables or matrixes, each
using data from a different dataset. Lists can also be used for forms, such as invoices.
The following pictures show simple reports with a table, matrix, or list.
Tables
Use a table to display detail data, organize the data in row groups, or both. The Table template contains three
columns with a table header row and a details row for data. The following figure shows the initial table template,
selected on the design surface:
You can group data by a single field, by multiple fields, or by writing your own expression. You can create nested
groups or independent, adjacent groups and display aggregated values for grouped data, or add totals to groups.
For example, if your table has a row group called Categor y , you can add a subtotal for each group as well as a
grand total for the report. To improve the appearance of the table and highlight data you want to emphasize, you
can merge cells and apply formatting to data and table headings.
You can initially hide detail or grouped data, and include drilldown toggles to enable a user to interactively choose
how much data to show.
Matrixes
Use a matrix to display aggregated data summaries, grouped in rows and columns, similar to a PivotTable or
crosstab. The number of rows and columns for groups is determined by the number of unique values for each row
and column groups. The following figure shows the initial matrix template, selected on the design surface:
You can group data by multiple fields or expressions in row and column groups. At run time, when the report data
and data regions are combined, a matrix grows horizontally and vertically on the page as columns for column
groups and rows for row groups are added. The matrix cells display aggregate values that are scoped to the
intersection of the row and column groups to which the cell belongs. For example, if your matrix has a row group
(Category) and two column groups (Territory and Year) that display the sum of sales, the report displays two cells
with sums of sales for each value in the Category group. The scope of the cells are the two intersections are:
Category and Territory and Category and Year. The matrix can include nested and adjacent groups. Nested groups
have a parent-child relationship and adjacent groups a peer relationship. You can add subtotals for any and all
levels of nested row and column groups within the matrix.
To make the matrix data more readable and highlight the data you want to emphasize, you can merge cells or split
horizontally and vertically and apply formatting to data and group headings.
You can also include drilldown toggles that initially hide detail data; the user can then click the toggles to display
more or less detail as needed.
Lists
Use a list to create a free-form layout. You are not limited to a grid layout, but can place fields freely inside the list.
You can use a list to design a form for displaying many dataset fields or as a container to display multiple data
regions side by side for grouped data. For example, you can define a group for a list; add a table, chart, and image;
and display values in table and graphic form for each group value, as you might for an employee or patient record.
Preparing data
A table, matrix, and list data regions display data from a dataset. You can prepare the data in the query that
retrieves the data for the dataset or by setting properties in the table, matrix, or list.
The query languages such as Transact-SQL, that you use to retrieve the data for the report datasets can prepare the
data by applying filters to include only a subset of the data, replacing null values or blanks with constants that
make the report more readable, and sorting and grouping data.
If you choose to prepare the data in the table, matrix, or list data region of a report, you set properties on the data
region or cells within the data region. If you want to filter or sort the data, set the properties on the data region. For
example, to sort the data you specify the columns to sort on and the sort direction. If you want to provide an
alternative value for a field, you set the values of the cell text that displays the field. For example, to display Blank
when a field is empty or null, you use an expression to set the value.
Building and configuring a table, matrix, or list
When you add tables or matrixes to your report, you can use the Table and Matrix Wizard or build them manually
from the templates that Report Builder provides. Lists are built manually from the list template.
The wizard guides you through the steps to quickly build and configure a table or matrix. After you complete the
wizard or if you build the tablix data regions from scratch, you can further configure and refine them. The dialog
boxes, available from the right-click menus on the data regions, make it easy to set the most commonly used
properties for page breaks, repeatability and visibility of headers and footers, display options, filters, and sorting.
But the tablix data region provides a wealth of additional properties, which you can set only in the Properties pane
of Report Builder. For example, if you want to display a message when the dataset for a table, matrix, or list is
empty, you specify the message text in the NoRowsMessage tablix property in the Properties pane.
Next steps
What are paginated reports in Power BI Premium?
Report parameters in Power BI Report Builder
3/7/2020 • 9 minutes to read • Edit Online
This topic describes the common uses for Power BI Report Builder report parameters, the properties you can set,
and much more. Report parameters enable you to control report data, connect related reports together, and vary
report presentation. You can use report parameters in paginated reports you create in Report Builder.
1. Parameters pane The report viewer toolbar displays a prompt and default value for each parameter. You
can customize the layout of parameters in the parameters pane.
2. @SalesDate parameter The parameter @SalesDate is data type DateTime . The prompt Select the Date
appears next to the text box. To modify the date, type a new date in the text box or use the calendar control.
3. @ShowAll parameter The parameter @ShowAll is data type Boolean . Use the radio buttons to specify
True or False .
4. Show or Hide Parameter Area handle On the report viewer toolbar, click this arrow to show or hide the
parameters pane.
5. @Categor yQuota parameter The parameter @CategoryQuota is data type Float , so it takes a numeric
value. @CategoryQuota is set to allow multiple values.
6. View Repor t After you enter parameter values, click View Repor t to run the report. If all parameters have
default values, the report runs automatically on first view.
Creating parameters
You can create report parameters in a few different ways.
NOTE
Not all data sources support parameters.
NOTE
Because parameters are managed independently on the server, republishing a main report with new parameter settings
doesn't overwrite the existing parameters settings on the report.
Parameter values
The following are options for selecting parameter values in the report.
Select a single parameter value from a drop-down list.
Select multiple parameter values from a drop-down list.
Select a value from a drop-down list for one parameter, which determines the values that are available in the
drop-down list for another parameter. These are cascading parameters. Cascading parameters enables you
to successively filter parameter values from thousands of values to a manageable number. For more
information, see Use cascading parameters in paginated reports.
Run the report without having to first select a parameter value because a default value has been created for
the parameter.
Name Type a case-sensitive name for the parameter. The name must
begin with a letter and can have letters, numbers, an
underscore (_). The name cannot have spaces. For
automatically generated parameters, the name matches the
parameter in the dataset query. By default, manually created
parameters are similar to ReportParameter1.
Prompt The text that appears next to the parameter on the report
viewer toolbar.
Data type A report parameter must be one of the following data types:
Allow blank value Select this option if the value of the parameter can be an
empty string or a blank.
Allow null value Select this option if the value of the parameter can be a null.
If you specify valid values for a parameter, and you want null
to be one of the valid values, you must include null as one of
the values that you specify. Selecting this option doesn't
automatically include a null for available values.
Allow multiple values Provide available values to create a drop-down list that your
users can choose from. This is a good way to ensure that only
valid values are submitted in the dataset query.
If the data that provides values changes rapidly, the list the
user sees might not be the most current.
Visible Select this option to display the report parameter at the top of
the report when it's run. This option allows users to select
parameter values at run time.
Available values If you have specified available values for a parameter, the valid
values always appear as a drop-down list. For example, if you
provide available values for a DateTime parameter, a drop-
down list for dates appears in the parameter pane instead of a
calendar control.
Default values Set default values from a query or from a static list.
Always refresh
Choose this option when the report parameter is used directly
or indirectly in a dataset query or parameter expression. This
option sets UsedInQuer y to True.
Never refresh
Choose this option when the report parameter is not used
directly or indirectly in a dataset query or parameter
expression. This option sets UsedInQuer y to False.
Dataset query
To filter data in the dataset query, you can include a restriction clause that limits the retrieved data by specifying
values to include or exclude from the result set.
Use the query designer for the data source to help build a parameterized query.
For Transact-SQL queries, different data sources support different syntax for parameters. Support ranges
from parameters that are identified in the query by position or by name. In the relational query designer,
you must select the parameter option for a filter to create a parameterized query.
For queries that are based on a multidimensional data source such as Microsoft SQL Server Analysis
Services, you can specify whether to create a parameter based on a filter that you specify in the query
designer.
Next steps
What are paginated reports in Power BI Premium?
Use cascading parameters in paginated reports
URL parameters in paginated reports in Power BI
8/13/2020 • 3 minutes to read • Edit Online
You can send commands to paginated reports in Power BI by adding a parameter to a URL. For example, you may
have viewed the report using a specific set of report parameter values. You encapsulate this information in the URL
by using predefined URL access parameters. You further customize how Power BI processes the report by
embedding parameters for rendering formats, or for the look and feel of the report toolbar. You then paste this URL
directly into an email or Web page so others experience your report in the same manner in the browser.
Here are actions you can perform through URL access parameters:
Send report parameters to a report.
Initiate the export of the report content in a supported file format.
Hide or view the parameters pane.
Specify DeviceInfo setting.
For the complete list of commands and settings available through URL access, seeURL access parameter reference
later in this article.
powerbiserviceurl?rp:parametervalueh&rdl:parameter=value
Syntax description
powerbiserviceurl
The Web service URL of your Power BI tenant. For example:
& Used to separate name and value pairs of URL access parameters.
prefix A prefix for the URL parameter (for example,rp:orrdl:) that specifies an action in the Power BI service.
NOTE
Report parameters require a parameter prefix and are case-sensitive.
Next steps
Pass a report parameter in a URL for a paginated report in Power BI
What are paginated reports in Power BI Premium?
Expression examples in Power BI Report Builder
3/7/2020 • 18 minutes to read • Edit Online
Expressions are used frequently in Power BI Report Builder paginated reports to control content and report appearance. Expressions are written in Microsoft Visual
Basic, and can use built-in functions, custom code, report and group variables, and user-defined variables. Expressions begin with an equal sign (=).
This topic provides examples of expressions that can be used for common tasks in a report.
Visual Basic Functions Examples for date, string, conversion and conditional Visual Basic functions.
Report Functions Examples for aggregates and other built-in report functions.
Appearance of Report Data Examples for changing the appearance of a report.
Properties Examples for setting report item properties to control format or visibility.
Parameters Examples for using parameters in an expression.
Custom Code Examples of embedded custom code.
For more information about simple and complex expressions, where you can use expressions, and the types of references that you can include in an expression, see
topics under Expressions in Power BI Report Builder.
Functions
Many expressions in a report contain functions. You can format data, apply logic, and access report metadata using these functions. You can write expressions that use
functions from the Microsoft Visual Basic run-time library, and from the xref:System.Convert and xref:System.Math namespaces. You can add references to functions
in custom code. You can also use classes from the Microsoft .NET Framework, including xref:System.Text.RegularExpressions .
= Round(1.3)
You can also write an expression to round a value to a multiple that you specify, similar to the MRound function in Excel. Multiply the value by a factor that
creates an integer, round the number, and then divide by the same factor. For example, to round 1.3 to the nearest multiple of .2 (1.4), use the following
expression:
= Round(1.3*5)/5
Date functions
The Today function provides the current date. This expression can be used in a text box to display the date on the report, or in a parameter to filter data based
on the current date.
=Today()
Use the DateInter val function to pull out a specific part of a date. Here are some valid DateInter val parameters:
DateInterval.Second
DateInterval.Minute
DateInterval.Hour
DateInterval.Weekday
DateInterval.Day
DateInterval.DayOfYear
DateInterval.WeekOfYear
DateInterval.Month
DateInterval.Quarter
DateInterval.Year
For example, this expression will show the number of the week in the current year for today's date:
=DatePart(DateInterval.WeekOfYear, today())
The DateAdd function is useful for supplying a range of dates based on a single parameter. The following expression provides a date that is six months after
the date from a parameter named StartDate.
=DateAdd(DateInterval.Month, 6, Parameters!StartDate.Value)
The Year function displays the year for a particular date. You can use this to group dates together or to display the year as a label for a set of dates. This
expression provides the year for a given group of sales order dates. The Month function and other functions can also be used to manipulate dates. For more
information, see the Visual Basic documentation.
=Year(Fields!OrderDate.Value)
You can combine functions in an expression to customize the format. The following expression changes the format of a date in the form month-day-year to
month-week-week number. For example, 12/23/2009 to December Week 3:
When used as a calculated field in a dataset, you can use this expression on a chart to aggregate values by week within each month.
The following expression formats the SellStartDate value as MMM-YY. SellStartDate field is a datetime data type.
=FORMAT(Fields!SellStartDate.Value, "MMM-yy")
The following expression formats the SellStartDate value as dd/MM/yyyy. The SellStartDate field is a datetime data type.
=FORMAT(Fields!SellStartDate.Value, "dd/MM/yyyy")
The CDate function converts the value to a date. The Now function returns a date value containing the current date and time according to your system.
DateDiff returns a Long value specifying the number of time intervals between two Date values.
The following example displays the start date of the current year
=DateAdd(DateInterval.Year,DateDiff(DateInterval.Year,CDate("01/01/1900"),Now()),CDate("01/01/1900"))
The following example displays the start date for the previous month based on the current month.
=DateAdd(DateInterval.Month,DateDiff(DateInterval.Month,CDate("01/01/1900"),Now())-1,CDate("01/01/1900"))
The following expression generates the interval years between SellStartDate and LastReceiptDate. These fields are in two different datasets, DataSet1 and
DataSet2.
The DatePar t function returns an Integer value containing the specified component of a given Date value.The following expression returns the year for the
first value of the SellStartDate in DataSet1. The dataset scope is specified because there are multiple datasets in the report.
The DateSerial function returns a Date value representing a specified year, month, and day, with the time information set to midnight. The following example
displays the ending date for the prior month, based on the current month.
The following expressions display various dates based on a date parameter value selected by the user.
Yesterday =DateSerial(Year(Parameters!TodaysDate.Value),Month(Parameters!TodaysDate.Value),Day(Parameters!To
1)
Format dates and numbers in a string with the Format function. The following expression displays values of the StartDate and EndDate parameters in long
date format:
If the text box contains only a date or number, you should use the Format property of the text box to apply formatting instead of the Format function within
the text box.
The Right , Len , and InStr functions are useful for returning a substring, for example, trimming DOMAIN\username to just the user name. The following
expression returns the part of the string to the right of a backslash (\) character from a parameter named User:
The following expression results in the same value as the previous one, using members of the .NET Framework xref:System.String class instead of Visual
Basic functions:
=Parameters!User.Value.Substring(Parameters!User.Value.IndexOf("\")+1, Parameters!User.Value.Length-Parameters!User.Value.IndexOf("\")-1)
Display the selected values from a multivalue parameter. The following example uses the Join function to concatenate the selected values of the parameter
MySelection into a single string that can be set as an expression for the value of a text box in a report item:
= Join(Parameters!MySelection.Value)
The following example does the same as the above example, as well as displays a text string prior to the list of selected values.
The Regex functions from the .NET Framework xref:System.Text.RegularExpressions are useful for changing the format of existing strings, for example,
formatting a telephone number. The following expression uses the Replace function to change the format of a ten-digit telephone number in a field from
"nnn-nnn-nnnn" to "(nnn) nnn-nnnn":
NOTE
Verify that the value for Fields!Phone.Value has no extra spaces and is of type xref:System.String .
Lookup
By specifying a key field, you can use the Lookup function to retrieve a value from a dataset for a one-to-one relationship, for example, a key-value pair. The
following expression displays the product name from a dataset ("Product"), given the product identifier to match on:
LookupSet
By specifying a key field, you can use the LookupSet function to retrieve a set of values from a dataset for a one-to-many relationship. For example, a person
can have multiple telephone numbers. In the following example, assume the dataset PhoneList contains a person identifier and a telephone number in each
row. LookupSet returns an array of values. The following expression combines the return values into a single string and displays the list of telephone
numbers for the person specified by ContactID:
Conversion functions
You can use Visual Basic functions to convert a field from the one data type to a different data type. Conversion functions can be used to convert the default data type
for a field to the data type needed for calculations or to combine text.
The following expression converts the constant 500 to type Decimal in order to compare it to a Transact-SQL money data type in the Value field for a filter
expression.
=CDec(500)
The following expression displays the number of values selected for the multivalue parameter MySelection.
=CStr(Parameters!MySelection.Count)
Decision functions
The Iif function returns one of two values depending on whether the expression is true or not. The following expression uses the Iif function to return a
Boolean value of True if the value of LineTotal exceeds 100. Otherwise it returns False :
Use multiple IIF functions (also known as "nested IIFs") to return one of three values depending on the value of PctComplete . The following expression can be
placed in the fill color of a text box to change the background color depending on the value in the text box.
Values greater than or equal to 10 display with a green background, between 1 and 9 display with a blue background, and less than 1 display with a red
background.
A different way to get the same functionality uses the Switch function. The Switch function is useful when you have three or more conditions to test. The
Switch function returns the value associated with the first expression in a series that evaluates to true:
=Switch(Fields!PctComplete.Value >= 10, "Green", Fields!PctComplete.Value >= 1, "Blue", Fields!PctComplete.Value = 1, "Yellow", Fields!PctComplete.Value
<= 0, "Red")
Values greater than or equal to 10 display with a green background, between 1 and 9 display with a blue background, equal to 1 display with a yellow
background, and 0 or less display with a red background.
Test the value of the ImportantDate field and return "Red" if it's more than a week old, and "Blue" otherwise. This expression can be used to control the Color
property of a text box in a report item:
=IIF(DateDiff("d",Fields!ImportantDate.Value, Now())>7,"Red","Blue")
Test the value of the PhoneNumber field and return "No Value" if it's null (Nothing in Visual Basic); otherwise return the phone number value. This expression
can be used to control the value of a text box in a report item.
Test the value of the Department field and return either a subreport name or a null (Nothing in Visual Basic). This expression can be used for conditional
drillthrough subreports.
Test if a field value is null. This expression can be used to control the Hidden property of an image report item. In the following example, the image specified
by the field [LargePhoto] is displayed only if the value of the field is not null.
=IIF(IsNothing(Fields!LargePhoto.Value),True,False)
The MonthName function returns a string value containing the name of the specified month. The following example displays NA in the Month field when the
field contains the value of 0.
IIF(Fields!Month.Value=0,"NA",MonthName(IIF(Fields!Month.Value=0,1,Fields!Month.Value)))
Report functions
In an expression, you can add a reference to additional report functions that manipulate data in a report. This section provides examples for two of these functions.
Sum
The Sum function can total the values in a group or data region. This function can be useful in the header or footer of a group. The following expression
displays the sum of data in the Order group or data region:
=Sum(Fields!LineTotal.Value, "Order")
You can also use the Sum function for conditional aggregate calculations. For example, if a dataset has a field that is named State with possible values Not
Started, Started, Finished, the following expression, when placed in a group header, calculates the aggregate sum for only the value Finished:
RowNumber
The RowNumber function, when used in a text box within a data region, displays the row number for each instance of the text box in which the expression
appears. This function can be useful to number rows in a table. It can also be useful for more complex tasks, such as providing page breaks based on number
of rows. For more information, see Page Breaks in this topic.
The scope you specify for RowNumber controls when renumbering begins. The Nothing keyword indicates that the function will start counting at the first
row in the outermost data region. To start counting within nested data regions, use the name of the data region. To start counting within a group, use the name
of the group.
=RowNumber(Nothing)
The following expression, placed in a text box in the footer of a report, provides page number and total pages in the report:
The following examples describe how to display the first and last values from a page in the page header, similar to what you might find in a directory listing. The
example assumes a data region that contains a text box named LastName .
The following expression, placed in a text box on the left side of the page header, provides the first value of the LastName text box on the page:
=First(ReportItems("LastName").Value)
The following expression, placed in a text box on the right side of the page header, provides the last value of the LastName text box on the page:
=Last(ReportItems("LastName").Value)
The following example describes how to display a page total. The example assumes a data region that contains a text box named Cost .
The following expression, placed in the page header or footer, provides the sum of the values in the Cost text box for the page:
=Sum(ReportItems("Cost").Value)
NOTE
You can refer to only one report item per expression in a page header or footer. Also, you can refer to the text box name, but not the actual data expression within the text box, in
page header and footer expressions.
Page breaks
In some reports, you may want to place a page break at the end of a specified number of rows instead of, or in addition to, on groups or report items. To do this,
create a group that contains the groups or detail records you want, add a page break to the group, and then add a group expression to group by a specified number
of rows.
The following expression, when placed in the group expression, assigns a number to each set of 25 rows. When a page break is defined for the group, this
expression results in a page break every 25 rows.
=Ceiling(RowNumber(Nothing)/25)
To allow the user to set a value for the number of rows per page, create a parameter named RowsPerPage and base the group expression on the parameter, as
shown in the following expression:
=Ceiling(RowNumber(Nothing)/Parameters!RowsPerPage.Value)
Properties
Expressions are not only used to display data in text boxes. They can also be used to change how properties are applied to report items. You can change style
information for a report item, or change its visibility.
Formatting
The following expression, when used in the Color property of a text box, changes the color of the text depending on the value of the Profit field:
The following expression, when used in the BackgroundColor property of a report item in a data region, alternates the background color of each row between
pale green and white:
If you are using an expression for a specified scope, you may have to indicate the dataset for the aggregate function:
NOTE
Available colors come from the .NET Framework KnownColor enumeration.
Chart colors
To specify colors for a Shape chart, you can use custom code to control the order that colors are mapped to data point values. This helps you use consistent colors for
multiple charts that have the same category groups.
Visibility
You can show and hide items in a report using the visibility properties for the report item. In a data region such as a table, you can initially hide detail rows based on
the value in an expression.
The following expression, when used for initial visibility of detail rows in a group, shows the detail rows for all sales exceeding 90 percent in the PctQuota field:
The following expression, when set in the Hidden property of a table, shows the table only if it has more than 12 rows:
=IIF(CountRows()>12,false,true)
The following expression, when set in the Hidden property of a column, shows the column only if the field exists in the report dataset after the data is
retrieved from the data source:
URLs
You can customize URLs by using report data and also conditionally control whether URLs are added as an action for a text box.
The following expression, when used as an action on a text box, generates a customized URL that specifies the dataset field EmployeeID as a URL parameter.
The following expression conditionally controls whether to add a URL in a text box. This expression depends on a parameter named IncludeURLs that allows a
user to decide whether to include active URLs in a report. This expression is set as an action on a text box. By setting the parameter to False and then viewing
the report, you can export the report Microsoft Excel without hyperlinks.
=IIF(Parameters!IncludeURLs.Value,"https://adventure-works.com/productcatalog",Nothing)
Report data
Expressions can be used to manipulate the data that is used in the report. You can refer to parameters and other report information. You can even change the query
that is used to retrieve data for the report.
Parameters
You can use expressions in a parameter to vary the default value for the parameter. For example, you can use a parameter to filter data to a particular user based on
the user ID that is used to run the report.
The following expression, when used as the default value for a parameter, collects the user ID of the person running the report:
=User!UserID
To refer to a parameter in a query parameter, filter expression, text box, or other area of the report, use the Parameters global collection. This example
assumes that the parameter is named Department:
=Parameters!Department.Value
Parameters can be created in a report but set to hidden. When the report runs on the report server, the parameter doesn't appear in the toolbar and the report
reader cannot change the default value. You can use a hidden parameter set to a default value as custom constant. You can use this value in any expression,
including a field expression. The following expression identifies the field specified by the default parameter value for the parameter named ParameterField:
=Fields(Parameters!ParameterField.Value).Value
Custom code
You can use custom code embedded in a report.
Using group variables for custom aggregation
You can initialize the value for a group variable that is local to a particular group scope and then include a reference to that variable in expressions. One of the ways
that you can use a group variable with custom code is to implement a custom aggregate.
Use a custom code function to return the value for the expression. The following example returns the percentage difference between a current value and a
previous value. This can be used to calculate the difference between any two successive values and it handles the edge case of the first comparison (when there
is no previous value) and cases whether either the previous value or the current value is null (Nothing in Visual Basic).
The following expression shows how to call this custom code from a text box, for the "ColumnGroupByYear" container (group or data region).
=Code.GetDeltaPercentage(Previous(Sum(Fields!Sales.Value),"ColumnGroupByYear"), Sum(Fields!Sales.Value))
This helps to avoid run-time exceptions. You can now use an expression like =IIF(Me.Value < 0, "red", "black") in the Color property of the text box to
conditionally the display text based on whether the values are greater than or less than 0.
Next steps
What are paginated reports in Power BI Premium?
Pagination in Power BI paginated reports
3/7/2020 • 8 minutes to read • Edit Online
Pagination refers to the number of pages in a report, and the arrangement of report items on those pages.
Pagination in Power BI paginated reports varies depending on the rendering extension you use to view and deliver
the report. When you run a report on the report server, the report uses the HTML renderer. HTML follows a specific
set of pagination rules. If you export the same report to PDF, for example, you're using the PDF renderer, which uses
a different set of rules. Therefore, the report paginates differently. You need to understand the rules used to control
pagination in Power BI paginated reports. Then you can successfully design an easy-to-read report that you
optimize for the renderer you plan to use to deliver your report.
This topic discusses the impact of the physical page size and the report layout on how hard-page-break renderers
render the report. You can set properties to modify the physical page size and margins, and divide the report into
columns; use the Repor t Proper ties pane, the Proper ties pane, or the Page Setup dialog box. Access the
Repor t Proper ties pane by clicking the blue area outside the report body. Access the Page Setup dialog box by
clicking Run on the Home tab, and then clicking Page Setup on the Run tab.
NOTE
If you've designed a report to be one page wide, but it renders across multiple pages, check that the width of the report
body, including margins, isn't larger than the physical page size width. To prevent empty pages from being added to your
report, you can reduce the container size by dragging the container corner to the left.
Newsletter-style columns
Your report can be divided into columns, like columns in a newspaper. Columns are treated as logical pages
rendered on the same physical page. They're arranged from left to right, top to bottom, and are separated by white
space between each column. If the report is divided into more than one column, each physical page is divided
vertically into columns, and each column is considered a logical page. For example, suppose you have two columns
on a physical page. The content of your report fills the first column and then the second column. If the report
doesn't fit entirely within the first two columns, the report then fills the first and second column on the next page.
Columns continue to be filled, from left to right, top to bottom until all report items are rendered. If you specify
column sizes that cause the horizontal width or vertical width to equal zero, the column spacing defaults to zero.
You specify columns in the Repor t Proper ties pane or Page Setup dialog box, or by changing the TopMargin,
BottomMargin, LeftMargin and RightMargin properties in the Proper ties pane. If you want to use a margin size
that isn't defined, you can specify the margin size using the Device Information settings for the specific renderer to
which you're exporting the report. Columns are only applied when you render and print reports in PDF or Image
formats. The following image indicates the usable page area of a page containing columns.
Page breaks and page names
A report might be more readable and its data easier to audit and export when the report has page names.
Reporting Services provides properties for reports; table, matrix, and list data regions; groups; and rectangles in the
report to control pagination, reset page numbers, and provide new report page names on page breaks. These
features can enhance reports regardless of the format in which reports are rendered, but are especially useful when
exporting reports to Excel workbooks.
NOTE
Table, matrix, and list data regions are all really the same kind of data region behind the scenes: a tablix. So you may
encounter that name.
The InitialPageName property provides the initial page name of the report. If your report doesn't include page
names for page breaks, then the initial page name is used for all the new pages created by page breaks. You're not
required to use an initial page name.
A rendered report can provide a new page name for the new page that a page break causes. To provide the page
name, you set the PageName property of a table, matrix, list, group, or rectangle. You don't have to specify page
names on breaks. If you don't, the value of InitialPageName is used instead. If InitialPageName is also blank, the
new page has no name.
Table, matrix, and list data regions, groups, and rectangles support page breaks.
The page break includes the following properties:
BreakLocation provides the location of the break for the page break enabled report element: at the start,
end, or start and end. On groups, BreakLocation can be located between groups.
Disabled indicates whether a page break is applied to the report element. If this property evaluates to True,
the page break is ignored. This property is used to dynamically disable page breaks based on expressions
when the report is run.
ResetPageNumber indicates whether the page number should be reset to 1 when a page break occurs. If
this property evaluates to True, the page number is reset.
You can set the BreakLocation property in the Tablix Proper ties , Rectangle Proper ties , or Group Proper ties
dialog boxes, but you must set the Disabled, ResetPageNumber, and PageName properties in the Report Builder
Properties pane. If the properties in the Properties pane are organized by category, you find the properties in the
PageBreak category. For groups, the PageBreak category is inside the Group category.
You can use constants and simple or complex expressions to set the value of the Disabled and ResetPageNumber
properties. However, you can't use expression with the BreakLocation property. For more information about writing
and using expressions, see Expressions in Power BI Report Builder.
In your report you can write expressions that reference the current page names or page numbers by using the
Globals collection. For more information, see Built-in Globals and Users References in the Report Builder and
Reporting Services documentation.
Naming Excel worksheet tabs
These properties are useful when you export reports to Excel workbooks. Use the InitialPage property to specify a
default name for the worksheet tab name when you export the report, and use page breaks and the PageName
property to provide different names for each worksheet. Each new report page, defined by a page break, is
exported to a different worksheet named by the value of the PageName property. If PageName is blank, but the
report has an initial page name, then all worksheets in the Excel workbook use the same name, the initial page
name.
For more information about how these properties work when reports are exported to Excel, see Exporting to
Microsoft Excel in the Report Builder and Reporting Services documentation.
Next steps
View a paginated report in the Power BI service
Avoid blank pages when printing paginated reports
More questions? Try the Power BI Community
Previewing reports in Power BI Report Builder
3/7/2020 • 4 minutes to read • Edit Online
While you create a Report Builder paginated report, it's helpful to preview the report often to verify that the report
displays what you want. To preview your report, click Run . The report renders in preview mode.
Report Builder improves the preview experience by using edit sessions when connected to a report server. The edit
session creates a data cache and makes the datasets in the cache available for repeated report previews. An edit
session is not a feature that you interact with directly, but understanding when the cached dataset is refreshed will
help you improve performance when you preview a report and understand why the report renders faster or slower.
NOTE
There are some differences between previewing in Report Builder and viewing in a browser. For example, a calendar control,
which is added to a report when you specify a Date/Time type parameter, is different in Report Builder and in a browser.
NOTE
If the dataset has a large number of fields that you don't expect to use, you should consider updating the dataset to
omit those fields. Although this creates a new edit session and the first preview of the report is slower, there smaller
cached dataset is overall beneficial to the performance of the report server.
Add, change, or delete a data source. This includes changing the name or properties of the data source, the
data extension of the data source, or the properties of the connection to the data source.
Change the data source that the report uses to a different data source.
Change the language of the report.
Change the assemblies or custom code that the report uses.
Add, change, or delete the query parameters in the report or parameter values.
Changes to the report layout and data formatting don't affect the cached dataset. You can do the following actions
without refreshing the cached dataset:
Add or remove data regions such as tables, matrices or charts.
Add or delete columns from the report. All the fields in the dataset are available to use in the report. Adding
or removing fields in the report has no effect on the dataset.
Change the order of fields in tables and matrices.
Add, change, or delete row and column groups.
Add, change, or delete formatting of data values in fields.
Add, change, or delete images, lines, or text boxes.
Change page breaks.
The edit session is created the first time that you preview a report. By default, an edit session lasts 7200 seconds (2
hours). The session is reset to two hours every time you run the report. When the edit session expires, the data
cache is deleted. If the edit session expires, one is automatically created again the next time that you preview the
report.
By default, the data cache can hold up to five datasets. If you use many different combinations of parameter values,
the report might need more data. This requires the cache be refreshed and the report renders more slowly the next
time that you preview it.
Next steps
What are paginated reports in Power BI Premium?
Paginated reports in Power BI: FAQ
8/13/2020 • 7 minutes to read • Edit Online
This article answers frequently asked questions about paginated reports. These reports are highly formatted, pixel-
perfect output optimized for printing or PDF generation. They're called "paginated" because they're formatted to fit
well on multiple pages. Paginated reports are based on the RDL report technology in SQL Server Reporting
Services.
This article answers many common questions people have about paginated reports in Power BI Premium, and
about Report Builder, the standalone tool for authoring paginated reports. You need a Power BI Pro license to
publish a report to the service. You can publish and share paginated reports in your My Workspace or in
workspaces, as long as the workspace is in a Power BI Premium capacity.
Administration
What size Premium capacity do I need for paginated reports?
The paginated reports workload is available on P1 – P3 SKUs. You may also use it with A4 – A6 SKUs for embed or
test/dev scenarios.
What is the maximum memory threshold I can put for paginated reports in my capacity?
You may use up to 100% of the memory for this workload.
How does user access work for paginated reports?
User access for paginated reports is the same as user access for all other content in the Power BI service
How do I turn on/off my paginated reports workload?
The capacity admin can enable or disable the paginated reports workload in the capacity admin portal page. By
default, the workload will be on for any new capacities you create, but will not consume memory until you upload
your first paginated report.
How can I monitor usage of paginated reports in my tenant?
The audit logs detail usage of this report type under the following events:
View Power BI Report
Delete Power BI report
Create Power BI report
Downloaded Power BI report
The field ReportType has the value "PaginatedReport" to identify paginated as opposed to Power BI reports.
Also, the audit logs provide the following events for paginated reports:
Binded Power BI dataset to gateway
Discover Power BI Datasource
TakeOverDatasource
Can I monitor this workload through the Premium Capacity Monitoring App?
Yes, monitoring is available as a new tab with the same relevant details you have for your Power BI datasets.
Do I need a Pro license to create and publish paginated reports?
You can upload paginated reports to your My Workspace without a Pro license, provided it's in a Premium Capacity.
For other workspaces, you must have a Pro license to author and publish content to them. We encourage you to
download and use Power BI Report Builder even without the Pro license, but you can't publish the paginated
reports you create without it.
What if I have a paginated report in a workspace and the paginated report workload is turned off?
You receive an error message, and you can't view your report until the workload is turned back on. You can still
delete the report from the workspace.
What is the default memory for each of the Premium SKUs that support paginated reports?
Default memory in each Premium SKU for paginated reports:
P1/A4 : 20% default; 10% minimum
P2/A5 : 20% default; 5% minimum
P3/A6 : 20% default; 2.5% minimum
Power BI tenant admins can modify the default maximum memory percentage in the Admin portal. See the
Paginated Repor ts workload section under Power BI Premium on the Capacity settings tab.
General
When should I use a paginated report vs. a Power BI report?
Paginated reports are best for scenarios that require a highly formatted, pixel-perfect output optimized for printing
or PDF generation. A profit and loss statement is a good example of the type of report you would probably want to
create as a paginated report.
Power BI reports are optimized for exploration and interactivity. A sales report where different salespeople want to
slice the data in the same report for their specific region/industry/customer and see how the numbers change
would be best served by a Power BI report.
For more information, see When to use paginated reports in Power BI.
The documentation says Power BI Report Builder is the preferred authoring tool. Can I create paginated reports
in SQL Server Data Tools for Power BI?
Yes, but the Power BI service only allows you to upload a single item at a time, so many of the scenarios authors use
with SQL Server Data Tools (SSDT) aren't yet supported. See the full list of unsupported features available later in
this FAQ.
What version(s) of Report Builder do you support?
We released Power BI Report Builder as the primary authoring tool for paginated reports in the Power BI Service.
Install Power BI Report Builder from the Microsoft Download Center.
How do I move existing reports I have saved in SQL Server Reporting Services to Power BI?
A project on GitHub now supports migrating content from SQL Server Reporting Services to Power BI. View details
and download the tool here: https://github.com/microsoft/RdlMigration
Can I open reports and publish directly to the service?
Yes. We've added support for opening reports and publishing them directly to the service from Power BI Report
Builder.
What paginated report features in SSRS aren't yet supported in Power BI?
Currently, paginated reports don't support the following items:
Shared data sources
Shared datasets
Drillthrough and click-through to other reports
Linked reports
Custom fonts
You get an error message if you try to upload a file that has an unsupported feature in the Power BI service, other
than toggle/sort.
What data sources do you support currently for paginated reports?
See the article Supported data sources for Power BI paginated reports for a list of data sources.
What authentication methods do you support?
We support SSO for Azure Analysis Services, Azure SQL Database, and Power BI data sources. We also support
OAuth for Azure SQL Database and Azure Analysis Services. For other data sources, you currently need to store a
user name and password with the data source in the portal or gateway.
Can I use a Power BI dataset as a data source for my paginated report?
Yes, we support Power BI datasets as data sources for your paginated reports.
Can I use stored procedures through the Gateway?
Yes, stored procedures through the Gateway are supported for SQL Server data sources, including those that use
parameters.
What export formats are available for my report in the Power BI service?
You can export to Microsoft Excel, Microsoft Word, Microsoft PowerPoint, PDF, .CSV, XML, and MHTML.
Can I print paginated reports?
Yes, printing is available for paginated reports, including a new and improved print preview experience.
Are e -mail subscriptions available for paginated reports?
Yes, e-mail subscriptions are fully supported for paginated reports and include support for six different file formats
and parameter values.
Can I run custom code in my report?
Yes, we support the ability to run code in your reports as you can in SSRS.
Can I use Power BI embedded to embed my paginated reports into an app I'm hosting?
SaaS embedding, including Secure Embed support, is already available. For PaaS embedding, refer to the Embed
Power BI paginated reports into an application for your customers tutorial.
Can I drill through from a Power BI report to a paginated report?
Yes, this can be accomplished using URL parameters with your paginated reports.
Can I share my paginated report content through a Power BI app?
Yes, paginated reports are supported to be deployed with apps from both v1 and v2 workspaces.
Will other report-specific features in Power BI, like pinning report tiles to dashboards, work with paginated
reports?
We plan to have the reports support the same major scenarios in the service as much as possible. Ideally, though
the tool to author them is different, from a consumer perspective it's just another report in their list in the portal.
They don't care how it was created, they can accomplish what they need to. A good example of this feature parity is
the planned comment support. Though the feature itself may work slightly differently for each report type, you'll be
able to use comments for both.
Is there a report viewer control for paginated reports in the Power BI service?
No, a report viewer control isn't available currently.
Can you search for paginated reports from the new Home experience in the Power BI service?
Yes, you can now search for your paginated reports from Home. You also see them in other parts of the new Home
experience.
Next steps
Install Power BI Report Builder from the Microsoft Download Center
Tutorial: Create a paginated report
Introduction to deployment pipelines (preview)
8/13/2020 • 2 minutes to read • Edit Online
In today’s world, analytics is a vital part of decision making in almost every organization. The growing use of
Power BI as an analytics tool, requires it to use more data, look appealing and be user-friendly. Above all however,
Power BI needs to always be available and reliable. To meet these requirements, BI creators must collaborate
effectively.
Deployment pipelines is an efficient and reusable tool that enables BI creators in an enterprise with Premium
capacity, to manage the lifecycle of organizational content. This allows developing and testing Power BI content
such as reports, dashboards, and datasets, before they're consumed by end users.
The tool is designed as a pipeline with three stages:
Development
This stage is used to design, build, and upload new content with fellow creators. This is the first stage in
deployment pipelines.
Test
After the content is uploaded and all changes are made in the development stage, the content can be moved
to this stage for testing. Here are three examples of what can be done in the testing environment:
Share content with testers and reviewers
Load and run tests with larger volumes of data
Test your app to see how it will look for your end users
Production
After testing the content, use the production stage to share the final version of your content with business
users across the organization.
Next steps
Get started with deployment pipelines
Understand the deployment pipelines process
Deployment pipelines troubleshooting
Deployment pipelines best practices
Understand the deployment process (preview)
8/13/2020 • 7 minutes to read • Edit Online
The deployment process lets you clone content from one stage in the pipeline to another, typically from
development to test, and from test to production.
During deployment, Power BI copies the content from the current stage, into the target one. The connections
between the copied items are kept during the copy process. Power BI also applies the configured dataset rules to
the updated content in the target stage. Deploying content may take a while, depending on the number of items
being deployed. During this time, you can navigate to other pages in the Power BI portal, but you cannot use the
content in the target stage.
Deployed items
When you deploy content from one pipeline stage to another, the copied content contains the following Power BI
items:
Datasets
Reports
Dashboards
Unsupported items
Deployment pipelines doesn't support the following items:
Datasets that do not originate from a .pbix
Reports based on unsupported datasets
The workspace cannot use a template app
Paginated reports
Dataflows
PUSH datasets
Workbooks
In the production stage, the main action button on the bottom-left corner opens the update app page in Power BI,
so that any content updates become available to app users.
IMPORTANT
The deployment process does not include updating the app content or settings. To apply changes to content or settings,
you need to manually update the app in the required pipeline stage.
Permissions
Pipeline permissions and workspace permissions are granted and managed separately. For example, a user with
pipeline access that doesn't have workspace permissions, will be able to view the pipeline and share it with others.
However, this user will not be able to view the content of the workspace in the pipeline, or in the workspace page,
and will not be able to perform deployments.
User with pipeline access
Users with pipeline access have the following permissions:
View the pipeline
Share the pipeline with others
Edit and delete the pipeline
NOTE
Pipeline access doesn't grant permissions to view or take actions on the workspace content.
Workspace viewer
Workspace viewers that have pipeline access, can also do the following:
Consume content
NOTE
Workspace viewers cannot access the dataset or edit workspace content.
Workspace contributor
Workspace contributors that have pipeline access, can also do the following:
Consume content
Compare stages
View datasets
Workspace member
Workspace members that have pipeline access, can also do the following:
View workspace content
Compare stages
Deploy reports and dashboards
Remove workspaces
Workspace admin
Workspace administrators that have pipeline access, can perform workspace member actions, and also do the
following:
Assign workspaces
Remove workspaces
Dataset owner
Dataset owners that are either workspace members or admins, can also do the following:
Update datasets
Configure rules
NOTE
This section describes user permissions in deployment pipelines. The permissions listed in this section may have different
applications in other Power BI features.
Limitations
This section lists most of the limitations in deployment pipelines.
The workspace must reside on apremium capacity.
Power BI items such as reports and dashboards that have Power BI sensitivity labels, cannot be deployed.
The maximum number of Power BI items that can be deployed in a single deployment is 300.
For a list of workspace limitations, see workspace assignment limitations.
For a list of unsupported items, see unsupported items.
Dataset limitations
Datasets that are configured with incremental refresh, cannot be deployed.
Datasets that use real-time data connectivity cannot be deployed.
During deployment, if the target dataset is using a live connection, the source dataset must use this
connection mode too.
After deployment, downloading a dataset (from the stage its been deployed to) is not supported.
For a list of dataset rule limitations, see dataset rule limitations.
Next steps
Introduction to deployment pipelines
Deployment pipelines best practices
Get started with deployment pipelines
Deployment pipelines troubleshooting
Deployment pipelines best practices (preview)
8/13/2020 • 9 minutes to read • Edit Online
This article provides guidance for BI creators who are managing their content throughout its lifecycle. It focuses on
leveraging deployment pipelines as a BI content lifecycle management tool.
The article is divided into four sections:
Content preparation - Prepare your content for lifecycle management.
Development - Learn about the best ways of creating content in the deployment pipelines development
stage.
Test - Understand how to use the deployment pipelines test stage, to test your environment.
Production - Utilize the deployment pipelines production stage when making your content available for
consumption.
Content preparation
Prepare your content for on-going management throughout its lifecycle. Make sure you review the information in
this section, before you do any of the following:
Release your content to production
Start using a deployment pipeline for a specific workspace
Publish your work
Treat each workspace as a complete package of analytics
Ideally, a workspace should contain a complete view of one aspect (such as department, business unit, project, or
vertical) in your organization. This makes it easier to manage permissions for different users, and allows content
releases for the entire workspace to be controlled according to a planned schedule.
If you're using centralized datasets that are used across the organization, we recommend that you create two types
of workspaces:
Modeling and data workspaces - These workspaces will contain all the centralized datasets
Repor ting workspaces - These workspaces will contain all dependent reports and dashboards
Plan your permission model
A deployment pipeline is a Power BI object, with its own permissions. In addition, the pipeline contains workspaces,
that have their own permissions.
To implement a secure and easy workflow, plan who gets access to each part of the pipeline. Some of the
considerations to take into account are:
Who should have access to the pipeline?
Which operations should users with pipeline access be able to perform in each stage?
Who's reviewing content in the test stage?
Should the test stage reviewers have access to the pipeline?
Who will oversee deployment to the production stage?
Which workspace are you assigning?
Which stage are you assigning your workspace to?
Do you need to make changes to the permissions of the workspace you're assigning?
Connect different stages to different databases
A production database should always be stable and available. It's better not to overload it with queries generated
by BI creators for their development or test datasets. Build separate databases for development and testing. This
helps protect production data, and doesn't overload the development database with the entire volume of
production data, which can slow down things.
NOTE
If your organization is using shared centralized datasets, you can skip this recommendation.
Development
This section provides guidance for working with the deployment pipelines development stage.
Use Power BI Desktop to edit your reports and datasets
Consider Power BI Desktop as your local development environment. Power BI Desktop allows you to try, explore,
and review updates to your reports and datasets. Once the work is done, you can upload your new version to the
development stage. Due to the following reasons, it's recommended to edit .pbix files in the Desktop (and not in
Power BI service):
It is easier to collaborate with fellow creators on the same .pbix file, if all changes are being done on the
same tool.
Making online changes, downloading the .pbix file, and then uploading it again, creates reports and datasets
duplication.
You can use version control to keep your .pbix files up to date.
Version control for .pbix files
If you want to manage the version history of your reports and datasets, use Power BI's autosync with OneDrive.
This will keep your files updated with the latest version. It will also enable you to retrieve older versions if needed.
NOTE
Use auto-sync with OneDrive (or any other repository) only with the .pbix files in the deployment pipelines development
stage. Do not sync .pbix files into the deployment pipelines test and production stages. This will cause problems with
deploying content across the pipeline.
Test
This section provides guidance for working with the deployment pipelines test stage.
Simulate your production environment
Other than verifying that new reports or dashboards look alright, it's also important to see how they perform from
an end user's perspective. The deployment pipelines test stage, allows you to simulate a real production
environment for testing purposes.
Make sure that these three factors are addressed in your test environment:
Data volume
Usage volume
A similar capacity as in production
When testing, you can use the same capacity as the production stage. However, this can make production unstable
during load testing. To avoid unstable production, use another capacity similar in resources to the production
capacity, for testing. To avoid extra costs, you can use Azure A capacities to pay only for the testing time.
Use dataset rules with a real-life data source
If you're using the test stage to simulate real life data usage, it's recommended to separate the development and
test data sources. The development database should be relatively small, and the test database should be as similar
as possible to the production database. Use data source rules to switch data sources in the test stage.
Controlling the amount of data you import from your data source, is useful if you're using a production data
source in the test stage. To do this, add a parameter to your data source query in Power BI Desktop. Use parameter
rules to control the amount of imported data, or edit the parameter's value. You can also use this approach if you
don't want to overload your capacity.
Measure performance
When you simulate a production stage, check the report load and the interactions, and find out if the changes you
made impact them.
You also need to monitor the load on the capacity, so that you can catch extreme loads before they reach
production.
NOTE
It's recommended to monitor capacity loads again, after deploying updates to the production stage.
IMPORTANT
The deployment process does not include updating the app content or settings. To apply changes to content or settings,
you need to manually update the app in the required pipeline stage.
Production
This section provides guidance to the deployment pipelines production stage.
Manage who can deploy to production
As deploying to production should be handled carefully, it's good practice to let only specific people manage this
sensitive operation. However, you probably want all BI creators for a specific workspace to have access to the
pipeline. This can be managed using production workspace permissions.
To deploy content between stages, users need to have either member or admin permissions for both stages. Make
sure that only the people you want deploying to production, will have production workspace permissions. Other
users can have production workspace contributor or viewer roles. They will be able to see content from within the
pipeline but won't be able to deploy.
In addition, you should limit access to the pipeline by only enabling pipeline permissions to users that are part of
the content creation process.
Set rules to ensure production stage availability
Dataset rules are a powerful way to ensure the data in production is always connected and available to users. Once
dataset rules are applied, deployments can run while you have the assurance that end users will see the relevant
info without disturbance.
Make sure that you set production dataset rules for data sources and parameters defined in the dataset.
Update the production app
Deployment in a pipeline updates the workspace content, but it doesn't update the associated app automatically. If
you're using an app for content distribution, don't forget to update the App after deploying to production, so that
end users will immediately be able to use the latest version.
Quick fixes to content
In case there are bugs in production that require a quick fix, don't be tempted to either upload a new .pbix version
directly to the production stage, or make an online change in Power BI service. Deploying backwards to test and
development stages isn't possible when there's already content in those stages. Furthermore, deploying a fix
without testing it first is bad practice. Therefore, the correct way to treat this problem, is to implement the fix in the
development stage, and push it to the rest of the deployment pipeline stages. This allows checking that the fix
works, before deploying it to production. Deploying across the pipeline and takes only a few minutes.
Next steps
Introduction to deployment pipelines
Get started with deployment pipelines
Understand the deployment pipelines process
Deployment pipelines troubleshooting
Automatic page refresh in Power BI
8/13/2020 • 17 minutes to read • Edit Online
When you monitor critical events, it's important for data to be refreshed as soon as the source data is updated. For
example, in the manufacturing industry, it's critical to know when a machine is malfunctioning or is close to
malfunctioning. If your monitoring signals like social media sentiment, you want to know about sudden changes as
soon as they happen.
Automatic page refresh in Power BI enables your active report page to query for new data, at a predefined cadence,
for DirectQuery sources.
Refresh types
When using automatic page refresh, there are two refresh types available: fixed interval and change detection.
Fixed interval
This refresh type allows you to update all visuals in a report page based on a constant interval such as one second
or five minutes. When that specific interval is reached, all visuals in that page send an update query to the data
source and update accordingly.
Change detection
This refresh type allows you to refresh visuals on a page based on detecting changes in the data rather than a
specific refresh interval. Specifically, this measure polls for changes to your DirectQuery source. Besides defining
the measure, you also have to select how frequently Power BI Desktop will check for changes. When publishing to
the service, this refresh type is only supported in workspaces that are part of a Premium capacity.
Once the window is open, you are presented with the Measure type option where you can select and existing
measure or create a new one from scratch. When selecting an existing, you just have to select the desired measure
from the fields list or drag and drop it into the Choose existing measure section. When creating a new measure,
you can Choose a calculation for the measure between count, count distinct, minimum, maximum and sum. For
example, you can use count distinct to count customer IDs and only refresh when a new customer is added to the
list. Once you have a measure selected, you have to define how often Power BI will Check for changes . That's the
interval on how often Power BI will calculate the measure and poll changes. Once you click apply, a new measure
with the change detection icon will appear in your field list.
Then, back on the page refresh section, you will see the information of which measure is being used for change
detection and the defined interval for your reference.
NOTE
Only one change detection measure is allowed per model.
NOTE
When you publish your automatic page refresh-enabled report from Power BI Desktop to the service, you'll have to provide
the credentials for the DirectQuery data source on the dataset settings menu. You can set up the credentials so report
viewers access this data source with their own identities, respecting any security set up at the source. In the case of change
detection measure, it will always be evaluated with the author's credentials.
Mixed mode (DirectQuery + other data FI suppor ted : Yes FI suppor ted : Yes
sources) CD suppor ted : Yes CD suppor ted : No
Minimum : 1 second Minimum : 30 minutes
Admin override : Yes Admin override : No
Table legend:
1. FI: Fixed interval
2. CD: Change detection
Next steps
For more information, see these articles:
Using DirectQuery in Power BI
Use composite models in Power BI Desktop
Use Performance Analyzer to examine report element performance
Deploying and managing Power BI Premium capacities
Data sources in Power BI Desktop
Shape and combine data in Power BI Desktop
Connect to Excel workbooks in Power BI Desktop
Enter data directly into Power BI Desktop
Use Performance Analyzer to examine report
element performance
8/13/2020 • 4 minutes to read • Edit Online
In Power BI Desktop you can find out how each of your report elements, such as visuals and DAX formulas, are
performing. Using the Performance Analyzer , you can see and record logs that measure how each of your
report elements performs when users interact with them, and which aspects of their performance are most (or
least) resource intensive.
Performance Analyzer inspects and displays the duration necessary for updating or refreshing all visuals that user
interactions initiate, and presents the information so you can view, drill down, or export the results. Performance
Analyzer can help you identify visuals that are impacting the performance of your reports, and identify the reason
for the impact.
Any actions you take in the report are displayed and logged in the Performance Analyzer pane, in the order that
the visual is loaded by Power BI. For example, perhaps you have a report that users have said takes a long time to
refresh. Or certain visuals in a report take a long time to display when a slider is adjusted. Performance analyzer
can tell you which visual is the culprit, and identifies which aspects of the visual is taking the longest duration to
process.
Once you start recording, the Star t recording button is grayed out (inactive, since you've already begun
recording) and the Stop button is active.
Performance analyzer collects and displays the performance measurement information in real time. So each time
you click on a visual, move a slicer, or interact in any other way, Performance Analyzer immediately displays the
performance results in its pane.
If the pane has more information than can be displayed, a scroll bar appears to navigate to additional information.
Each interaction has a section identifier in the pane, describing the action that initiated the log entries. In the
following image, the interaction was that the users changed a slicer.
Each visual's log information includes the time spent (duration) to complete the following categories of tasks:
DAX quer y - if a DAX query was required, this is the time between the visual sending the query, and for
Analysis Services to return the results.
Visual display - time required for the visual to draw on the screen, including time required to retrieve any
web images or geocoding.
Other - time required by the visual for preparing queries, waiting for other visuals to complete, or performing
other background processing.
The Duration (ms) values indicate the difference between a start and end timestamp for each operation. Most
canvas and visual operations execute sequentially on a single User Interface thread, which is shared by multiple
operations. The reported durations include time spent queued while other operations complete. The Performance
Analyzer sample on GitHub and its associated documentation provide details about how visuals query data, and
how they render.
After you've interacted with elements of the report you want to measure with Performance Analyzer, you can select
the Stop button. The performance information remains in the pane after you select Stop for you to analyze.
To clear out the information in the Performance Analyzer pane, select Clear . All information is erased and is not
saved when you select Clear . See the next section to learn how to save information in logs.
Refreshing visuals
You can select Refresh visuals in the Performance Analyzer pane to refresh all visuals on the current page of the
report, and thereby have Performance Analyzer gather information about all such visuals.
You can also refresh individual visuals. When Performance Analyzer is recording, you can select Refresh this
visual found in the top-right corner of each visual, to refresh that visual, and capture its performance information.
Saving performance information
You can save the information that Performance Analyzer creates about a report by selecting the Expor t button.
Selecting Expor t creates a .json file with information from the Performance Analyzer pane.
Next steps
For more information about Power BI Desktop , and how to get started, check out the following articles.
What is Power BI Desktop?
Query Overview with Power BI Desktop
Data Sources in Power BI Desktop
Connect to Data in Power BI Desktop
Shape and Combine Data with Power BI Desktop
Common Query Tasks in Power BI Desktop
For information about the Performance Analyzer sample, check out the following resources.
Performance Analyzer sample
Performance Analyzer sample documentation
Use visual elements to enhance Power BI reports
8/13/2020 • 4 minutes to read • Edit Online
With Power BI Desktop you can use visual elements, such as wallpaper and improved visual headers for
visualizations, to enhance the appearance of your reports.
Beginning with the July 2018 release of Power BI Desktop , you can put enhancements to use in your reports and
make your analytics and reports even more appealing than before. The enhancements discussed in this article
include the following:
Apply wallpaper to your reports so your background can enhance or highlight elements of the story you want
to tell with your data
Use improved visual headers for individual visualizations to create perfectly aligned visuals on your report
canvas.
The following sections describe how to use these enhancements, and how to apply them to your reports.
NOTE
If you use dark-colored backgrounds for wallpaper and set text color to white or very light, be mindful that the Expor t to
PDF feature does not include wallpaper, so any exports with white fonts will be nearly invisible in the exported PDF file. See
export to PDF for more information on Expor t to PDF .
If your visual doesn't have a title, the header floats above the top of the visual aligned to the right, as shown in the
following image.
If your visual is positioned all the way to the top of your report, the visual header instead snaps to the bottom of
the visual.
Each visual also has a card in the Formatting section of the Visualizations pane called Visual header . In that
card you can adjust all sorts of characteristics of the visual header
NOTE
The visibility of toggles do not affect your report when you are authoring or editing the report. You must publish the report
and view it in reading mode to see the effect. This behavior ensures that the many options provided in visual headers are
important during editing, especially warning icons that alert you to issues while editing.
For reports that only appear in the Power BI ser vice , you can adjust the use of visual headers by going to My
Workspace > Repor ts and then selecting the Settings icon. There you see settings for the report for which you
selected Settings and you can adjust the settings from there, as shown in the following image.
Enabling improved visual headers for existing reports
The new visual header is the default behavior for all new reports. For existing reports, you need to enable this
behavior in Power BI Desktop by going to File > Options and settings > Options and then in the Repor t
settings section, enable the Use the modern visual header with updated styling options checkbox.
Next steps
For more information about Power BI Desktop , and how to get started, check out the following articles.
What is Power BI Desktop?
Query Overview with Power BI Desktop
Data Sources in Power BI Desktop
Connect to Data in Power BI Desktop
Shape and Combine Data with Power BI Desktop
Common Query Tasks in Power BI Desktop
Create tooltips based on report pages in Power BI
Desktop
8/13/2020 • 6 minutes to read • Edit Online
You can create visually rich repor t tooltips that appear when you hover over visuals, based on report pages you
create in Power BI Desktop . By creating a report page that serves as your tooltip, your custom tooltips can
include visuals, images, and any other collection of items you create in the report page.
You can create as many tooltip pages as you want. Each tooltip page can be associated with one or more fields in
your report, so that when you hover over a visual that includes the selected field, the tooltip you created on your
tooltip page appears when you hover over the visual, filtered by the datapoint over which your mouse is hovering.
There are all sorts of interesting things you can do with report tooltips. Let's take a look at how to create tooltips
and what you must do to configure them.
By default, Power BI Desktop fits your report canvas to the available space on the page. Often that's good, but not
in the case of tooltips. To get a better sense and view of what your tooltip will look like when you're done, you can
change the Page View to actual size.
To do that, select the View tab from the ribbon. From there, select Page View > Actual Size , as shown in the
following image.
You can also name the report page so its purpose is clear. Just select the Page Information card in the Format
pane, then type the name into the Name field you find there. In the following image the tooltip report name is
Tooltip 1, but feel free to name yours something more inspired.
From there, you can create whatever visuals you would like to show up in your tooltip. In the following image, there
are two cards and one clustered bar chart on the tooltip page, along with a background color for the page itself, and
backgrounds for each of the visuals, to give it the look we wanted.
There are more steps to complete before your tooltip report page is ready to work as a tooltip. You need to
configure the tooltip page in a few ways, as described in the next section.
Being able to manually set a tooltip has many uses. You can set a blank page for a tooltip, and thereby override the
default Power BI tooltip selection. Another use is when you don't want the tooltip that is automatically selected by
Power BI to be the tooltip. For example, if you have a visual that includes two fields, and both of those fields have an
associated tooltip, Power BI selects only one to show. You might not want that to be the case, so you could manually
select which tooltip should be displayed.
Next steps
For more information about features that are similar or interact with report tooltips, take a look at the following
articles:
Use drillthrough in Power BI Desktop
Display a dashboard tile or report visual in Focus mode
Export reports to PDF from Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
In Power BI Desktop or the Power BI service, you can export reports to a PDF file, and thereby easily share or
print your reports from that PDF.
The process of exporting your report from Power BI Desktop to a PDF, so that you can print the PDF or share that
PDF document with others, is straightforward. Simply select File > Expor t to PDF from Power BI Desktop.
The Expor t to PDF process will export all visible pages in the report, with each report page exporting to a single
page in the PDF. Report pages that are currently not visible, such as any tooltips or hidden pages, are not exported
to the PDF file.
When you select File > Expor t to PDF the export is initiated, and a dialog appears that shows the export process
is underway. The dialog remains on the screen until the export process completes. During the export process, all
interaction with the report being exported is disabled. The only way to interact with the report is to wait until the
export process completes, or to cancel the export.
When the export completes, the PDF is loaded into the default PDF viewer on the computer.
Next steps
There are all sorts of interesting visual elements and features in Power BI Desktop . For more information in
information, check out the following resources:
Use visual elements to enhance Power BI reports
What is Power BI Desktop?
Apply insights in Power BI Desktop to explain
fluctuations in visuals (preview)
8/13/2020 • 7 minutes to read • Edit Online
Often in visuals, you see a large increase and then a sharp drop in values, and wonder about the cause of such
fluctuations. With insights in Power BI Desktop you can learn the cause with just a few clicks.
For example, consider the following visual that shows Sales Amount by Year and Quarter. A large decrease in sales
occurs in 2014, with sales dropping sharply between Qtr 1 and Qtr 2. In such cases you can explore the data, to
help explain the change that occurred.
You can tell Power BI Desktop to explain increases or decreases in charts, see distribution factors in charts, and
get fast, automated, insightful analysis about your data. Simply right-click on a data point, and select Analyze >
Explain the decrease (or increase, if the previous bar was lower), or Analyze > Find where this distribution
is different and insight is delivered to you in an easy-to-use window.
The insights feature is contextual, and is based on the immediately previous data point - such as the previous bar, or
column.
NOTE
This feature is in preview, and is subject to change. The insight feature is enabled and on by default (you don't need to check
a Preview box to enable it) beginning with the September 2017 version of Power BI Desktop .
Using insights
To use insights to explain increases or decreases seen on charts, just right-click on any data point in a bar or line
chart, and select Analyze > Explain the increase (or Explain the decrease, since all insights are based on the
change from the previous data point).
Power BI Desktop then runs its machine learning algorithms over the data, and populates a window with a visual
and a description that describes which categories most influenced the increase or decrease. By default, insights are
provided as a waterfall visual, as shown in the following image.
By selecting the small icons at the bottom of the waterfall visual, you can choose to have insights display a scatter
chart, stacked column chart, or a ribbon chart.
The thumbs up and thumbs down icons at the top of the page are provided so you can provide feedback about the
visual and the feature. Doing so provides feedback, but it does not currently train the algorithm to influence the
results returned next time you use the feature.
And importantly, the + button at the top of the visual lets you add the selected visual to your report, just as if you
created the visual manually. You can then format or otherwise adjust the added visual just as you would to any
other visual on your report. You can only add a selected insight visual when you're editing a report in Power BI
Desktop .
You can use insights when your report is in reading or editing mode, making it versatile for both analyzing data,
and for creating visuals you can easily add to your reports.
Note that data items whose value was blank in either period will not appear on the scatter plot (for example, Home
Appliances in this case)
The 100% stacked column chart
The 100% stacked column chart visual shows the value of the measure before and after, by the selected column,
shown as a 100% stacked column. This allows side-by-side comparison of the contribution before and after. The
tooltips show the actual contribution for the selected value.
When ranking the column as to which have the largest differences in the relative contributions, the following is
considered:
The cardinality is factored in, as a difference is less statistically significant, and less interesting, when a
column has a large cardinality.
Differences for those categories where the original values were very high or very close to zero are weighted
higher than others. For example, if a Category only contributed 1% of sales, and this changed to 6%, that is
more statistically significant, and therefore considered more interesting, than a Category whose contribution
changed from 50% to 55%.
Various heuristics are employed to select the most meaningful results, for example by considering other
relationships between the data.
After examining different columns, those that show the biggest change to relative contribution are chosen and
output. For each, the values which had the most significant change to contribution are called out in the description.
In addition, the values that had the largest actual increases and decreases are also called out.
Next steps
For more information about Power BI Desktop , and how to get started, check out the following articles.
What is Power BI Desktop?
Query Overview with Power BI Desktop
Data Sources in Power BI Desktop
Connect to Data in Power BI Desktop
Shape and Combine Data with Power BI Desktop
Common Query Tasks in Power BI Desktop
Apply insights in Power BI Desktop to discover where
distributions vary (preview)
8/13/2020 • 8 minutes to read • Edit Online
Often in visuals, you see a data point, and wonder about whether distribution would be the same for different
categories. With insights in Power BI Desktop you can find out with just a few clicks.
Consider the following visual, which shows Total Sales by Country. As the chart shows, most sales come from the
United States, accounting for 57% of all sales with lessor contributions coming from the other countries. It's often
interesting in such cases to explore whether that same distribution would be seen for different sub-populations. For
example, is this the same for all years, all sales channels, and all categories of products? While you could apply
different filters and compare the results visually, doing so can be time consuming and error prone.
You can tell Power BI Desktop to find where a distribution is different, and get fast, automated, insightful analysis
about your data. Simply right-click on a data point, and select Analyze > Find where the distribution is
different , and insight is delivered to you in an easy-to-use window.
In this example, the automated analysis quickly shows that for Touring Bikes, the proportion of sales in the United
States and Canada are lower, while the proportion coming from the other countries is higher.
NOTE
This feature is in preview, and is subject to change. The insight feature is enabled and on by default (you don't need to check
a Preview box to enable it) beginning with the September 2017 version of Power BI Desktop .
Using insights
To use insights to find where distributions seen on charts are different, just right-click on any data point (or on the
visual as a whole), and select Analyze > Find where the distribution is different .
Power BI Desktop then runs its machine learning algorithms over the data, and populates a window with a visual
and a description that describes which categories (columns), and which values of those columns, result in the most
significantly different distribution. Insights are provided as a column chart, as shown in the following image.
The values with the selected filter applied are shown using the normal default color. The overall values, as seen on
the original starting visual, are shown in grey for easy comparison. Up to three different filters might be included
(Touring Bikes, Mountain Bikes, Road Bikes in this example) and different filters can be chosen by clicking on them
(or using ctrl-click to select multiple).
For simple additive measures, like Total Sales in this example, the comparison is based on the relative, rather than
absolute, values. Hence while the sales for Touring Bikes are lower than overall sales for all categories, by default
the visual uses a dual axis to allow the comparison between the proportion of sales across different countries, for
Touring Bikes versus all categories of bikes. Switching the toggle below the visual allows the two values to be
displayed in the same axis, allowing the absolute values to easily be compared (as shown in the following image).
The descriptive text also gives some indication of the level of importance that might be attached to a filter value, by
given the number of records that match the filter. So in this example, you can see that while the distribution for
Touring Bikes might be significantly different, they account for only 16.6% of records.
The thumbs up and thumbs down icons at the top of the page are provided so you can provide feedback about the
visual and the feature. Doing so provides feedback, but it does not currently train the algorithm to influence the
results returned next time you use the feature.
And importantly, the + button at the top of the visual lets you add the selected visual to your report, just as if you
created the visual manually. You can then format or otherwise adjust the added visual just as you would to any
other visual on your report. You can only add a selected insight visual when you're editing a report in Power BI
Desktop .
You can use insights when your report is in reading or editing mode, making it versatile for both analyzing data,
and for creating visuals you can easily add to your reports.
C O UN T RY SA L ES ( $M )
USA 15
Canada 5
Then for a particular category of product “Road Bike) the split of sales might be:
C O UN T RY SA L ES ( $M )
USA 3
Canada 1
While the numbers are different in each of those tables, the relative values between USA and Canada are identical
(75% and 25% overall, and for Road Bikes). Because of that, these are not considered different. For simple additive
measures like this, the algorithm is therefore looking for differences in the relative value.
By contrast consider a measure like margin, that is calculated as Profit/Cost, and say that the overall margins for the
USA and Canada were the following
C O UN T RY M A RGIN ( % )
USA 15
Canada 5
Then for a particular category of product “Road Bike) the split of sales might be:
C O UN T RY M A RGIN ( % )
USA 3
C O UN T RY M A RGIN ( % )
Canada 1
Given the nature of such measures, this is considered interestingly different. So for non-additive measures such as
this margin example, the algorithm is looking for differences in the absolute value.
The visuals displayed are thus intended to clearly show the differences found between the overall distribution (as
seen in the original visual) and the value with the particular filter applied.
So for additive measures, like Sales in the previous example, a column and line chart is used, where the use of a
dual axis with appropriate scaling such that the relative values can easily be compared. The columns show the value
with the filter applied, and the line shows the overall value (with the column axis being on the left, and the line axis
on the right, as normal). The line is shown using a stepped style, with a dashed line, filled with grey. For the
previous example, if the column axis maximum value is 4, and the line axis maximum value is 20, then it would
allow easy comparison of the relative values between USA and Canada for the filtered and overall values.
Similarly, for non-additive measures like Margin in the previous example, a column and line chart is used, where
the use of a single axis means the absolute values can easily be compared. Again the line (filled with grey) shows
the overall value. Whether comparing actual or relative numbers, the determination of the degree to which two
distributions are different is not simply a matter of calculating the difference in the values. For example:
The size of the population is factored in, as a difference is less statistically significant and less interesting
when it applies to a smaller proportion of the overall population. As an example, the distribution of sales
across countries might be very different for some particular product, this would not be considered
interesting if there were thousands of products, and hence that particular product accounted for only a small
percentage of the overall sales.
Differences for those categories where the original values were very high or very close to zero are weighted
higher than others. For example, if a country overall contributes only 1% of sales, but for some particular
type of product contributes 6%, that is more statistically significant, and therefore considered more
interesting, than a country whose contribution changed from 50% to 55%.
Various heuristics are employed to select the most meaningful results, for example by considering other
relationships between the data.
After examining different columns, and the values for each of those columns, the set of values that give the biggest
differences are chosen. For ease of understanding, these are then output grouped by column, with the column
whose values give the biggest difference listed first. Up to three values are shown per column, but less might be
shown either if there were fewer than three values that have a large effect, or if some values are much more
impactful than others.
It is not necessarily the case that all of the columns in the model will be examined in the time available, so it is not
guaranteed that the most impactful columns and values are displayed. However, various heuristics are employed to
ensure that the most likely columns are examined first. For example, say that after examining all the columns, it is
determined that the following columns/values have the biggest impact on the distribution, from most impact to
least:
Channel = Direct (only Direct listed, if it’s level of impact was much greater than Store)
Next steps
For more information about Power BI Desktop , and how to get started, check out the following articles.
What is Power BI Desktop?
Query Overview with Power BI Desktop
Data Sources in Power BI Desktop
Connect to Data in Power BI Desktop
Shape and Combine Data with Power BI Desktop
Common Query Tasks in Power BI Desktop
Use buttons in Power BI
8/13/2020 • 4 minutes to read • Edit Online
Using buttons in Power BI lets you create reports that behave similar to apps, and thereby, create an engaging
environment so users can hover, click, and further interact with Power BI content. You can add buttons to reports in
Power BI Desktop and in the Power BI ser vice . When you share your reports in the Power BI service, they
provide an app-like experience for your users.
Customize a button
Whether you create the button in Power BI Desktop or the Power BI service, the rest of the process is the same.
When you select the button on the report canvas, the Visualizations pane shows you the many ways you can
customize the button to fit your requirements. For example, you can turn Button Text on or off by toggling the
slider in that card of the Visualizations pane. You can also change the button icon, the button fill, the title, and the
action that's taken when users select the button in a report, among other properties.
Set button properties when idle, hovered over, or selected
Buttons in Power BI have three states: default (how they appear when not hovered over or selected), when hovered
over, or when selected (often referred to as being clicked). Many of the cards in the Visualizations pane can be
modified individually based on those three states, providing plenty of flexibility for customizing your buttons.
The following cards in the Visualizations pane let you adjust formatting or behavior of a button based on its three
states:
Button Text
Icon
Outline
Fill
To select how the button should appear for each state, expand one of those cards and select the drop-down that
appears at the top of the card. In the following image, you see the Icon card expanded, with the drop-down
selected to show the three states.
Select the action for a button
You can select which action is taken when a user selects a button in Power BI. You can access the options for button
actions from the Action card in the Visualizations pane.
You can build a custom navigation pane, and add the navigation buttons to it. You avoid having to edit and manage
bookmarks if you want to change which pages to show in your navigation pane.
Additionally, you can conditionally format the tooltip as you can do with other button types.
Set the navigation destination conditionally
You can use conditional formatting to set the navigation destination, based on the output of a measure. For
example, you may want to save space on your report canvas by having a single button to navigate to different
pages based on the user’s selection.
To create the example shown above, start by creating a single-column table with the names of the navigation
destinations:
Power BI uses exact string match to set the drill-through destination, so double-check that the entered values
exactly align with your drill-through page names.
After you've created the table, add it to the page as a single-select slicer:
Then create a page navigation button and select the conditional formatting option for the destination:
Select the name of the column you created, in this case, Select a destination :
Now the button can navigate to different pages, depending on the user’s selection.
Next steps
For more information about features that are similar or interact with buttons, take a look at the following articles:
Use drill through in Power BI reports
Use bookmarks to share insights and build stories in Power BI
Create a drill-through button
Create a drill-through button in Power BI
8/13/2020 • 7 minutes to read • Edit Online
You can create a drill-through button in Power BI, a button that drills through to a page with details that are filtered
to a specific context.
One way to drill through in a report is to right-click in a visual. If you want the drill-through action to be more
obvious, you can create a drill-though button instead. The button can increase the discoverability of important
drill-through scenarios in your reports. You can conditionally determine much of how the button looks and acts.
For example, you can show different text on a button if certain conditions are met. Read on for details.
In this example, after you select the Word bar in the chart, the See details button is enabled.
When you select the See details button, you drill through to the Market Basket Analysis page. As you can see
from the visual on the left, the drill-through page is now filtered for Word.
Set up a drill-through button
To set up a drill-through button, you first need to set up a valid drill-through page within your report. Then, you
need to create a button with Drill through as the action type and select the drill-through page as the
Destination .
Because the drill-through button has two states, enabled vs. disabled, you see two tooltip options.
If you leave the tooltips boxes blank, Power BI automatically generates tooltips. Those tooltips are based on the
destination and drill-through field(s).
Here's an example of the autogenerated tooltip when the button is disabled:
"To drill through to Market Basket Analysis [the destination page], select a single data point from Product [the drill-
through field]."
And here's an example of the autogenerated tooltip when the button is enabled:
"Click to drill through to Market Basket Analysis [the destination page]."
However, if you'd like to provide custom tooltips, you can always input a static string. You can also apply
conditional formatting to tooltips.
After you select the drill-through button, you see filters on both Store and Product being passed through to the
destination page:
Icon controls : shape, padding, alignment, line color, transparency, and weight
Outline controls : color, transparency, weight, round edges
String_for_button = If(SELECTEDVALUE('Product'[Product], 0) == 0, "See product details", "See details for " &
SELECTEDVALUE('Product'[Product]))
Once you've created this measure, you select the Conditional formatting option for the button text:
Then, you select the measure you created for the button text:
When either no products are selected, or more than one product is selected, the button is disabled. The button text
reads:
"See product details"
You want the button to suppor t multiple drill-through destinations based on user selections.
For example, say you have multiple destinations (Market details and Store details) that users can drill
through to. You can have them select a specific destination to drill through to before the button becomes
enabled for that drill-through destination.
You may also have interesting cases for a hybrid scenario to support both multiple drill-through
destinations and specific conditions where you want the button to be disabled. Read on for details about
these three options.
Disable the button until multiple conditions are met
Let's look at the first case, where you want to keep the button disabled until additional conditions are met. You
need to create a basic DAX measure that outputs an empty string (“”) unless the condition has been met. When it's
met, it then outputs the name of the drill-through destination page.
Here’s an example DAX measure that requires a Store to be selected before the user can drill through on a Product
to Store details page:
When you've created the measure, you select the conditional formatting (fx) button next to Destination for the
button:
For the last step, you select the DAX measure you created as the field value for the destination:
Now you see the button is disabled even when a single product is selected, because the measure also requires you
to select a single store:
Support multiple destinations
For the other common case where you want to support multiple destinations, you start by creating a single-
column table with the names of the drill-through destinations:
Power BI uses exact string match to set the drill-through destination, so double-check that the entered values
exactly align with your drill-through page names.
After you've created the table, add it to the page as a single-select slicer:
If you need more vertical space, convert the slicer to a dropdown. Remove the slicer header and add a text box
with the title next to it:
For the destination input for the drill-through action, select the conditional formatting (fx) button next to
Destination for the button:
Select the name of the column you created, in this case, Select a destination :
Now you see that the drill-through button is only enabled when you've selected a product and a destination:
Then you select the DAX measure you created as the field value for the destination. In this example, the user would
need to select a Product, a Store, and a destination page before the drill-through button is enabled:
Limitations
This button doesn't allow for multiple destinations using a single button.
This button only supports drill throughs within the same report; in other words, it doesn't support cross-report
drill through.
The disabled state formatting for the button is tied to the color classes in your report theme. Learn more about
color classes.
The drill-through action works for all built-in visuals, and works with some visuals imported from AppSource.
However, it isn't guaranteed to work with all visuals imported from AppSource.
Next steps
For more information about features that are similar or interact with buttons, take a look at the following articles:
Create buttons
Use drill through in Power BI reports
Use bookmarks to share insights and build stories in Power BI
Set up drill through in Power BI reports
8/13/2020 • 3 minutes to read • Edit Online
With drill through in Power BI reports, you can create a page in your report that focuses on a specific entity such
as a supplier, customer, or manufacturer. When your report readers use drill through, they right-click a data point
in other report pages, and drill through to the focused page to get details that are filtered to that context. You can
also create a button that drills through to details when they click it.
You can set up drill through in your reports in Power BI Desktop or the Power BI service.
IMPORTANT
You can configure and perform drillthrough to a page in the same report, however, you cannot drillthrough to a page in a
different report.
When report consumers choose to drill through, the page is filtered to show information about the data
point on which they right-clicked. For example, suppose they right-clicked on a data point about Contoso, a
manufacturer, and selected to drill through. The drill-through page they go to is filtered to Contoso.
When you then drill through on a visual, you can see which filters were applied as a result of the source visual
having temporary filters applied. In the Drill-through section of the Visualization pane, those transient filters
are shown in italics.
Although you could do this with tooltips pages, that would be an odd experience because the tooltip wouldn't
appear to be working properly. For this reason, so doing so with tooltips isn't recommended.
When you add a measure or summarized numeric column, you can drill through to the page when the field is
used in the Value area of a visual.
That's all there is to using drill through in your reports. It's a great way to get an expanded view of the entity
information that you selected for your drill-through filter.
Next steps
You might also be interested in the following articles:
Use cross-report drill through in Power BI reports
Using slicers Power BI Desktop
Use cross-report drill through in Power BI
8/13/2020 • 5 minutes to read • Edit Online
With the Power BI cross-report drill-through feature, you can contextually jump from one report to another report
in the same Power BI service workspace or app. You can use cross-report drill through to connect two or more
reports that have related content, and to pass filter context along with the cross-report connection.
To initiate cross-report drill through, you select a data point in a source visual of a source report, and then select
the cross-report Drill through target from the context menu.
The drill-through action opens the target page in the target report.
This article shows you how to set up and use cross-report drill through for Power BI reports.
NOTE
You can't use cross-report drill through with individually-shared Shared with me reports. To use cross-report drill through,
you must access reports in workspaces that you’re a member of.
IMPORTANT
Power BI caches cross-report drill-through targets. If you make changes, be sure to refresh your browser if you don't see the
drill-through targets as expected.
If you set Keep all filters to On when you set up the target page, filter context from the source visual can include
the following:
Report, page, and visual level filters that affect the source visual
Cross-filter and cross-highlighting that affect the source visual
Slicers and sync-slicers on the page
URL parameters
When you land on the target report for drill through, Power BI only applies filters for fields that have exact string
matches for field name and table name.
Power BI doesn't apply sticky filters from the target report, but it does apply your default personal bookmark if
you have one. For example, if your default personal bookmark includes a report-level filter for Country = US ,
Power BI applies that filter before applying the filter context from the source visual.
For cross-report drill through, Power BI passes the filter context to standard pages in the target report. Power BI
doesn't pass filter context for tooltip pages, because tooltip pages are filtered based on the source visual that
invokes the tooltip.
If you want to return to the source report after the cross-report drill-through action, use the browser's Back
button.
Next steps
You might also be interested in the following articles:
Slicers in Power BI
Use drill through in Power BI Desktop
Create bookmarks in Power BI Desktop to share
insights and build stories
8/13/2020 • 8 minutes to read • Edit Online
With bookmarks in Power BI Desktop, you capture the currently configured view of a report page, including
filtering and the state of visuals. Later, you can go back to that state by selecting the saved bookmark.
You can also create a collection of bookmarks, arrange them in the order you want, and later step through each
bookmark in a presentation to highlight a series of insights, or the story you want to tell with your visuals and
reports.
There are many uses for bookmarking. For example, you can use bookmarks to keep track of your own progress in
creating reports (bookmarks are easy to add, delete, and rename) and you can create bookmarks to build a
PowerPoint-like presentation that steps through bookmarks in order, thereby telling a story with your report.
TIP
For information about using personal bookmarks in the Power BI service, see Announcing personal bookmarks in the Power
BI Service.
Using bookmarks
To use bookmarks, select the View tab from the Power BI Desktop ribbon, then select Bookmarks Pane .
When you create a bookmark, the following elements are saved with the bookmark:
The current page
Filters
Slicers, including slicer type (for example, dropdown or list) and slicer state
Visual selection state (such as cross-highlight filters)
Sort order
Drill location
Visibility of an object (by using the Selection pane)
The focus or Spotlight modes of any visible object
Configure a report page as you want it to appear in the bookmark. After your report page and visuals are
arranged how you want them, select Add from the Bookmarks pane to add a bookmark.
Power BI Desktop creates a bookmark and gives it a generic name. You can easily Rename , Delete , or Update a
bookmark by selecting the ellipsis next to the bookmark's name, then selecting an action from the menu that
appears.
Arranging bookmarks
As you create bookmarks, you might find that the order in which you create them is different from the order you'd
like to present to your audience. No problem, you can easily rearrange the order of bookmarks.
In the Bookmarks pane, drag-and-drop bookmarks to change their order.
The yellow bar between bookmarks designates where the dragged bookmark will be placed.
The order of your bookmarks can be important when you use the View feature of bookmarks, as described in the
next section.
1. The name of the bookmark appears in the bookmark title bar, which appears at the bottom of the canvas.
2. The bookmark title bar has arrows that let you move to the next or previous bookmark.
3. You can exit View mode by selecting Exit from the Bookmarks pane or by selecting the X on the
bookmark title bar.
When you're in View mode, you can close the Bookmarks pane, by selecting the X on that pane, to provide more
space for your presentation. All visuals are interactive when they're in View mode and available for cross-
highlighting, just as they would be when you interact directly with them.
In the Selection pane, you select an object and toggle whether the object is currently visible by selecting the eye
icon to the right of the object.
When you add a bookmark, the visibility status of each object is also saved, based on its setting in the Selection
pane.
It's important to note that slicers continue to filter a report page, regardless of whether they're visible. As such, you
can create many different bookmarks, with different slicer settings, and make a single report page appear different
(and highlight different insights) in various bookmarks.
NOTE
When using the Selection pane in combination with bookmarks, changing the visibility of a selection results in its visibility
reverting to the default setting. After making such changes, you can right-click a bookmark and select update to update its
visibility.
Bookmark groups
Beginning with the August 2018 release of Power BI Desktop, you can create and use bookmark groups. A
bookmark group is a collection of bookmarks that you specify, which can be shown and organized as a group.
To create a bookmark group:
1. Press Ctrl and select the bookmarks you want to include in the group.
2. Select the ellipsis next to your selected bookmarks, and then select Group from the menu that appears.
Power BI Desktop automatically names the group Group 1. You can select the ellipsis next to this name, select
Rename , and rename it to whatever you want.
As with any bookmark group, expanding the bookmark group's name only expands or collapses the group of
bookmarks, and doesn't represent a bookmark by itself.
When you use the View feature of bookmarks, the following details apply:
If the selected bookmark is in a group when you select View from bookmarks, only the bookmarks in that
group are shown in the viewing session.
If the selected bookmark isn't in a group, or is on the top level (such as the name of a bookmark group),
then all bookmarks for the entire report are played, including bookmarks in any group.
To ungroup bookmarks:
1. Select any bookmark in a group and select the ellipsis.
2. Select Ungroup from the menu that appears.
Selecting Ungroup for any bookmark from a group removes all bookmarks from the group; it deletes the
group, but not the bookmarks themselves.
To remove a single bookmark from a group:
1. Ungroup any member from that group, which deletes the entire grouping.
2. Select the members you want in the new group by pressing Ctrl and selecting each bookmark, then and
select Group again.
Using spotlight
Another feature released with bookmarks is spotlight. With spotlight, you can draw attention to a specific chart, for
example, when presenting your bookmarks in View mode.
Let's compare spotlight to focus mode to see how they differ:
1. With focus mode, you select the Focus mode icon of a visual, which causes the visual to fill the entire
canvas.
2. With spotlight, you select Spotlight from the ellipsis of a visual to highlight one visual in its original size,
which causes all other visuals on the page to fade to near transparency.
When you select the Focus mode icon of the visual in the previous image, the page appears as follows:
In contrast, when Spotlight is selected from the visual's ellipsis menu, the page appears as follows:
If either the focus or spotlight mode is selected when you add a bookmark, that mode is retained in the bookmark.
In the Power BI service, the Bookmarks pane operates just as it does in Power BI Desktop, including the ability to
select View to show your bookmarks in order, like a slide show.
Use the gray bookmark title bar, instead of the black arrows, to navigate through the bookmarks. (The black arrows
move you through report pages, not bookmarks.)
Next steps
For more information about features that are similar or interact with bookmarks, see the following articles:
Use drillthrough in Power BI Desktop
Display a dashboard tile or report visual in focus mode
Use report themes in Power BI Desktop
8/13/2020 • 47 minutes to read • Edit Online
With Power BI Desktop report themes, you can apply design changes to your entire report, such as using corporate
colors, changing icon sets, or applying new default visual formatting. When you apply a report theme, all visuals in
your report use the colors and formatting from your selected theme as their defaults. A few exceptions apply,
which are described later in this article.
Report themes can be selected by navigating to the View ribbon, then selecting the drop-down arrow button in
the Themes section of the ribbon, then selecting the theme you want. Available themes are similar to themes seen
in other Microsoft products, such as Microsoft PowerPoint.
There are two types of report themes: built-in report themes and custom report theme files.
Built-in report themes provide different kinds of predefined color schemes that are installed with Power BI
Desktop. You select built-in report themes directly from the Power BI Desktop menu.
Custom report themes are created by adjusting a current theme then saving it as a custom theme, or
creating your own customize theme using a JSON file. The JSON file provides granular control over many
aspects of a report theme, as described later in this article.
Let's discuss how report themes work, then jump into how to create customized report themes.
How report themes work
To apply a report theme to a Power BI Desktop report, you can select from the following options:
Select from the available built-in report themes that are built into Power BI Desktop
Customize a theme, using the Customize theme dialog
Import a custom theme JSON file.
We'll take a look at each of these options in turn.
NOTE
Themes can only be applied when using Power BI Desktop. You cannot apply themes to existing reports within the Power BI
service.
2. Select from among the included themes from the drop-down menu that appears.
Your report theme is now applied to the report.
The following table shows the available built-in report themes.
Default
Highrise
Executive
Frontier
Innovate
Bloom
Tidal
B UILT - IN REP O RT T H EM E DEFA ULT C O LO R SEQ UEN C E
Temperature
Solar
Divergent
Storm
Classic
City park
Classroom
Colorblind safe
Electric
High contrast
Sunset
Twilight
3. You can also browse the collection of themes created by members of the Power BI Community, by selecting
Theme galler y from the Themes drop-down.
From the gallery, you can select a theme you like and download its associated JSON file.
To install the downloaded file, select Browse for themes from the Themes drop-down, navigate to the
location where you downloaded the JSON file, and select it to import the theme into Power BI Desktop as a
new theme.
When successful, Power BI shows a dialog that the import was successful.
2. A dialog appears, where you can make all sorts of changes to the current theme, and then, can save your
settings as a new theme.
Customizable theme settings are found in the following categories, reflected in the Customize theme window:
Name and colors : Theme name and color settings include theme colors, sentiment colors, divergent colors,
and structural colors (Advanced).
Text : Text settings include font family, size, and color, which sets the primary text class defaults for labels, titles,
cards and KPIs, and tab headers.
Visuals : Visual settings include background, border, header, and tooltips.
Page : Page element settings include wallpaper and background.
Filter pane : Filter pane settings include background color, transparency, font and icon color, size, filter cards.
After you make your changes, select Apply and save to save your theme. Your theme can now be used in the
current report, and exported.
Customizing the current theme in this way makes it quick and easy to customize themes. However, you can make
finer adjustments to themes, which require modifying the theme's JSON file.
TIP
You can customize the most common report theme options by using the controls in the Customize theme dialog. For
even more control, you can optionally export a theme's JSON file and make fine-tuned adjustments by manually modifying
the settings in that file. You can rename that fine-tuned JSON file and later import it.
When the theme file has loaded successfully, Power BI Desktop displays a success message.
Introduction to report theme JSON files
When you open the basic JSON file mentioned in the previous section (St Patricks Day.json), it appears as follows:
{
"name": "St Patrick's Day",
"dataColors": ["#568410", "#3A6108", "#70A322", "#915203", "#D79A12", "#bb7711", "#114400", "#aacc66"],
"background":"#FFFFFF",
"foreground": "#3A6108",
"tableAccent": "#568410"
}
NOTE
Modifying a custom JSON report theme with the Customize theme dialog box is safe. The dialog will not modify theme
settings that it cannot control, and will update the changes made to the report theme in-place.
In our example, after you apply the multitude of green and brown colors from the St. Patrick's Day report theme,
view the theme colors. See all that green? That's because those colors were part of the report theme that we
imported and applied.
The colors in the color palette are relative to the current theme. For example, suppose you select the third color of
the top row for a data point. Later, if you change to a different theme, that data point's color updates automatically
to the third color of the top row in the new theme, just as you'd see when changing themes in Microsoft Office.
Setting a report themes changes the default colors used in visuals throughout the report. Power BI maintains a list
consisting of hundreds of colors, to ensure visuals have plenty of unique colors to display in a report. When Power
BI assigns colors to a visual's series, colors are selected on a first-come, first-served basis as series colors are
assigned. When you import a theme, the mapping of colors for data series is reset.
Power BI tracks the color for a dynamic series, and uses the same color for the value in other visuals. In a dynamic
series, the number of series presented in visuals may change based on measures, values, or other aspects. For
example, if you show Profit by Region in a report, the number of sales regions you have might be five, or it might
be nine. The number of regions is dynamic, so it's considered a dynamic series.
Conversely, for static series, the number of series is known. For example, Profit and Revenue revenue are static
series. In static series, Power BI assigns colors by index within the theme palettes. You can override the default color
assignment by selecting a color from the formatting pane under Data colors . You may have to change your slicer
selections to see all potential series values, and set their colors as well. If you explicitly set a color explicitly a single
visual using the Proper ties pane, the imported theme does not apply to any of those explicitly defined colors.
To allow the theme to apply to those explicitly selected colors, use Rever t to default in the Data Colors section
the visual to which the color has been explicitly set, to undo the explicit color application and allow the theme to
apply.
Situations when report theme colors won't stick to your reports
Suppose you apply a custom color set (or individual color) to a particular data point in a visual by using the
Custom color option in the color picker. When you apply a report theme, it does not override that customized
data point color.
Or, suppose you want to manually set the color of a data point color by using the Theme colors section. When
you apply a new report theme, those colors are not updated. To get your default colors back, so they'll update
when you apply a new report theme, select Rever t to default , or select a color from the Theme colors palette in
the color picker.
Color blind friendly theme. This report theme is easier to read for the visually impaired. Download
ColorblindSafe-Longer.json.
.
Power View themes, featuring Apothecary.json. Download Power View themes in a zip file.
Valentine's Day theme.
{
"name": "Valentine's Day",
"dataColors": ["#990011", "#cc1144", "#ee7799", "#eebbcc", "#cc4477", "#cc5555", "#882222",
"#A30E33"],
"background":"#FFFFFF",
"foreground": "#ee7799",
"tableAccent": "#990011"
}
Here are a few more report themes you can use as starting points:
Sunflower-twilight
Plum
Autumn
High contrast
Report themes can make your Power BI Desktop reports a colorful reflection of you, your organization, or even the
current season or holiday.
{
"name": "Custom Theme"
}
Other than name , everything else is optional, which means you're free to only add the properties you specifically
want to format to the theme file, and continue to use Power BI's defaults for the rest.
Setting theme colors
Under name , you can add the following basic data color-related properties:
dataColors : The list of color hexadecimal codes to use to color shapes that represent data in Power BI Desktop
visuals. This list can have as many or as few colors as you want. Once all colors from this list have been used, if
the visual still needs more colors, it reverts back to using Power BI's default color palette.
good , neutral , bad : These properties set the status colors used by the waterfall chart and the KPI visual.
maximum , center , minimum , null : These colors set the various gradient colors in the conditional formatting
dialog box.
A basic theme that defines these colors might appear as follows:
{
"name": "Custom Theme",
"dataColors": [
"#118DFF",
"#12239E",
"#E66C37",
"#6B007B",
"#E044A7",
"#744EC2",
"#D9B300",
"#D64550",
"#197278",
"#1AAB40"
],
"good": "#1AAB40",
"neutral": "#D9B300",
"bad": "#D64554",
"maximum": "#118DFF",
"center": "#D9B300",
"minimum": "#DEEFFF",
"null": "#FF7F48"
}
C O LO R C L A SS W H AT IT F O RM AT S
tableAccent Overrides table and matrix grid outline color when present
TIP
If you are authoring a "dark theme" or other colorful theme that diverges from the typical "black" firstLevelElements on
"white" background style, be sure to also set the values for other structural colors and the primary text class colors. This will
ensure that (for example) data labels on charts with a label background will match the anticipated style and be readable, as
well as ensuring axis gridlines are visible.
* Starred items are also colored based on the first data color of the report theme.
TIP
The light variations of text classes take their light color from the structural colors defined above. If you are authoring a "dark
theme," be sure to also set the colors "firstLevelElements" (matching the primary text color), "secondLevelElements"
(matching the anticipated "light" color for text), and "background" (with sufficient contrast to both first- and second-level
elements colors).
Here's an example theme that sets only the primary text classes:
{
"name": "Custom Theme",
"textClasses": {
"callout": {
"fontSize": 45,
"fontFace": "DIN",
"color": "#252423"
},
"title": {
"fontSize": 12,
"fontFace": "DIN",
"color": "#252423"
},
"header": {
"fontSize": 12,
"fontFace": "Segoe UI Semibold",
"color": "#252423"
},
"label": {
"fontSize": 10,
"fontFace": "Segoe UI",
"color": "#252423"
}
}
}
Because secondary classes inherit from the primary classes, you don't need to set them in your theme file.
However, if you don't like the inheritance rules (for example, if you don't want your totals to be a bolded version of
the values in a table), you can explicitly format the secondary classes in the theme file, just like you can format the
primary classes.
Setting visual property defaults ( visualStyles )
Lastly, to create an extended-format JSON file, with more detailed and granular control over all visual formatting in
a report, add a visualStyles section to the JSON file to nest the formatting specifics. Here's a templated example
of the visualStyles section:
"visualStyles": {
"<visualName>": {
"<styleName>": {
"<cardName>": [{
"<propertyName>": <propertyValue>
}]
}
}
}
For the visualName and cardName sections, use a specific visual and card name. Currently, the styleName is
always an asterisk (*), but in a future release you'll be able to create different styles for your visuals and give them
names (similar to the table and matrix style feature). proper tyName is the name of the formatting option and
proper tyValue is the value for that formatting option.
For visualName and cardName , use an asterisk in quotes if you want that setting to apply to all visuals or cards
that have a property. If you use an asterisk for both the visual and card name, you're effectively applying a setting
globally in your report, such as a font size or specific font family for all text across all visuals.
Here's an example that sets a few properties through the visual styles:
{
"name":"Custom Theme",
"visualStyles":{
"*": {
"*": {
"*": [{
"wordWrap": true
}],
"categoryAxis": [{
"gridlineStyle": "dotted"
}],
"filterCard": [
{
"$id": "Applied",
"foregroundColor": {"solid": {"color": "#252423" } }
},
{
"$id":"Available",
"border": true
}
]
}
},
"scatterChart": {
"*": {
"bubbles": [{
"bubbleSize": -10
}]
}
}
}
}
NOTE
You need only specify the formatting elements you want to adjust. Any formatting elements that aren't included in the JSON
file revert to their default values and settings.
areaChart
barChart
basicShape
card
clusteredBarChart
clusteredColumnChart
columnChart
comboChart
donutChart
filledMap
funnel
gauge
hundredPercentStackedBarChart
hundredPercentStackedColumnChart
image
kpi
lineChart
lineClusteredColumnComboChart
lineStackedColumnComboChart
map
multiRowCard
pieChart
pivotTable
ribbonChart
scatterChart
VISUA L N A M E VA L UES
shapeMap
slicer
stackedAreaChart
tableEx
treemap
waterfallChart
The following table defines cardName values. The first value in each cell is the JSON file term. The second value is
the name of the card as seen in the Power BI Desktop user interface.
C A RDN A M E VA L UES
breakdown: Breakdown
bubbles: Bubbles
card: Card
categoryAxis: X-Axis
fill: Fill
forecast: Forecast
general: General
goals: Goals
grid: Grid
C A RDN A M E VA L UES
header: Header
imageScaling: Scaling
indicator: Indicator
items: Items
legend: Legend
lineStyles: Shapes
ribbonChart: Ribbons
rotation: Rotation
shape: Shape
slider: Slider
subTotals: Subtotals
target: Target
C A RDN A M E VA L UES
valueAxis: Y-Axis
values: Values
zoom: Zoom
An enumeration, most commonly used for drop-down formatting options, means it can be set to any of the
options seen in the pane, for example "RightCenter" for legend position or "Data value, percent of total" for pie
data label. The enumeration options are shown below the property list.
{
"general":{
"responsive": {
"type": [
"bool"
],
"displayName": [
"(Preview) Responsive"
],
"description": [
"The visual will adapt to size changes"
]
},
"legend": {
"legend": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"position": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Select the location for the legend"
]
},
"showTitle": {
"type": [
"bool"
],
"displayName": [
"Title"
],
"description": [
"Display a title for legend symbols"
]
},
"labelColor": {
"type": [
"fill"
],
"displayName": [
"Color"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
}
},
"categoryAxis": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"axisScale": {
"type": [
"enumeration"
],
"displayName": [
"displayName": [
"Scale type"
]
},
"start": {
"type": [
"numeric",
"dateTime"
],
"displayName": [
"Start"
],
"description": [
"Enter a starting value (optional)"
]
},
"end": {
"type": [
"numeric",
"dateTime"
],
"displayName": [
"End"
],
"description": [
"Enter an ending value (optional)"
]
},
"axisType": {
"type": [
"enumeration"
],
"displayName": [
"Type"
]
},
"showAxisTitle": {
"type": [
"bool"
],
"displayName": [
"Title"
],
"description": [
"Title for the X-axis",
"Title for the Y-axis"
]
},
"axisStyle": {
"type": [
"enumeration"
],
"displayName": [
"Style"
]
},
"labelColor": {
"type": [
"fill"
],
"displayName": [
"Color"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"labelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"labelPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
},
"concatenateLabels": {
"type": [
"bool"
],
"displayName": [
"Concatenate labels"
],
"description": [
"Always concatenate levels of the hierarchy instead of drawing the hierarchy."
]
},
"preferredCategoryWidth": {
"type": [
"numeric"
],
"displayName": [
"Minimum category width"
]
},
"titleColor": {
"type": [
"fill"
],
"displayName": [
"Title color"
]
},
"titleFontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"titleFontSize": {
"type": [
"formatting"
],
"displayName": [
"Title text size"
]
},
"position": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Select left or right"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"duration": {
"type": [
"numeric"
]
}
},
"valueAxis": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"position": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Select left or right"
]
},
"axisScale": {
"type": [
"enumeration"
],
"displayName": [
"Scale type"
]
},
"start": {
"type": [
"numeric",
"dateTime"
],
"displayName": [
"displayName": [
"Start"
],
"description": [
"Enter a starting value (optional)"
]
},
"end": {
"type": [
"numeric",
"dateTime"
],
"displayName": [
"End"
],
"description": [
"Enter an ending value (optional)"
]
},
"showAxisTitle": {
"type": [
"bool"
],
"displayName": [
"Title"
],
"description": [
"Title for the Y-axis",
"Title for the X-axis"
]
},
"axisStyle": {
"type": [
"enumeration"
],
"displayName": [
"Style"
]
},
"labelColor": {
"type": [
"fill"
],
"displayName": [
"Color"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"labelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"labelPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
},
"titleColor": {
"type": [
"fill"
],
"displayName": [
"Title color"
]
},
"titleFontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"titleFontSize": {
"type": [
"formatting"
],
"displayName": [
"Title text size"
]
},
"axisLabel": {
"type": [
"none"
],
"displayName": [
"Y-Axis (Column)"
]
},
"secShow": {
"type": [
"bool"
],
"displayName": [
"Show secondary"
]
},
"alignZeros": {
"type": [
"bool"
],
"displayName": [
"Align zeros"
],
"description": [
"Align the zero tick marks for both value axes"
]
},
"secAxisLabel": {
"type": [
"none"
"none"
],
"displayName": [
"Y-Axis (Line)"
]
},
"secPosition": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Select left or right"
]
},
"secAxisScale": {
"type": [
"enumeration"
],
"displayName": [
"Scale type"
]
},
"secStart": {
"type": [
"numeric"
],
"displayName": [
"Start"
],
"description": [
"Enter a starting value (optional)"
]
},
"secEnd": {
"type": [
"numeric"
],
"displayName": [
"End"
],
"description": [
"Enter an ending value (optional)"
]
},
"secShowAxisTitle": {
"type": [
"bool"
],
"displayName": [
"Title"
],
"description": [
"Title for the Y-axis"
]
},
"secAxisStyle": {
"type": [
"enumeration"
],
"displayName": [
"Style"
]
},
"secLabelColor": {
"type": [
"fill"
],
],
"displayName": [
"Color"
]
},
"secFontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"secFontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"secLabelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"secLabelPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
},
"secTitleColor": {
"type": [
"fill"
],
"displayName": [
"Title color"
]
},
"secTitleFontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"secTitleFontSize": {
"type": [
"formatting"
],
"displayName": [
"Title text size"
]
}
},
"dataPoint": {
"defaultColor": {
"type": [
"fill"
],
"displayName": [
"Default color",
"Default Column Color"
]
},
"fill": {
"type": [
"fill"
],
"displayName": [
"Fill"
]
},
"defaultCategoryColor": {
"type": [
"fill"
],
"displayName": [
"Default color",
"Default Column Color"
]
},
"showAllDataPoints": {
"type": [
"bool"
],
"displayName": [
"Show all"
]
}
},
"labels": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"showSeries": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"labelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"labelPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
},
"showAll": {
"type": [
"bool"
],
"displayName": [
"Customize series"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"labelDensity": {
"type": [
"formatting"
],
"displayName": [
"Label density"
]
},
"labelOrientation": {
"type": [
"enumeration"
],
"displayName": [
"Orientation"
]
},
"labelPosition": {
"type": [
"enumeration"
],
"displayName": [
"Position"
]
},
"percentageLabelPrecision": {
"type": [
"numeric"
],
"displayName": [
"displayName": [
"% decimal places"
],
"description": [
"Select the number of decimal places to display for the percentages"
]
},
"labelStyle": {
"type": [
"enumeration"
],
"displayName": [
"Label style"
]
}
},
"lineStyles": {
"strokeWidth": {
"type": [
"numeric"
],
"displayName": [
"Stroke width"
]
},
"strokeLineJoin": {
"type": [
"enumeration"
],
"displayName": [
"Join type"
]
},
"lineStyle": {
"type": [
"enumeration"
],
"displayName": [
"Line style"
]
},
"showMarker": {
"type": [
"bool"
],
"displayName": [
"Show marker"
]
},
"markerShape": {
"type": [
"enumeration"
],
"displayName": [
"Marker shape"
]
},
"markerSize": {
"type": [
"numeric"
],
"displayName": [
"Marker size"
]
},
"markerColor": {
"type": [
"fill"
],
"displayName": [
"displayName": [
"Marker color"
]
},
"showSeries": {
"type": [
"bool"
],
"displayName": [
"Customize series",
"Show"
]
},
"shadeArea": {
"type": [
"bool"
],
"displayName": [
"Shade area"
]
}
},
"plotArea": {
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for background color"
]
}
},
"trend": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"displayName": {
"type": [
"text"
],
"displayName": [
"Name"
],
"description": [
"Set trend line name"
]
},
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set trend line color"
]
},
"transparency": {
"type": [
"numeric"
],
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for trend line color"
]
},
"style": {
"type": [
"enumeration"
],
"displayName": [
"Style"
],
"description": [
"Set trend line style"
]
},
"combineSeries": {
"type": [
"bool"
],
"displayName": [
"Combine Series"
],
"description": [
"Show one trend line per series or combine"
]
}
},
"y1AxisReferenceLine": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"value": {
"type": [
"numeric"
],
"displayName": [
"Value"
],
"description": [
"Set reference line numeric value"
]
},
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set reference line color"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"description": [
"Set transparency for reference line color"
]
},
"style": {
"type": [
"enumeration"
],
"displayName": [
"Line style"
]
},
"position": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Arrange relative to chart data points"
]
},
"dataLabelShow": {
"type": [
"bool"
],
"displayName": [
"Data label"
],
"description": [
"Display a data label for the reference line"
]
},
"dataLabelColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set the reference line data label color"
]
},
"dataLabelDecimalPoints": {
"type": [
"numeric"
],
"displayName": [
"Decimal Places"
]
},
"dataLabelHorizontalPosition": {
"type": [
"enumeration"
],
"displayName": [
"Horizontal Position"
],
"description": [
"Set the horizontal position for the reference line data label"
]
},
"dataLabelVerticalPosition": {
"type": [
"enumeration"
],
"displayName": [
"Vertical Position"
"Vertical Position"
],
"description": [
"Set the vertical position for the reference line data label"
]
},
"dataLabelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
}
},
"referenceLine": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"displayName": {
"type": [
"text"
],
"displayName": [
"Name"
],
"description": [
"Set reference line name"
]
},
"value": {
"type": [
"numeric"
],
"displayName": [
"Value"
],
"description": [
"Set reference line numeric value"
]
},
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set reference line color"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for reference line color"
]
},
"style": {
"type": [
"enumeration"
],
"displayName": [
"Line style"
]
},
"position": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Arrange relative to chart data points"
]
},
"dataLabelShow": {
"type": [
"bool"
],
"displayName": [
"Data label"
],
"description": [
"Display a data label for the reference line"
]
},
"dataLabelColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set the reference line data label color"
]
},
"dataLabelDecimalPoints": {
"type": [
"numeric"
],
"displayName": [
"Decimal Places"
]
},
"dataLabelHorizontalPosition": {
"type": [
"enumeration"
],
"displayName": [
"Horizontal Position"
],
"description": [
"Set the horizontal position for the reference line data label"
]
},
"dataLabelVerticalPosition": {
"type": [
"enumeration"
],
"displayName": [
"Vertical Position"
],
],
"description": [
"Set the vertical position for the reference line data label"
]
},
"dataLabelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
}
},
"line": {
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Line color"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for background color"
]
},
"weight": {
"type": [
"numeric"
],
"displayName": [
"Weight"
]
},
"roundEdge": {
"type": [
"numeric"
],
"displayName": [
"Round edges"
]
}
},
"fill": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"fillColor": {
"type": [
"fill"
],
"displayName": [
"Fill color"
]
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for background color"
]
}
},
"rotation": {
"angle": {
"type": [
"numeric"
],
"displayName": [
"Rotation"
]
}
},
"categoryLabels": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"wordWrap": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
}
}
},
"dataLabels": {
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"cardTitle": {
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"card": {
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"outlineColor": {
"outlineColor": {
"type": [
"fill"
],
"displayName": [
"Outline color"
],
"description": [
"Color of the outline"
]
},
"outlineWeight": {
"type": [
"numeric"
],
"displayName": [
"Outline weight"
],
"description": [
"Thickness of the outline in pixels"
]
},
"barShow": {
"type": [
"bool"
],
"displayName": [
"Show bar"
],
"description": [
"Display a bar to the left side of the card as an accent"
]
},
"barColor": {
"type": [
"fill"
],
"displayName": [
"Bar color"
]
},
"barWeight": {
"type": [
"numeric"
],
"displayName": [
"Bar thickness"
],
"description": [
"Thickness of the bar in pixels"
]
},
"cardPadding": {
"type": [
"numeric"
],
"displayName": [
"Padding"
],
"description": [
"Background"
]
},
"cardBackground": {
"type": [
"fill"
],
"displayName": [
"Background"
]
]
}
},
"percentBarLabel": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"axis": {
"min": {
"type": [
"numeric"
],
"displayName": [
"Min"
]
},
"max": {
"type": [
"numeric"
],
"displayName": [
"Max"
]
},
"target": {
"type": [
"numeric"
],
"displayName": [
"Target"
]
}
},
"target": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"labelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"labelPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"calloutValue": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Select color for data labels"
]
},
"labelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"labelPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
}
},
"forecast": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"displayName": {
"type": [
"text"
],
"displayName": [
"Name"
],
"description": [
"Set forecast name"
]
},
"confidenceBandStyle": {
"type": [
"enumeration"
],
"displayName": [
"Confidence band style"
],
"description": [
"Set forecast confidence band style"
]
},
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"description": [
"Set forecast line color"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for background color"
]
},
"style": {
"type": [
"enumeration"
],
"displayName": [
"Line style"
]
},
"transform": {
"type": [
"queryTransform"
]
}
},
"bubbles": {
"bubbleSize": {
"type": [
"formatting"
],
"displayName": [
"Size"
]
}
},
"mapControls": {
"autoZoom": {
"type": [
"bool"
],
"displayName": [
"Auto zoom"
]
},
"zoomLevel": {
"type": [
"numeric"
]
},
"centerLatitude": {
"type": [
"numeric"
]
},
"centerLongitude": {
"type": [
"numeric"
]
}
},
"mapStyles": {
"mapTheme": {
"type": [
"enumeration"
],
"displayName": [
"displayName": [
"Theme"
]
}
},
"shape": {
"map": {
"type": [
"geoJson"
]
},
"projectionEnum": {
"type": [
"enumeration"
],
"displayName": [
"Projection"
],
"description": [
"Projection"
]
}
},
"zoom": {
"autoZoom": {
"type": [
"bool"
],
"displayName": [
"Auto zoom"
],
"description": [
"Zoom in on shapes with available data"
]
},
"selectionZoom": {
"type": [
"bool"
],
"displayName": [
"Selection zoom"
],
"description": [
"Zoom in on selected shapes"
]
},
"manualZoom": {
"type": [
"bool"
],
"displayName": [
"Manual zoom"
],
"description": [
"Allow user to zoom and pan"
]
}
},
"xAxisReferenceLine": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"value": {
"type": [
"numeric"
"numeric"
],
"displayName": [
"Value"
],
"description": [
"Set reference line numeric value"
]
},
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set reference line color"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for reference line color"
]
},
"style": {
"type": [
"enumeration"
],
"displayName": [
"Line style"
]
},
"position": {
"type": [
"enumeration"
],
"displayName": [
"Position"
],
"description": [
"Arrange relative to chart data points"
]
},
"dataLabelShow": {
"type": [
"bool"
],
"displayName": [
"Data label"
],
"description": [
"Display a data label for the reference line"
]
},
"dataLabelColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set the reference line data label color"
"Set the reference line data label color"
]
},
"dataLabelDecimalPoints": {
"type": [
"numeric"
],
"displayName": [
"Decimal Places"
]
},
"dataLabelHorizontalPosition": {
"type": [
"enumeration"
],
"displayName": [
"Horizontal Position"
],
"description": [
"Set the horizontal position for the reference line data label"
]
},
"dataLabelVerticalPosition": {
"type": [
"enumeration"
],
"displayName": [
"Vertical Position"
],
"description": [
"Set the vertical position for the reference line data label"
]
},
"dataLabelDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
}
},
"fillPoint": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
}
},
"colorByCategory": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
}
},
"plotAreaShading": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"upperShadingColor": {
"type": [
"fill"
],
"displayName": [
"Upper shading"
],
"description": [
"Shading color of the upper region"
]
},
"lowerShadingColor": {
"type": [
"fill"
],
"displayName": [
"Lower shading"
],
"description": [
"Shading color of the lower region"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for background color"
]
}
},
"ratioLine": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"lineColor": {
"type": [
"fill"
],
"displayName": [
"Color"
],
"description": [
"Set reference line color"
]
},
"transparency": {
"type": [
"numeric"
],
"displayName": [
"Transparency"
],
"description": [
"Set transparency for line color"
]
},
"style": {
"type": [
"enumeration"
],
"displayName": [
"Line style"
]
}
},
"grid": {
"outlineColor": {
"type": [
"fill"
],
"displayName": [
"Outline color"
],
"description": [
"Color of the outline"
]
},
"outlineWeight": {
"type": [
"numeric"
],
"displayName": [
"Outline weight"
],
"description": [
"Thickness of the outline in pixels"
]
},
"gridVertical": {
"type": [
"bool"
],
"displayName": [
"Vert grid"
],
"description": [
"Show/Hide the vertical gridlines"
]
},
"gridVerticalColor": {
"type": [
"fill"
],
"displayName": [
"Vert grid color"
],
"description": [
"Color for the vertical gridlines"
]
},
"gridVerticalWeight": {
"type": [
"numeric"
],
"displayName": [
"Vert grid thickness"
],
"description": [
"Thickness of the vertical gridlines in pixels"
]
},
"gridHorizontal": {
"type": [
"bool"
"bool"
],
"displayName": [
"Horiz grid"
],
"description": [
"Show/Hide the horizontal gridlines"
]
},
"gridHorizontalColor": {
"type": [
"fill"
],
"displayName": [
"Horiz grid color"
],
"description": [
"Color for the horizontal gridlines"
]
},
"gridHorizontalWeight": {
"type": [
"numeric"
],
"displayName": [
"Horiz grid thickness"
],
"description": [
"Thickness of the horizontal gridlines in pixels"
]
},
"rowPadding": {
"type": [
"numeric"
],
"displayName": [
"Row padding"
],
"description": [
"Padding in pixels applied to top and bottom of every row"
]
},
"imageHeight": {
"type": [
"numeric"
],
"displayName": [
"Image height"
],
"description": [
"The height of images in pixels"
]
},
"textSize": {
"type": [
"numeric"
],
"displayName": [
"Text Size"
]
}
},
"columnHeaders": {
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
]
},
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
"backColor": {
"type": [
"fill"
],
"displayName": [
"Background color"
],
"description": [
"Background color of the cells"
]
},
"wordWrap": {
"type": [
"bool"
],
"displayName": [
"Word wrap"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"autoSizeColumnWidth": {
"type": [
"bool"
],
"displayName": [
"Auto-size column width"
]
},
"urlIcon": {
"type": [
"bool"
],
"displayName": [
"URL icon"
],
"description": [
"Show an icon instead of the full URL"
]
}
},
"values": {
"outline": {
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"backColor": {
"type": [
"fill"
],
"displayName": [
"Color scales"
]
},
"fontColorPrimary": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the odd rows"
]
},
"backColorPrimary": {
"type": [
"fill"
],
"displayName": [
"Background color"
],
"description": [
"Background color of the odd rows"
]
},
"fontColorSecondary": {
"type": [
"fill"
],
"displayName": [
"Alternate font color"
],
"description": [
"Font color of the even rows"
]
},
"backColorSecondary": {
"type": [
"fill"
],
"displayName": [
"Alternate background color"
],
"description": [
"Background color of the even rows"
]
},
"urlIcon": {
"type": [
"bool"
],
"displayName": [
"URL icon"
],
"description": [
"Show an icon instead of the full URL"
]
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"wordWrap": {
"type": [
"bool"
],
"displayName": [
"Word wrap"
]
},
"bandedRowHeaders": {
"type": [
"bool"
],
"displayName": [
"Banded row style"
],
"description": [
"Apply banded row style to the last level of the row group headers, using the colors of the
values."
]
},
"valuesOnRow": {
"type": [
"bool"
],
"displayName": [
"Show on rows"
],
"description": [
"Show values in row groups rather than columns"
]
}
},
"total": {
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
},
"backColor": {
"type": [
"fill"
],
"displayName": [
"Background color"
],
"description": [
"Background color of the cells"
]
},
"applyToHeaders": {
"type": [
"bool"
],
"displayName": [
"Apply to labels"
]
},
"totals": {
"type": [
"bool"
],
"displayName": [
"Totals"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
}
},
"columnFormatting": {
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
"backColor": {
"type": [
"fill"
],
"displayName": [
"Background color"
],
"description": [
"Background color of the cells"
]
},
"styleHeader": {
"type": [
"bool"
],
"displayName": [
"Color header"
]
},
"styleValues": {
"type": [
"bool"
],
"displayName": [
"Color values"
]
},
"styleTotal": {
"type": [
"bool"
],
"displayName": [
"Color total"
]
},
"styleSubtotals": {
"type": [
"bool"
],
"displayName": [
"Color subtotals"
]
}
},
"rowHeaders": {
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
"backColor": {
"type": [
"fill"
],
"displayName": [
"Background color"
],
"description": [
"Background color of the cells"
]
},
"wordWrap": {
"type": [
"bool"
],
"displayName": [
"Word wrap"
"Word wrap"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"stepped": {
"type": [
"bool"
],
"displayName": [
"Stepped layout"
],
"description": [
"Render row headers with stepped layout"
]
},
"steppedLayoutIndentation": {
"type": [
"numeric"
],
"displayName": [
"Stepped layout indentation"
],
"description": [
"Set the indentation, in pixels, applied to row headers"
]
},
"urlIcon": {
"type": [
"bool"
],
"displayName": [
"URL icon"
],
"description": [
"Show an icon instead of the full URL"
]
}
},
"subTotals": {
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"description": [
"Font color of the cells"
]
},
"backColor": {
"type": [
"fill"
],
"displayName": [
"Background color"
],
"description": [
"Background color of the cells"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"fontSize": {
"type": [
"formatting"
],
"displayName": [
"Text Size"
]
},
"rowSubtotals": {
"type": [
"bool"
],
"displayName": [
"Total row"
]
},
"columnSubtotals": {
"type": [
"bool"
],
"displayName": [
"Total column"
]
},
"applyToHeaders": {
"type": [
"bool"
],
"displayName": [
"Apply to labels"
]
}
},
"selection": {
"selectAllCheckboxEnabled": {
"type": [
"bool"
],
"displayName": [
"Select All"
]
},
"singleSelect": {
"type": [
"bool"
],
"displayName": [
"displayName": [
"Single Select"
]
}
},
"header": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
"background": {
"type": [
"fill"
],
"displayName": [
"Background"
]
},
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"textSize": {
"type": [
"numeric"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"items": {
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
},
"background": {
"type": [
"fill"
],
"displayName": [
"Background"
]
},
"outline": {
"type": [
"enumeration"
],
"displayName": [
"Outline"
]
},
"textSize": {
"type": [
"numeric"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
}
},
"numericInputStyle": {
"fontColor": {
"type": [
"fill"
],
"displayName": [
"Font color"
],
"description": [
"Font color of the cells"
]
},
"textSize": {
"type": [
"numeric"
],
"displayName": [
"Text Size"
]
},
"fontFamily": {
"type": [
"formatting"
],
"displayName": [
"Font family"
]
},
"background": {
"type": [
"fill"
],
"displayName": [
"Background"
]
}
}
},
"slider": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
},
"color": {
"type": [
"fill"
],
"displayName": [
"Color"
]
}
},
"dateRange": {
"includeToday": {
"type": [
"bool"
],
"displayName": [
"Include today"
]
}
},
"sentimentColors": {
"increaseFill": {
"type": [
"fill"
],
"displayName": [
"Increase"
]
},
"decreaseFill": {
"type": [
"fill"
],
"displayName": [
"Decrease"
]
},
"totalFill": {
"type": [
"fill"
],
"displayName": [
"Total"
]
},
"otherFill": {
"type": [
"fill"
],
"displayName": [
"Other"
]
}
},
"breakdown": {
"maxBreakdowns": {
"type": [
"integer"
],
"displayName": [
"Max breakdowns"
],
"description": [
"The number of individual breakdowns to show (rest grouped into Other)"
]
}
},
"indicator": {
"indicatorDisplayUnits": {
"type": [
"formatting"
],
"displayName": [
"Display units"
],
"description": [
"Select the units (millions, billions, etc.)"
]
},
"indicatorPrecision": {
"type": [
"numeric"
],
"displayName": [
"Value decimal places"
],
"description": [
"Select the number of decimal places to display for the values"
]
},
"kpiFormat": {
"type": [
"text"
],
"displayName": [
"Format"
]
}
},
"trendline": {
"show": {
"type": [
"bool"
],
"displayName": [
"Show"
]
}
},
"goals": {
"showGoal": {
"type": [
"bool"
],
"displayName": [
"Goal"
]
},
"showDistance": {
"type": [
"bool"
],
"displayName": [
"Distance"
]
}
},
"status": {
"direction": {
"type": [
"enumeration"
],
"displayName": [
"Direction"
]
},
"goodColor": {
"type": [
"fill"
],
"displayName": [
"Good Color"
]
},
"neutralColor": {
"type": [
"fill"
],
"displayName": [
"Neutral Color"
]
},
"badColor": {
"type": [
"fill"
],
"displayName": [
"Bad Color"
]
}
}
{
"legend": {
"position": [
{
"value": "Top",
"displayName": "Top"
},
{
"value": "Bottom",
"displayName": "Bottom"
},
{
"value": "Left",
"displayName": "Left"
},
{
"value": "Right",
"displayName": "Right"
},
{
"value": "TopCenter",
"displayName": "Top Center"
},
{
"value": "BottomCenter",
"displayName": "Bottom Center"
},
{
"value": "LeftCenter",
"displayName": "Left Center"
"displayName": "Left Center"
},
{
"value": "RightCenter",
"displayName": "Right center"
}
],
"legendMarkerRendering": [
{
"value": "markerOnly",
"displayName": "Markers only"
},
{
"value": "lineAndMarker",
"displayName": "Line and markers"
},
{
"value": "lineOnly",
"displayName": "Line only"
}
]
},
"categoryAxis": {
"axisScale": [
{
"value": "linear",
"displayName": "Linear"
},
{
"value": "log",
"displayName": "Log"
}
],
"axisType": [
{
"value": "Scalar",
"displayName": "Continuous"
},
{
"value": "Categorical",
"displayName": "Categorical"
}
],
"axisStyle": [
{
"value": "showTitleOnly",
"displayName": "Show title only"
},
{
"value": "showUnitOnly",
"displayName": "Show unit only"
},
{
"value": "showBoth",
"displayName": "Show both"
}
],
"gridlineStyle": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
],
"position": [
{
"value": "Left",
"displayName": "Left"
},
{
"value": "Right",
"displayName": "Right"
}
]
},
"valueAxis": {
"position": [
{
"value": "Left",
"displayName": "Left"
},
{
"value": "Right",
"displayName": "Right"
}
],
"axisScale": [
{
"value": "linear",
"displayName": "Linear"
},
{
"value": "log",
"displayName": "Log"
}
],
"axisStyle": [
{
"value": "showTitleOnly",
"displayName": "Show title only"
},
{
"value": "showUnitOnly",
"displayName": "Show unit only"
},
{
"value": "showBoth",
"displayName": "Show both"
}
],
"gridlineStyle": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
],
"secPosition": [
{
"value": "Left",
"displayName": "Left"
},
{
"value": "Right",
"displayName": "Right"
}
],
"secAxisScale": [
{
"value": "linear",
"displayName": "Linear"
},
{
"value": "log",
"displayName": "Log"
}
],
"secAxisStyle": [
{
"value": "showTitleOnly",
"displayName": "Show title only"
},
{
"value": "showUnitOnly",
"displayName": "Show unit only"
},
{
"value": "showBoth",
"displayName": "Show both"
}
]
},
"lineStyles": {
"strokeLineJoin": [
{
"value": "miter",
"displayName": "Miter"
},
{
"value": "round",
"displayName": "Round"
},
{
"value": "bevel",
"displayName": "Bevel"
}
],
"lineStyle": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
],
"markerShape": [
{
"value": "circle",
"displayName": "●"
},
{
"value": "square",
"displayName": "■"
},
{
"value": "diamond",
"displayName": "◆"
"displayName": "◆"
},
{
"value": "triangle",
"displayName": "▲"
},
{
"value": "x",
"displayName": "☓"
},
{
"value": "shortDash",
"displayName": " -"
},
{
"value": "longDash",
"displayName": "—"
},
{
"value": "plus",
"displayName": "+"
}
]
},
"trend": {
"style": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
]
},
"y1AxisReferenceLine": {
"style": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
],
"position": [
{
"value": "back",
"displayName": "Behind"
},
{
"value": "front",
"displayName": "In Front"
}
],
"dataLabelText": [
{
"value": "Value",
"displayName": "Value"
},
},
{
"value": "Name",
"displayName": "Name"
},
{
"value": "ValueAndName",
"displayName": "Name and Value"
}
],
"dataLabelHorizontalPosition": [
{
"value": "left",
"displayName": "Left"
},
{
"value": "right",
"displayName": "Right"
}
],
"dataLabelVerticalPosition": [
{
"value": "above",
"displayName": "Above"
},
{
"value": "under",
"displayName": "Under"
}
]
},
"referenceLine": {
"style": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
],
"position": [
{
"value": "back",
"displayName": "Behind"
},
{
"value": "front",
"displayName": "In Front"
}
],
"dataLabelText": [
{
"value": "Value",
"displayName": "Value"
},
{
"value": "Name",
"displayName": "Name"
},
{
"value": "ValueAndName",
"displayName": "Name and Value"
}
],
],
"dataLabelHorizontalPosition": [
{
"value": "left",
"displayName": "Left"
},
{
"value": "right",
"displayName": "Right"
}
],
"dataLabelVerticalPosition": [
{
"value": "above",
"displayName": "Above"
},
{
"value": "under",
"displayName": "Under"
}
]
},
"labels": {
"labelOrientation": [
{
"value": "vertical",
"displayName": "Vertical"
},
{
"value": "horizontal",
"displayName": "Horizontal"
}
],
"labelPosition": [
{
"value": "Auto",
"displayName": "Auto"
},
{
"value": "InsideEnd",
"displayName": "Inside End"
},
{
"value": "OutsideEnd",
"displayName": "Outside End"
},
{
"value": "InsideCenter",
"displayName": "Inside Center"
},
{
"value": "InsideBase",
"displayName": "Inside Base"
}
],
"labelStyle": [
{
"value": "Category",
"displayName": "Category"
},
{
"value": "Data",
"displayName": "Data value"
},
{
"value": "Percent of total",
"displayName": "Percent of total"
},
{
"value": "Both",
"value": "Both",
"displayName": "Category, data value"
},
{
"value": "Category, percent of total",
"displayName": "Category, percent of total"
},
{
"value": "Data value, percent of total",
"displayName": "Data value, percent of total"
},
{
"value": "Category, data value, percent of total",
"displayName": "All detail labels"
}
]
},
"card": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"imageScaling": {
"imageScalingType": [
{
"value": "Normal",
"displayName": "Normal"
},
{
"value": "Fit",
"displayName": "Fit"
},
{
"value": "Fill",
"displayName": "Fill"
}
]
},
"forecast": {
"forecast": {
"confidenceBandStyle": [
{
"value": "fill",
"displayName": "Fill"
},
{
"value": "line",
"displayName": "Line"
},
{
"value": "none",
"displayName": "None"
}
],
"style": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
]
},
"mapStyles": {
"mapTheme": [
{
"value": "aerial",
"displayName": "Aerial"
},
{
"value": "canvasDark",
"displayName": "Dark"
},
{
"value": "canvasLight",
"displayName": "Light"
},
{
"value": "grayscale",
"displayName": "Grayscale"
},
{
"value": "road",
"displayName": "Road"
}
]
},
"shape": {
"projectionEnum": [
{
"value": "albersUsa",
"displayName": "Albers USA"
},
{
"value": "equirectangular",
"displayName": "Equirectangular"
},
{
"value": "mercator",
"displayName": "Mercator"
},
{
"value": "orthographic",
"displayName": "Orthographic"
}
]
},
"xAxisReferenceLine": {
"style": [
{
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
],
"position": [
{
"value": "back",
"displayName": "Behind"
},
{
"value": "front",
"displayName": "In Front"
}
],
"dataLabelText": [
{
"value": "Value",
"displayName": "Value"
},
{
"value": "Name",
"displayName": "Name"
},
{
"value": "ValueAndName",
"displayName": "Name and Value"
}
],
"dataLabelHorizontalPosition": [
{
"value": "left",
"displayName": "Left"
},
{
"value": "right",
"displayName": "Right"
}
],
"dataLabelVerticalPosition": [
{
"value": "above",
"displayName": "Above"
},
{
"value": "under",
"displayName": "Under"
}
]
},
"ratioLine": {
"style": [
{
"value": "dashed",
"value": "dashed",
"displayName": "Dashed"
},
{
"value": "solid",
"displayName": "Solid"
},
{
"value": "dotted",
"displayName": "Dotted"
}
]
},
"columnHeaders": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"values": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"total": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"rowHeaders": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"subTotals": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
],
"rowSubtotalsPosition": [
{
"value": "Top",
"displayName": "Top"
},
{
"value": "Bottom",
"displayName": "Bottom"
}
]
},
"general": {
"orientation": [
{
"value": "vertical",
"displayName": "Vertical"
"displayName": "Vertical"
},
{
"value": "horizontal",
"displayName": "Horizontal"
}
]
},
"data": {
"relativeRange": [
{
"value": "Last",
"displayName": "Last"
},
{
"value": "Next",
"displayName": "Next"
},
{
"value": "This",
"displayName": "This"
}
],
"relativePeriod": [
{
"value": "None",
"displayName": "Select"
},
{
"value": "Days",
"displayName": "Days"
},
{
"value": "Weeks",
"displayName": "Weeks"
},
{
"value": "Calendar Weeks",
"displayName": "Weeks (Calendar)"
},
{
"value": "Months",
"displayName": "Months"
},
{
"value": "Calendar Months",
"displayName": "Months (Calendar)"
},
{
"value": "Years",
"displayName": "Years"
},
{
"value": "Calendar Years",
"displayName": "Years (Calendar)"
}
],
"mode": [
{
"value": "Between",
"displayName": "Between"
},
{
"value": "Before",
"displayName": "Before"
},
{
"value": "After",
"displayName": "After"
},
},
{
"value": "Basic",
"displayName": "List"
},
{
"value": "Dropdown",
"displayName": "Dropdown"
},
{
"value": "Relative",
"displayName": "Relative"
},
{
"value": "Single",
"displayName": "Single Value"
}
]
},
"header": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"items": {
"outline": [
{
"value": "None",
"displayName": "None"
},
{
"value": "BottomOnly",
"displayName": "Bottom only"
},
{
"value": "TopOnly",
"displayName": "Top only"
},
{
"value": "LeftOnly",
"displayName": "Left only"
},
{
"value": "RightOnly",
"displayName": "Right only"
},
{
"value": "TopBottom",
"displayName": "Top + bottom"
},
{
"value": "LeftRight",
"displayName": "Left + right"
},
{
"value": "Frame",
"displayName": "Frame"
}
]
},
"status": {
"direction": [
{
"value": "Positive",
"displayName": "High is good"
},
{
"value": "Negative",
"displayName": "Low is good"
}
]
}
}
}
}
As a report designer, here are some of the tasks you can do in the new Filters pane:
Add and remove fields to filter on.
Change the filter state.
Format and customize the Filters pane so that it feels part of your report.
Define whether the Filters pane is open or collapsed by default when a consumer opens the report.
Hide the entire Filters pane or specific filters that you don't want report consumers to see.
Control and even bookmark the visibility, open, and collapsed state of the Filters pane.
Lock filters that you don't want consumers to edit.
When reading a report, users can hover over any visual to see a read-only list of all the filters or slicers affecting
that visual.
Turn on new filters in existing reports
The new filter experience is on by default for new reports. You can enable the new experience for existing reports
in Power BI Desktop or the Power BI service.
Turn on new filters for an existing report in Power BI Desktop
1. In Power BI Desktop in an existing report, select File > Options and Settings > Options
2. In the nav pane, under Current file , select Repor t settings .
3. Under Filtering experience , select Enable the updated Filters pane, and show filters in the visual
header for this repor t .
Turn on new filters for an existing report in the service
If you've turned on the New look in the Power BI service , the new filter experience is turned
on automatically. Read more about the new look in the Power BI service.
If you haven't turned on the new look, you can still see the new filter experience by following these steps.
1. In the Power BI service, open the content list for a workspace.
2. Find the report you want to enable, select More options (...) , then select Settings for that report.
3. Under Filtering experience , select Enable the updated Filters pane, and show filters in the visual
header for this repor t .
2. To start building your Filters pane, drag fields of interest into the Filters pane either as visual, page, or
report level filters.
When you add a visual to a report canvas, Power BI automatically adds a filter to the Filters pane for each field in
the visual.
This setting only hides the Filters pane in Power BI Desktop. If you want to hide the Filters pane for your end users,
you instead select the eye icon next to Filters .
As you turn these settings on and off in the Filters pane, you see the changes reflected in the report. Hidden filters
don't show up in the pop-up filter list for a visual.
You can also configure the Filters pane state to flow with your report bookmarks. The pane's open, close, and
visibility state are all bookmarkable.
3. Expand Filter cards to set the Available and Applied color and border. If you make available and applied
cards different colors, it's obvious which filters are applied.
Theming for Filters pane
You can now modify the default settings of the Filters pane with the theme file. Here's a sample theme snippet to
get you started:
"outspacePane": [{
"transparency": 50,
"titleSize": 35,
"headerSize": 8,
"fontFamily": "Georgia",
"border": true,
}],
"filterCard": [
"$id": "Applied",
"transparency": 0,
"textSize": 30,
"fontFamily": "Arial",
"border": true,
},
"$id": "Available",
"transparency": 40,
"textSize": 10,
"border": true,
}]
Sort the Filters pane
Custom sort functionality is available in the Filters pane. When creating your report, you can drag and drop filters
to rearrange them in any order.
The default sort order is alphabetical for filters. To start custom sort mode, just drag any filter to a new position.
You can only sort filters within the level they apply to -- for example, a visual-level, page-level, or report-level filter.
Rename filters
When you're editing the Filters pane, you can double-click the title to edit it. Renaming is useful if you want to
update the filter card to make more sense for your end users. Keep in mind renaming the filter card does not
rename the display name of the field in the fields list. It just changes the display name used in the filter card.
You can also format the search box, just as you can format the other elements of the Filters pane.
While this Filters pane search feature will be on by default, you can also choose to turn it on or off by selecting
Enable search for Filters pane in the Report settings of the Options dialog.
Restrict changes to filter type
Under the Filtering experience section of the report settings, you have an option to control if users can change
the filter type.
Next steps
How to use report filters
Filters and highlighting in reports
Different kinds of filters in Power BI
More questions? Try the Power BI Community
Add a filter to a report in Power BI
8/13/2020 • 7 minutes to read • Edit Online
NOTE
Power BI is moving to a new look, and some images in the documentation may not match what you see in the service.
Learn more about the new look and try it for yourself.
This article explains how to add a page filter, visualization filter, report filter, or drillthrough filter to a report in
Power BI. The examples in this article are in the Power BI service. The steps are almost identical in Power BI
Desktop.
Did you know? Power BI has a new filter experience. Read more about the new filter experience in Power BI
reports.
Power BI offers a number of different kinds of filters, from the manual and automatic to the drill-through and
pass-through. Read about the different kinds of filters.
2. Open the Visualizations and Filters pane and the Fields pane (if they're not already open).
3. Select a visual to make it active. All the fields being used by the visual are in the Fields pane and also
listed in the Filters pane, under the Visual level filters heading.
4. At this point, we'll add a filter to a field already being used by the visualization.
Scroll down to the Visual level filters area and select the arrow to expand the field you'd like to filter. In
this example, we'll filter StoreNumberName .
Set either Basic , Advanced , or Top N filtering controls. In this example, we'll search in Basic filtering for
cha and select those five stores.
The visual changes to reflect the new filter. If you save your report with the filter, report readers will see the
visual filtered to begin with, and can interact with the filter in Reading view, selecting or clearing values.
When you use the filter on a field used in the visual where the field is aggregated (for example a sum,
average, or count), you're filtering on the aggregated value in each data point. So, asking to filter the visual
above where This Year Sales > 500000 means you would see only the 13 - Charleston Fashion
Direct data point in the result. Filters on model measures always apply to the aggregated value of the data
point.
Filter with a field that's not in the visual
Now let's add a new field to our visualization as a visual-level filter.
1. From the Fields pane, select the field you want to add as a new visual-level filter, and drag it into the
Visual level filters area . In this example, we'll drag District Manager into the Visual level filters
bucket, search for an , and select those three managers.
Notice District Manager is not added to the visualization itself. The visualization is still composed of
StoreNumberName as the Axis and This Year Sales as the Value.
And the visualization itself is now filtered to show only those managers' sales this year for the specified
stores.
If you save your report with this filter, report readers can interact with the District Manager filter in
Reading view, selecting or clearing values.
If you drag a numeric column to the filter pane to create a visual-level filter, the filter is applied to the
underlying rows of data. For example, adding a filter on the UnitCost field and setting it where UnitCost
> 20 would only show data for the Product rows where the Unit Cost was greater than 20, regardless of
the total Unit Cost for the data points shown in the visual.
3. Open the Visualizations and Filters pane and the Fields pane (if they're not already open).
4. From the Fields pane, select the field you want to add as a new page-level filter, and drag it into the Page
level filters area.
5. Select the values you want to filter and set either Basic or Advanced filtering controls.
All the visualizations on the page are redrawn to reflect the change.
If you save your report with the filter, report readers can interact with the filter in Reading view, selecting
or clearing values.
Notice that Power BI adds a back arrow to the report page. Selecting the back arrow returns users to the
originating report page -- the page they were on when they opted to drillthrough. In Editing view, hold
down the Ctrl key to select the back arrow
3. Select Drillthrough > Team Executive to drillthrough to the report page named Team Executive . The
page is filtered to show information about the data point from which you right-clicked; in this case Andrew
Ma. Any filters on the originating page are applied to the drillthrough report page.
Add a report-level filter to filter an entire report
1. Select Edit repor t to open the report in Editing view.
2. Open the Visualizations and Filters pane and the Fields pane, if they're not already open.
3. From the Fields pane, select the field you want to add as a new report-level filter, and drag it into the
Repor t level filters area.
4. Select the values you want to filter.
The visuals on the active page, and on all pages in the report, change to reflect the new filter. If you save
your report with the filter, report readers can interact with the filter in Reading view, selecting or clearing
values.
5. Select the back arrow to return to the previous report page.
Next steps
Take a tour of the report Filters pane
Filters and highlighting in reports
Different kinds of filters in Power BI
More questions? Try the Power BI Community
Use grouping and binning in Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
When Power BI Desktop creates visuals, it aggregates your data into chunks (or groups) based on values found in
the underlying data. Often that's fine, but there may be times when you want to refine how those chunks are
presented. For example, you might want to place three categories of products in one larger category (one group).
Or, you might want to see sales figures put into bin-sizes of 1,000,000 dollars, instead of chunks of 923,983-dollar
sizes.
In Power BI Desktop, you can group data points to help you more clearly view, analyze, and explore data and trends
in your visuals. You can also define the bin size to put values into equally sized groups that better enable you to
visualized data in ways that are meaningful. This action is often called binning.
Using grouping
To use grouping, select two or more elements on a visual by using Ctrl+click to select multiple elements. Then
right-click one of the multiple selection elements and choose Group from the context menu.
Once it's created, the group is added to the Legend bucket for the visual. The group also appears in the Fields list.
Once you have a group, you can easily edit the members of that group. Right-click the field from the Legend
bucket or from the Fields list, and then choose Edit Groups .
In the Groups dialog box, you can create new groups or modify existing groups. You can also rename any group.
Just double-click the group title in the Groups and members box, and then enter a new name.
You can do all sorts of things with groups. You can add items from the Ungrouped values list into a new group or
into one of the existing groups. To create a new group, select two or more items (using Ctrl+click) from the
Ungrouped values box, and then select the Group button below that box.
You can add an ungrouped value into an existing group: just select the one of the Ungrouped values , then select
the existing group to add the value to, and select the Group button. To remove an item from a group, select it from
the Groups and members box, and then select Ungroup . You can also move ungrouped categories into the
Other group or leave them ungrouped.
NOTE
You can create groups for any field in the Fields well, without having to select multiple items from an existing visual. Just
right-click the field, and select New Group from the menu that appears.
Using binning
You can set the bin size for numerical and time fields in Power BI Desktop. You can use binning to right-size the
data that Power BI Desktop displays.
To apply a bin size, right-click a Field and choose New Group .
From the Groups dialog box, set the Bin size to the size you want.
When you select OK , you'll notice that a new field appears in the Fields pane with (bins) appended. You can then
drag that field onto the canvas to use the bin size in a visual.
The Power BI Desktop report canvas provides gridlines that let you neatly align visuals on a report page and use
snap-to-grid functionality so the visuals in your report look clean, aligned, and evenly spaced.
In Power BI Desktop , you can also adjust the z-order (bring forward, send backward) of objects on a report and
align or evenly distribute selected visuals on the canvas.
Using gridlines
Gridlines are visible guides that help you align your visuals. When you're trying to determine whether two (or
more) visuals are aligned horizontally or vertically, use the gridlines to determine whether their borders align.
Use Ctrl+Click to select more than one visual at a time, which displays all selected visuals' borders and shows
whether the visuals are properly aligned.
Using gridlines inside visuals
In Power BI there are also gridlines inside visuals that provide visible guides for comparing data points and values.
Beginning with the September 2017 release of Power BI Desktop , you can now manage the gridlines within
visuals using the X-Axis or Y-Axis card (as appropriate based on visual type), found in the Format section of the
Visualizations pane. You can manage the following elements of gridlines within a visual:
Turn gridlines on or off
Change the color of gridlines
Adjust the stroke (the width) of gridlines
Select the line style of the gridlines in the visual, such as solid, dashed, or dotted
Modifying certain elements of gridlines can be especially useful in reports where dark backgrounds are used for
visuals. The following image shows the Gridlines section in the Y-Axis card.
Using snap-to-grid
When you enable Snap objects to grid , all visuals on the Power BI Desktop canvas that you move (or resize)
are automatically aligned to the nearest grid axis, making it much easier to ensure two or more visuals align to the
same horizontal or vertical location or size.
And, that's all there is to using gridlines and snap-to-grid to ensure the visuals in your reports are neatly
aligned.
Using z-order, align, and distribute
You can manage the front-to-back order of visuals in a report, often referred to as the z-order of elements. This
feature lets you overlap visuals in any way you want, then adjust the front-to-back order of each. You set the order
of your visuals using the Bring For ward and Send Backward buttons, found in the Arrange section of Format
ribbon. The Format ribbon appears as soon as you select one or more visuals on the page.
The Format ribbon lets you align your visuals in many different ways, which ensures your visuals appear on the
page in the alignment that looks and works best.
The Align button aligns a selected visual to the edge (or center) of the report canvas, as shown in the following
image.
When two or more visuals are selected, they are aligned together and use the existing aligned boundary of the
visuals for their alignment. For example, if you select two visuals and choose the Align Left option, the visuals then
align to the left-most boundary of all selected visuals.
You can also distribute your visuals evenly across the report canvas, either vertically or horizontally. Just use the
Distribute button from the Format ribbon.
With a few selections from these gridlines, alignment, and distribution tools, your reports will look just how you
want them to.
Apply page display settings in a Power BI report
8/13/2020 • 2 minutes to read • Edit Online
We understand it's critical to keep your report layout pixel perfect. Sometimes, it can be challenging, because you
and your colleagues may view those reports on screens with different aspect ratios and sizes.
The default display view is Fit to page and the default display size is 16:9 . If you want to lock in a different aspect
ratio, or want to fit your report in a different way, there are two tools to help you: Page view settings and Page
size settings.
https://www.youtube.com/embed/5tg-OXzxe2g
Where to find Page view settings in the Power BI service and Power BI
Desktop
Page view settings are available in both the Power BI service and Power BI Desktop, but the interface is a little
different. The following sections explain where you can find View settings in each Power BI tool.
In Power BI Desktop
In Report view, select the View tab to open Page view settings as well as phone layout settings.
Page view settings are available in both Reading view and Editing view. In Editing view, a report owner can assign
page view settings to individual report pages, and those settings are saved with the report. When colleagues open
that report in Reading view, they see the report pages display using the owner's settings. In Reading view,
colleagues can change some of the Page view settings, but the changes are not saved when they exit the report.
Page size settings are available only for report owners. In the Power BI service (app.powerbi.com), this means
being able to open the report in Editing view. Page size settings are in the Visualizations pane and control the
display ratio and actual size (in pixels) of the report canvas:
4:3 ratio
16:9 ratio (default)
Letter
Custom (height and width in pixels)
Next steps
Report view in Power BI Desktop
Change Page view and Page size settings in your own Power BI reports
Read more about reports in Power BI
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Add a column from examples in Power BI Desktop
8/13/2020 • 4 minutes to read • Edit Online
With add column from examples in Power Query Editor, you can add new columns to your data model simply by
providing one or more example values for the new columns. You can create the new column examples from a
selection, or provide input based on all existing columns in the table.
Using add column from example lets you quickly and easily create new columns, and is great for the following
situations:
You know the data you want in your new column, but you're not sure which transformation, or collection of
transformations, will get you there.
You already know which transformations you need, but you're not sure what to select in the UI to make them
happen.
You know all about the transformations you need using a Custom Column expression in M language, but one or
more of those expressions aren't available in the UI.
Adding a column from an example is easy and straightforward. The next sections show just how easy it is.
Once the sample data opens in Power Query Editor, select the Add Column tab on the ribbon, and then select
Column from Examples . Select the Column From Examples icon itself to create the column from all existing
columns, or select the drop-down arrow to choose between From All Columns or From Selection . For this
walkthrough, use From All Columns .
Add Column From Examples pane
When you select Add Column > From Examples , the Add Column From Examples pane opens at the top of
the table. The new Column 1 appears to the right of the existing columns (you may need to scroll to see them all).
When you enter your example values in the blank cells of Column 1 , Power BI creates rules and transformations to
match your examples, and uses them to fill the rest of the column.
Notice that Column From Examples also appears as an Applied Step in the Quer y Settings pane. As always,
Power Query Editor records your transformation steps and applies them to the query in order.
As you type your example in the new column, Power BI shows a preview of how the rest of the column will look,
based on the transformations it creates. For example, if you type Alabama in the first row, it corresponds to the
Alabama value in the first column of the table. As soon as you press Enter, Power BI fills in the rest of the new
column based on the first column value, and names the column Name & postal abbreviation[12] - Copy .
Now go to the Massachusetts[E] row of the new column and delete the [E] portion of the string. Power BI detects
the change and uses the example to create a transformation. Power BI describes the transformations in the Add
Column From Examples pane, and renames the column to Text Before Delimiter.
As you continue to provide examples, Power Query Editor adds to the transformations. When you're satisfied, select
OK to commit your changes.
You can rename the new column whatever you want by double-clicking the column heading, or right-clicking it and
selecting Rename .
Watch this video to see Add Column From Examples in action, using the sample data source:
Power BI Desktop: Add Column From Examples.
NOTE
All Text transformations take into account the potential need to trim, clean, or apply a case transformation to the column
value.
Date transformations
Day
Day of Week
Day of Week Name
Day of Year
Month
Month Name
Quarter of Year
Week of Month
Week of Year
Year
Age
Start of Year
End of Year
Start of Month
End of Month
Start of Quarter
Days in Month
End of Quarter
Start of Week
End of Week
Day of Month
Start of Day
End of Day
Time transformations
Hour
Minute
Second
To Local Time
NOTE
All Date and Time transformations take into account the potential need to convert the column value to Date or Time or
DateTime.
Number transformations
Absolute Value
Arccosine
Arcsine
Arctangent
Convert to Number
Cosine
Cube
Divide
Exponent
Factorial
Integer Divide
Is Even
Is Odd
Ln
Base-10 Logarithm
Modulo
Multiply
Round Down
Round Up
Sign
Sin
Square Root
Square
Subtract
Sum
Tangent
Bucketing/Ranges
Add a custom column in Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
In Power BI Desktop, you can easily add a new custom column of data to your model by using Query Editor. With
Query Editor, you create and rename your custom column to create PowerQuery M formula queries to define your
custom column. PowerQuery M formula queries have a comprehensive function reference content set.
When you create a custom column in Query Editor, Power BI Desktop adds it as an Applied Step in the Quer y
Settings of the query. It can be changed, moved, or modified at any time.
If there's a syntax error, you'll see a yellow warning icon, along with a link to where the error occurred in
your formula.
3. Select OK .
Power BI Desktop adds your custom column to the model, and adds the Added Custom step to your
query's Applied Steps list in Quer y Settings .
4. To modify your custom column, double-click the Added Custom step in the Applied Steps list.
The Add Custom Column window appears with the custom column formula you created.
Power BI Desktop supports the use of inline hierarchy labels , which is the first of two features intended to
enhance hierarchical drilling. The second feature, which is currently in development, is the ability to use nested
hierarchy labels (stay tuned for that - our updates happen frequently).
NOTE
As an alternative to right-clicking on a bar, you can select the Expand button on the top left of the visualization.
Once Expand to next level is selected, the visual expands the date hierarchy from Year to Quarter, as shown in
the following image.
Notice that the Year and Quarter labels are shown inline together - this labeling scheme continues as you Expand
All down to the bottom of the hierarchy.
This is how the built-in Date hierarchy, associated with fields that have a date/time data type, behaves. Let's head to
the next section, and see how the new inline hierarchy labels feature is different.
Using inline hierarchy labels
Now let's look at a different chart - using data that has informal hierarchies. In the following visual, we have a bar
chart with Quantity , using ProductName as the axis. In this data, ProductName and ShipCountry form an informal
hierarchy. From here, you can again select Expand to next level to drill down into the hierarchy.
Selecting Expand to next level shows the next level with the inline display of hierarchy labels. By default, inline
hierarchies are sorted by the measure value – in this case, Quantity . With inline hierarchy labels enabled, you can
choose to sort this data by the hierarchy too, by selecting the ellipsis in the upper right corner (the ...), then
selecting Sor t by ProductName ShipCountr y as shown in the following image.
Once ShipCountr y is selected, the data is sorted based on the informal hierarchy selection, as shown in the
following image.
NOTE
The inline hierarchy label feature doesn't yet allow for the built-in time hierarchy to be sorted by value; it's only sorted by
hierarchy order.
Troubleshooting
It's possible for your visuals to get stuck in an expanded inline hierarchy level state. In some cases, you might find
that some of your visuals are stuck in the mode where they were expanded, in which case drilling up doesn't work.
This can happen if you happened to take the following steps (the fix for this is below these steps):
Steps that might get your visuals stuck in an expanded state:
1. You enable the inline hierarchy label feature
2. You create some visuals with hierarchies
3. Then you Expand All and save your file
4. You then disable the inline hierarchy label feature, and restart Power BI Desktop
5. Then you re-open your file
If you happen to take those steps, and your visuals are stuck in expanded mode, you can do the following to
troubleshoot them:
1. Re-enable the inline hierarchy label feature, then restart Power BI Desktop
2. Re-open your file, and drill back up to top of your affected visual(s)
3. Save your file
4. Disable the inline hierarchy label feature, then restart Power BI Desktop
5. Re-open your file
Alternatively, you can just delete your visual and recreate it.
Slicers in Power BI
8/13/2020 • 10 minutes to read • Edit Online
This article walks through creating and formatting a basic slicer, using the free Retail Analysis Sample. It also
covers controlling which visuals are affected by a slicer, syncing with slicers on other pages, and filtering and
formatting slicers.
These other articles explain how to make specific types of slicers:
Numeric range slicers.
Relative date slicers.
Relative time slicers.
Responsive, resizable slicers.
Hierarchy slicers with multiple fields.
Create a slicer
This slicer filters data by district manager. If you want to follow along with this procedure, download the Retail
Analysis sample PBIX file.
1. Open Power BI Desktop, and from the menu bar, select File > Open .
2. Browse to the Retail Analysis sample PBIX.pbix file, then select Open .
3. On the left pane, select the Repor t icon to open the file in report view.
4. On the Over view page, with nothing selected on the report canvas, select the Slicer icon in the
Visualizations pane to create a new slicer.
5. With the new slicer selected, from the Fields pane, select District > DM to populate the slicer.
The new slicer is now populated with a list of district manager names and their selection boxes.
6. Resize and drag the elements on the canvas to make room for the slicer. Note that if you resize the slicer
too small, its items are cut off.
7. Select names on the slicer and notice the effects on the other visualizations on the page. Select names
again to deselect them, or hold down the Ctrl key to select more than one name. Selecting all names has
the same effect as selecting none.
8. Alternately, select Format (paint roller icon) in the Visualizations pane to format your slicer.
There are too many options to describe them all here; experiment and create a slicer that works for you. In
the following image, the first slicer has a horizontal orientation and colored backgrounds for the items.
The second slicer has a vertical orientation and colored text for a more standard look.
TIP
Slicer list items are sorted in ascending order, by default. To reverse the sort order to descending, select the ellipsis
(... ) in the top right corner of the slicer and choose Sor t descending .
Filter controls , each with a Filter and a None option, appear above all the visuals on the page.
Initially, the Filter option is preselected on all the controls.
3. Select the None option in the filter control above the Total Sales Variance by FiscalMonth and
District Manager chart to stop the DM slicer from filtering it.
4. Select the OpenDate slicer, and then select the None option above the Total Sales Variance by
FiscalMonth and District Manager chart to stop this slicer from filtering it.
Now, as you select names and date ranges in the slicers, the Total Sales Variance by FiscalMonth and
District Manager chart is unchanged.
For more information about editing interactions, see Change how visuals interact in a Power BI report.
The Sync slicers pane appears between the Filters and Visualizations panes.
2. On the District Monthly Sales page of the report, select the District Manager slicer.
Because you've already created a District Manager (DM ) slicer on the Over view page, the Sync slicers
pane appears as follows:
3. In the Sync column of the Sync slicers pane, select the Over view , District Monthly Sales , and New
Stores pages.
This selection causes the District Monthly Sales slicer to sync across these three pages.
4. In the Visible column of the Sync slicers pane, select the New Stores page.
This selection causes the District Monthly Sales slicer to be visible in these three pages. The Sync
slicers pane now appears as follows:
5. Observe the effects of syncing the slicer and making it visible on the other pages. On the District
Monthly Sales page, notice that the District Manager slicer now shows the same selections as on the
Over view page. On the New Stores page, the District Manager slicer is now visible and it selections
affect the selections that are visible in the Store Name slicer.
TIP
Although the slicer initially appears on the synced pages at the same size and position as on the original page, you
can move, resize, and format synced slicers on the various pages independently.
NOTE
If you sync a slicer to a page but don't make it visible on that page, slicer selections made on the other pages still
filter the data on the page.
Filtering slicers
You can apply visual-level filters to slicers to reduce the list of values that are displayed in the slicer. For example
you might filter out blank values from a list slicer, or filter out certain dates from a range slicer. When you do this
it only affects the values that are shown in the slicer, not the filter that the slicer applies to other visuals when you
make a selection. For example, let's say you apply a filter to a range slicer to only show certain dates. The
selection on the slicer will only show the first and last dates from that range, but you would still see other dates
in your other visuals. Once you change the selected range in the slicer you'll see the other visuals update.
Clearing the slicer would show all the dates again.
See Filter types for more information on visual-level filters.
Format slicers
Different formatting options are available, depending on the slicer type. By using Horizontal orientation,
Responsive layout, and Item coloring, you can produce buttons or tiles rather than standard list items, and
make slicer items resize to fit different screen sizes and layouts.
1. With the District Manager slicer selected on any page, in the Visualizations pane, select the Format
4. Under X Position , Y Position , Width , and Height , set the slicer position and size with numeric precision,
or move and resize the slicer directly on the canvas.
Experiment with different item sizes and arrangements, and note how the responsive formatting changes
accordingly. These options are available only when you select horizontal orientations.
For more information about horizontal orientations and responsive layouts, see Create a responsive slicer you
can resize in Power B I.
Selection controls options (list slicers only)
1. Under Selection controls , turn Show "Select all" option to On to add a Select All item to the slicer.
Show "Select all" option is Off by default. When enabled, this option, when toggled, selects or
deselects all items. If you select all items, selecting an item deselects it, allowing an is-not type of filter.
2. Turn Single select to Off to allow you to select multiple items without needing to hold down the Ctrl
key.
Single select is On by default. Selecting an item selects it, and holding down the Ctrl key selects multiple
items. Selecting item again deselects it.
Title options
Title is On by default. This selection shows the data field name at the top of the slicer. You can edit the title, too,
which is especially useful for hierarchy slicers. See Change the title in the article "Add multiple fields to a
hierarchy slicer" for details.
For this article, format the title text as follows:
Font color : red
Text size : 14 pt
Alignment : Center
Font family : Arial Black
Items options
Items options are only available for list slicers.
1. For this article, format the Items options as follows:
Font color : black
Background : light red
Text size : 10 pt
Font family : Arial
2. For Outline , choose Frame to draw a border around each item with the size and color you set under the
General options.
TIP
With General > Orientation > Horizontal selected, deselected items show the chosen text and background
colors. Selected items use the system default, usually a black background with white text.
With General > Orientation > Ver tical selected, items always show the selected colors, and check boxes are
always black when selected.
Next steps
For more about slicers, see the following articles:
Numeric range slicers
Relative date slicers
Relative time slicers
Responsive, resizable slicers
Hierarchy slicers with multiple fields
Use the numeric range slicer in Power BI
8/13/2020 • 3 minutes to read • Edit Online
Video
In this video, Will walks through creating a numeric range slicer.
NOTE
This video uses an older version of Power BI Desktop.
https://www.youtube.com/embed/zIZPA0UrJyA
For the numeric range, you can select from the following three options:
Between
Less than or equal to
Greater than or equal to
When you select Between from the menu, a slider appears. You can use the slider to select numeric values that fall
between the numbers. Sometimes the granularity of moving the slicer bar makes it difficult to land exactly on that
number. You can also use the slider and select either box to type in the values we want. This option is convenient
when you want to slice on specific numbers.
In the following image, the report page filters for LineTotal values that range between 2500.00 and 6000.00.
When you select Less than or equal to , the left (lower value) handle of the slider bar disappears, and you can
adjust only the upper-bound limit of the slider bar. In the following image, we set the slider bar maximum to
5928.19.
Lastly, if you select Greater than or equal to , then the right (higher value) slider bar handle disappears. You can
then adjust the lower value, as seen in the following image. Now, only items with a LineTotal greater than or equal
to 4902.99 display in the visuals on the report page.
Snap to whole numbers with the numeric range slicer
A numeric range slicer snaps to whole numbers if the data type of the underlying field is Whole Number. This
feature lets your slicer cleanly align to whole numbers. Decimal Number fields let you enter or select fractions of a
number. The formatting set in the text box matches the formatting set on the field, even though you can type in or
select more precise numbers.
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
With the relative date slicer or relative date filter , you can apply time-based filters to any date column in your
data model. For example, you can use the relative date slicer to show only sales data that's happened within the
last 30 days (or month, calendar months, and so on). When you refresh the data, the relative time period
automatically applies the appropriate relative date constraint.
To share your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that
the report is saved in Premium capacity.
Select the slicer on your canvas and then the carat in the upper-right corner of the slicer visual. If the visual has
date data, the menu displays the option for Relative .
For the relative date slicer, select Relative.
You can then select the settings.
For the first setting in the relative date slicer, you have the following choices:
Last
Next
This
The second (middle) setting in the relative date slicer lets you enter a number to define the relative date range.
The third setting lets you pick the date measurement. You have the following choices:
Days
Weeks
Weeks (Calendar)
Months
Months (Calendar)
Years
Years (Calendar)
If you select Months from that list, and enter 2 in the middle setting, here's what happens:
if today is July 20
the data included in visuals constrained by the slicer will show data for the previous two months
starting on May 21 and going through July 20 (today's date)
In comparison, if you selected Months (Calendar), the visuals constrained would show data from May 1 through
June 30 (the last two complete calendar months).
Once there, you can change the relative date range. It's similar to how you can customize the relative date slicer .
Select Relative date filtering from the Filter Type drop-down.
Once you've selected Relative date filtering , you see three sections to change, including a middle numeric box,
just like the slicer.
Limitations and considerations
The following limitations and considerations currently apply to the relative date range slicer and filter.
Data models in Power BI don't include time zone info. The models can store times, but there's no indication
of the time zone they're in.
The slicer and filter are always based on the time in UTC. If you set up a filter in a report and send it to a
colleague in a different time zone, you both see the same data. Unless you are in the UTC time zone, you
and your colleague must account for the time offset you experience.
You can convert data captured in a local time zone to UTC using the Quer y Editor .
Next steps
Use a relative date slicer and filter in Power BI
Slicers in Power BI
Use a relative time slicer and filter in Power BI
8/13/2020 • 3 minutes to read • Edit Online
You don't have to use the feature in conjunction with the automatic page refresh feature. However, many relative
time scenarios pair well with the automatic page refresh feature.
NOTE
When you apply a relative time filter or slicer at the page or report level, all visuals on that page or report are filtered to the
exact same time range, using a shared anchor time. Because visuals might have slightly different execution times, this shared
anchor time ensures that visuals are synchronized across your page or across your report. Read more about anchor time in
this article.
Create a filter
Drag a date or time field to the Filters pane, for this visual , this page , or all pages .
Set relative time
Next, you change the filter type to Relative Time .
You specify the time window using a whole number and a unit of time: Minutes or Hours .
If you need to save space on the canvas, you can also create the relative time filter as a filter card in the Filters
pane.
Next steps
Use a relative date slicer and filter in Power BI
Slicers in Power BI
Create a responsive slicer you can resize in Power BI
8/13/2020 • 2 minutes to read • Edit Online
Create a slicer
The first step to creating a dynamic slicer is to create a basic slicer.
2. Now you can play with it. Drag the corners to make it short, tall, wide, and narrow. If you make it small
enough, it becomes just a filter icon.
2. Drag all the visuals you want in the phone report to the grid. When you drag the responsive slicer, make it
the size you want -- in this case, just a filter icon.
Read more about creating reports optimized for the Power BI mobile apps.
Next steps
Slicers in the Power BI service
More questions? Try asking the Power BI Community
Add multiple fields to a hierarchy slicer
8/13/2020 • 2 minutes to read • Edit Online
When you add multiple fields to the slicer, by default it displays an arrow, or chevron next to the items that can be
expanded to show the items in the next level.
When you select one or more children for an item, you see a semi-selected circle for the top-level item.
To change the name, select the slicer, then select the Format pane. Under Slicer header , you see the current name
of the slicer in the Title text box.
You can use row-level security (RLS) with Power BI Desktop to restrict data access for given users. Filters restrict
data at the row level. You can define filters within roles.
You can now configure RLS for data models imported into Power BI with Power BI Desktop. You can also configure
RLS on datasets that are using DirectQuery, such as SQL Server. Previously, you were only able to implement RLS
within on-premises Analysis Services models outside Power BI. For Analysis Services live connections, you
configure Row-level security on the on-premises model. The security option doesn't show up for live connection
datasets.
IMPORTANT
If you defined roles and rules within the Power BI service, you need to recreate those roles within Power BI Desktop and
publish the report to the service. Learn more about options for RLS within the Power BI service.
NOTE
You can't define roles within Power BI Desktop for Analysis Services live connections. You need to do that within the
Analysis Services model.
NOTE
You can use username() within this expression. Be aware that username() has the format of DOMAIN\username within
Power BI Desktop. Within the Power BI service and Power BI Report Server, it's in the format of the user's User
Principal Name (UPN). Alternatively, you can use userprincipalname(), which always returns the user in the format of
their user principal name, username@contoso.com.
7. After you've created the DAX expression, select the checkmark above the expression box to validate the
expression.
NOTE
In this expression box, you use commas to separate DAX function arguments even if you're using a locale that
normally uses semicolon separators (e.g. French or German).
8. Select Save .
You can't assign users to a role within Power BI Desktop. You assign them in the Power BI service. You can enable
dynamic security within Power BI Desktop by making use of the username() or userprincipalname() DAX functions
and having the proper relationships configured.
The View as roles window appears, where you see the roles you've created.
2. Select a role you created, and then select OK to apply that role.
The report renders the data relevant for that role.
3. You can also select Other user and supply a given user.
It's best to supply the User Principal Name (UPN) as that's what the Power BI service and Power BI Report
Server use.
Within Power BI Desktop, Other user displays different results only if you're using dynamic security based
on your DAX expressions.
4. Select OK .
The report renders based on what that user can see.
Limitations
The current limitations for row-level security on cloud models are as follows:
If you previously defined roles and rules in the Power BI service, you must re-create them in Power BI
Desktop.
You can define RLS only on the datasets created with Power BI Desktop. If you want to enable RLS for
datasets created with Excel, you must convert your files into Power BI Desktop (PBIX) files first. Learn more.
Only Import and DirectQuery connections are supported. Live connections to Analysis Services are handled
in the on-premises model.
Known issues
There's a known issue where you'll get an error message if you try to publish a previously published report from
Power BI Desktop. The scenario is as follows:
1. Anna has a dataset that is published to the Power BI service and has configured RLS.
2. Anna updates the report in Power BI Desktop and republishes.
3. Anna receives an error.
Workaround: Republish the Power BI Desktop file from the Power BI service until this issue is resolved. You can do
that by selecting Get Data > Files .
FAQ
Question: What if I had previously created roles and rules for a dataset in the Power BI service? Will they still work
if I do nothing?
Answer : No, visuals will not render properly. You will have to re-create the roles and rules within Power BI Desktop
and then publish to the Power BI service.
Question: Can I create these roles for Analysis Services data sources?
Answer : You can if you imported the data into Power BI Desktop. If you are using a live connection, you will not be
able to configure RLS within the Power BI service. This is defined within the Analysis Services model on-premises.
Question: Can I use RLS to limit the columns or measures accessible by my users?
Answer : No, if a user has access to a particular row of data, they can see all the columns of data for that row.
Question: Does RLS let me hide detailed data but give access to data summarized in visuals?
Answer : No, you secure individual rows of data but users can always see either the details or the summarized data.
Question: My data source already has security roles defined (for example SQL Server roles or SAP BW roles).
What is the relationship between these and RLS?
Answer : The answer depends on whether you're importing data or using DirectQuery. If you're importing data into
your Power BI dataset, the security roles in your data source aren't used. In this case, you should define RLS to
enforce security rules for users who connect in Power BI. If you're using DirectQuery, the security roles in your data
source are used. When a user opens a report Power BI sends a query to the underlying data source, which applies
security rules to the data based on the user's credentials.
Next steps
For more information related to this article, check out the following resources:
Row-level security (RLS) with Power BI
Row-level security (RLS) guidance in Power BI Desktop
Questions? Try asking the Power BI Community
Suggestions? Contribute ideas to improve Power BI
Customize tooltips in Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
Tooltips are an elegant way of providing more contextual information and detail to data points on a visual. The
following image shows a tooltip applied to a chart in Power BI Desktop.
When a visualization is created, the default tooltip displays the data point's value and category. There are many
instances when customizing the tooltip information is useful. Customizing tooltips provides additional context and
information for users viewing the visual. Custom tooltips enable you to specify additional data points that display
as part of the tooltip.
You can add text boxes and shapes to reports by using the Power BI service and Power BI Desktop. In both cases,
you must have editing permissions for the report. If a report has been shared with you in the Power BI service, you
won't have editing permissions.
Watch Will use Power BI Desktop to add static images to a report, and then follow the steps below to try it out
yourself by using the Power BI service instead.
https://www.youtube.com/embed/_3q6VEBhGew
3. Type your text into the text box and, optionally, set the format font, color, and text alignment.
4. To position the text box, select the grey area at the top and drag. To resize the text box, select and drag any of
the outline handles.
5. With the text box still selected, add additional formatting in the Visualizations pane. In this example, we've
formatted the background and border. You can also create an exact size and position for a text box.
6. To close the text box, select any blank space on the report canvas.
2. From the dropdown, select a shape to add it to your report canvas. For this example, add an arrow to direct
attention to the bubble with the highest total sales variance.
In the Format shape pane, customize your shape. In this example we've created a red arrow with a dark red
border, rotated 90 degrees.
3. To position the shape, select the grey area at the top and drag. To resize the shape, select and drag any of the
outline handles. As with the text box, you can also create an exact size and position for a shape.
NOTE
Shapes cannot be pinned to a dashboard, except as one of the visuals when you pin a live page.
Next steps
You might also be interested in the following articles:
Add a hyperlink to a text box
Basic concepts for designers in the Power BI service
Tips to improve analysis with shapes, images, and icons in Power BI reports
More questions? Try the Power BI Community
Add a hyperlink to a text box in a report
8/13/2020 • 2 minutes to read • Edit Online
You can add a text box to a report in Power BI Desktop or the Power BI service. You can pin a text box from a report
to a dashboard, or add one directly to a dashboard. Wherever the text box is, you can always add a hyperlink to it.
This article shows how to add a hyperlink to a text box in a report.
Watch Will Thompson create a text box and add a hyperlink to it.
https://www.youtube.com/embed/_3q6VEBhGew#t=0m55s
For information on hyperlinks in Power BI tables and matrixes, see Add hyperlinks to a table. For information on
adding text boxes to your dashboard, see Add images, videos, and more to your dashboard.
b. Select the URL in the hyperlink field to open the page in a new browser window.
Next steps
Text boxes and shapes in Power BI reports
More questions? Try the Power BI Community.
Add hyperlinks (URLs) to a table or matrix
8/13/2020 • 4 minutes to read • Edit Online
This topic teaches how to add hyperlinks (URLs) to a table. You use Power BI Desktop to add hyperlinks (URLs) to a
dataset. You can add those hyperlinks to your report tables and matrixes in either Power BI Desktop or the Power BI
service. Then you can display the URL or a link icon, or format another column as link text.
You can also create hyperlinks in text boxes in reports in the Power BI service and Power BI Desktop. And in the
Power BI service, you can add hyperlinks to tiles on dashboards and to text boxes on dashboards.
NOTE
You can't create a column in DirectQuery mode. But if your data already contains URLs, you can turn them into
hyperlinks.
NOTE
You can't display icons in a matrix.
1. First, create a table with a hyperlink.
2. Select the table to make it active.
3. (Optional) Publish the report from Power BI Desktop to the Power BI service. When you open the report in
the Power BI service, the hyperlinks work there, too.
NOTE
You can't format another field as the hyperlink in a matrix.
1. If a field with a hyperlink doesn't already exist in your dataset, use Power BI Desktop to add it as a custom
column. Again, you can't create a column in DirectQuery mode. But if your data already contains URLs, you
can turn them into hyperlinks.
2. In Data view or Report view, select the column that contains the URL.
3. On the Modeling tab, select Data Categor y . Make sure the column is formatted as Uncategorized .
4. In Report view, create a table or matrix with the URL column and the column you're going to format as link
text.
5. With the table selected, select the Format icon to open the Formatting tab.
6. Expand Conditional formatting , making sure the name in the box is the column you want as link text.
Locate Web URL , and turn it to On .
NOTE
If you don't see a Web URL option, make sure the column that contains the hyperlinks is not formatted as Web
URL in the Data Categor y dropdown box.
7. In the Web URL dialog box, select the field that contains the URL in the Based on field box > OK .
Now the text in that column is formatted as the link.
8. (Optional) Publish the report from Power BI Desktop to the Power BI service. When you open the report in
the Power BI service, the hyperlinks work there, too.
4. Place your cursor in the column that contains the URLs that you'd like to turn into hyperlinks in Power BI
tables.
NOTE
URLS must start with certain prefixes. See Considerations and troubleshooting for the complete list.
5. In the Repor ting Proper ties group, select the Data Categor y dropdown and choose Web URL .
6. From the Power BI service or Power BI Desktop, connect to or import this workbook.
7. Create a table visualization that includes the URL field.
Next steps
Visualizations in Power BI reports
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Display images in a table, matrix, or slicer in a report
8/13/2020 • 2 minutes to read • Edit Online
A good way to enhance your reports is to add images to them. Static images on the page are good for some
purposes. But sometimes you want images that relate to the data in your report. This topic teaches you how to
display images in a table, matrix, slicer, or multi-row card.
Next steps
Page layout and formatting
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Use custom format strings in Power BI Desktop
8/13/2020 • 9 minutes to read • Edit Online
With custom format strings in Power BI Desktop , you can customize how fields appear in visuals, and make sure
your reports look just the way you want them to look.
SY M B O L RA N GE
SY M B O L RA N GE
F O RM AT ST RIN GS
The following table identifies the predefined named date and time formats :
F O RM AT N A M E DESC RIP T IO N
General Date Display a date and/or time, for example, 4/3/93 05:34 PM. If
there is no fractional part, display only a date, for example,
4/3/93. If there is no integer part, display time only, for
example, 05:34 PM. Date display is determined by your
system settings.
Long Date Display a date according to your system's long date format.
Shor t Date Display a date using your system's short date format.
Long Time Display a time using your system's long time format; includes
hours, minutes, seconds.
Shor t Time Display a time using the 24-hour format, for example, 17:45.
F O RM AT N A M E DESC RIP T IO N
Fixed Display at least one digit to the left and two digits to the right
of the decimal separator.
The following table identifies characters you can use to create user-defined date/time formats .
C H A RA C T ER DESC RIP T IO N
AM/PM Use the 12-hour clock and display an uppercase AM with any
hour before noon; display an uppercase PM with any hour
between noon and 11:59 P.M.
The following table identifies characters you can use to create user-defined number formats .
C H A RA C T ER DESC RIP T IO N
("ABC") Display the string inside the double quotation marks (" ").
Next steps
You might also be interested in the following articles:
VBA format strings
Measures in Power BI Desktop
Data types in Power BI Desktop
Conditional formatting in tables
Use conditional formatting in tables
8/13/2020 • 7 minutes to read • Edit Online
With conditional formatting for tables in Power BI Desktop, you can specify customized cell colors, including color
gradients, based on field values. You can also represent cell values with data bars or KPI icons, or as active web
links. You can apply conditional formatting to any text or data field, as long as you base the formatting on a field
that has numeric, color name or hex code, or web URL values.
To apply conditional formatting, select a Table or Matrix visualization in Power BI Desktop. In the Fields section of
the Visualizations pane, right-click or select the down-arrow next to the field in the Values well that you want to
format. Select Conditional formatting , and then select the type of formatting to apply.
NOTE
Conditional formatting overrides any custom background or font color you apply to the conditionally formatted cell.
To remove conditional formatting from a visualization, select Remove conditional formatting from the field's
drop-down menu, and then select the type of formatting to remove.
The following sections describe each conditional formatting option. You can combine more than one option in a
single table column.
The Background color or Font color dialog box opens, with the name of the field you're formatting in the title.
After selecting conditional formatting options, select OK .
The Background color and Font color options are the same, but affect the cell background color and font color,
respectively. You can apply the same or different conditional formatting to a field's font color and background
color. If you make a field's font and background the same color, the font blends into the background so the table
column shows only the colors.
An example table with color scale background formatting on the Affordability column looks like this:
The example table with color scale font formatting on the Affordability column looks like this:
Color by rules
To format cell background or font color by rules, in the Format by field of the Background color or Font color
dialog box, select Rules . Again, Based on field shows the field to base the formatting on, and Summarization
shows the aggregation type for the field.
Under Rules , enter one or more value ranges, and set a color for each one. Each value range has an If value
condition, an and value condition, and a color. Cell backgrounds or fonts in each value range are colored with the
given color. The following example has three rules:
An example table with rules-based background color formatting on the Affordability column looks like this:
An example table with color field value-based Background color formatting on the Color field looks like this:
If you also use Field value to format the column's Font color , the result is a solid color in the Color column:
To apply the colors, select Background color or Font color conditional formatting for the Affordability column,
and base the formatting on the Field value of the Affordability rank column.
The example table with Affordability background color based on calculated Affordability rank looks like this:
You can create many more variations, just by using your imagination and some calculations.
Add icons
To show icons based on cell values, select Conditional formatting for the field, and then select Icons from the
drop-down menu.
In the Icons dialog, under Format by , select either Rules or Field value .
To format by rules, select a Based on field , Summarization method, Icon layout , Icon alignment , icon Style ,
and one or more Rules . Under Rules , enter one or more rules with an If value condition and an and value
condition, and select an icon to apply to each rule.
To format by field values, select a Based on field , Summarization method, Icon layout , and Icon alignment .
The following example adds icons based on three rules:
Select OK . With icons applied to the Affordability column by rules, the example table looks like this:
Next steps
For more information about color formatting, see Tips and tricks for color formatting in Power BI
Expression-based titles in Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
You can create dynamic, customized titles for your Power BI visuals. By creating Data Analysis Expressions (DAX)
based on fields, variables, or other programmatic elements, your visuals' titles can automatically adjust as needed.
These changes are based on filters, selections, or other user interactions and configurations.
Another example is using a dynamic title that changes based on the user's language or culture. You can create
language-specific titles in a DAX measure by using the USERCULTURE() function. This function returns the culture
code for the user, based on their operating system or browser settings. You can use the following DAX switch
statement to select the correct translated value.
SWITCH (
USERCULTURE(),
"de-DE", “Umsatz nach Produkt”,
"fr-FR", “Ventes par produit”,
“Sales by product”
)
Or you can retrieve the string from a lookup table that contains all the translations. You place that table in your
model.
These are just a couple of examples you can use to create dynamic, expression-based titles for your visuals in Power
BI Desktop. What you can do with your titles are limited only by your imagination, and your model.
From that window, you can select the field that you created to use for your title.
Next steps
This article described how to create DAX expressions that turn the titles of your visuals into dynamic fields that can
change as users interact with your reports. You might find the following articles useful as well.
Conditional formatting in tables
Use cross-report drillthrough in Power BI Desktop
Use drillthrough in Power BI Desktop
Sort by column in Power BI Desktop
8/13/2020 • 3 minutes to read • Edit Online
In Power BI Desktop and the Power BI service, you can change how a visual looks by sorting it by different data
fields. By changing how you sort a visual, you can highlight the information you want to convey, and ensure the
visual reflects that trend (or emphasis).
Whether you're using numeric data (such as sales figures) or text data (such as state names), you can sort your
visualizations, and make them look like you want them to. Power BI provides much flexibility for sorting, and quick
menus for you to use. To sort any visual, select its More options (...) menu, select Sor t by , and then select the field
by which you want to sort.
Sorting example
Let's use an example that has more depth, and see how it works in Power BI Desktop.
The following visualization shows costs, quantities, and amounts by manufacturer name. Here's the visualization as
it looks before we do any further sorting:
The visual is currently sorted by the SalesQuantity column. We can determine the sort column by matching the
color of the ascending bars to the legend, but there's a better way: the More options menu, which you access by
selecting the ellipses (...).
Notice how the visual has changed. The values now are ordered from the highest DiscountAmount value,
Fabrikam Inc., down to the lowest, Northwind Traders.
But what if we want to sort ascending, instead of descending? The next section shows how easy that is to do.
When Sor t descending is selected, it means the visual is being sorted by the selected column in order of greatest
value to smallest value. Want to change that? No problem, just select Sor t ascending and the sort order of the
selected column changes from smallest to greatest value.
Here's our same visual, after changing the ordering of DiscountAmount . Notice that Northwind Traders is now
the first manufacturer listed, and Fabrikam Inc. is the last; the opposite sorting from before.
You can sort by any column included in the visual; we could have easily selected SalesQuantity as the column by
which we want to sort, to show the manufacturers with the most sales first, and still retain the other columns in the
visual as they apply to that manufacturer. Here's a look at the visual with those settings:
2. When we select the column by which we want to sort, in the Fields pane, the Sor t by Column button
becomes active.
3. Now, with the visual selected, we can select MonthOfYear , instead of the default MonthName , and the
visual sorts in the order we want: by the month of the year.
Next steps
You might also be interested in the following articles:
Use cross-report drillthrough in Power BI Desktop
Slicers in Power BI
Optimize Power BI reports for the mobile app
8/13/2020 • 5 minutes to read • Edit Online
Mobile users can view any Power BI report page in landscape orientation. However, report authors can create an
additional view that is optimized for mobile devices and displays in portrait orientation. This design option, which
is available in both Power BI Desktop and in the Power BI service, enables authors to select and rearrange just
those visuals that make sense for mobile users on the go.
.
Power BI provides a number of features to help you create mobile-optimized versions of your reports:
A mobile layout view where you can create your mobile-optimized report by dragging and dropping visuals
onto a phone emulator canvas.
Visuals and slicers that can be optimized for use on small, mobile screens.
These capabilities make it possible to design and build attractive, interactive mobile-optimized reports.
NOTE
You can drag and drop hidden visuals onto the canvas. They will be placed, but not shown unless their visibility status
changes in the current web report view.
Visuals can be layered one on top of the other to create interactive reports using bookmarks, or to build attractive
reports by layering visuals over images.
Once you've placed a visual on the canvas, you can resize it by dragging the handles that appear around the edge
of the visual when you select it. To maintain the visual's aspect ratio while resizing, press the Shift key while
dragging the resize handles.
The image below illustrates dragging and dropping visuals from the Visualizations pane onto the canvas, as well
as resizing and overlaying some of them.
The phone report grid scales across phones of different sizes, so your report looks good on small- and large-
screen phones.
On phones, the app automatically detects whether the report is mobile-optimized or not.
If a mobile-optimized report exists, the app automatically opens the report in mobile-optimized mode.
If a mobile-optimized report doesn’t exist, the report opens in the unoptimized, landscape view.
Holding a phone in landscape orientation opens the report in the unoptimized view with the original report layout,
regardless of whether the report is optimized or not.
If you optimize only some pages, when readers come to an unoptimized page they will be prompted to switch to
landscape view. Turning the phone or tablet sideways will enable them to see the page in landscape mode. Read
more about interacting with Power BI reports optimized for portrait mode.
Next steps
Create a phone view of a dashboard in Power BI.
View Power BI reports optimized for your phone.
Power BI documentation on creating reports and dashboards.
More questions? Try asking the Power BI Community.
Use Visual table and Data point table in Power BI
Desktop
8/13/2020 • 2 minutes to read • Edit Online
In Power BI Desktop you can drill into the details of a visualization, and see textual representations of the
underlying data or the individual data records for the selected visual. These features are sometimes referred to as
click-through, drill-through, or drill-through to details.
You can use Visual table to view the data in a visual as a table, or use Data point table to view a table of the data
used to calculate a single data point.
IMPORTANT
Visual table and Data point table support only the following visualization types:
Bar chart
Column chart
Donut chart
Filled map
Funnel
Map
Pie chart
Treemap
You can also see the data by right-clicking on a visualization, and then selecting Show Data from the menu that
appears; or by selecting More options (...) in the upper-right corner of a visualization, and then selecting Show as
a table .
NOTE
You must be hovering over a data point in the visual for the right-click menu to be available.
When you select Visual table or Data point table , the Power BI Desktop canvas displays both the visual and the
textual representation of the data. In the horizontal view , the visual is displayed on the top half of the canvas, and
the data is shown on the bottom half.
You can toggle between the horizontal view and a vertical view by selecting the icon in the upper-right corner of
the canvas.
To get back to the report, select < Back to Repor t in the upper-left corner of the canvas.
You can also right-click a data element and select Data point table from the menu that appears.
When you select Data point table for a data element, the Power BI Desktop canvas displays all the data associated
with the selected element.
To get back to the report, select < Back to Repor t in the upper-left corner of the canvas.
NOTE
Data point table has the following limitations:
You can't change the data in the Data point table view and save it back to the report.
You can't use Data point table when your visual uses a calculated measure in a (multidimensional) measure group.
You can't use Data point table when you are connected to a live multidimensional (MD) model.
Next steps
There are all sorts of report formatting and data management features in Power BI Desktop . Check out the
following resources for a few examples:
Use grouping and binning in Power BI Desktop
Use gridlines, snap-to-grid, z-order, alignment and distribution in Power BI Desktop reports
Tips and tricks for creating reports in Power BI
Desktop
8/13/2020 • 17 minutes to read • Edit Online
To get the most out of your data, sometimes you need a little extra help. We’ve put together some tips & tricks you
can use when creating reports in the Microsoft Power BI Desktop and in Microsoft Excel 2016, or Excel 2013 Pro-
Plus editions with the Power Pivot add-in enabled and Power Query installed and enabled.
This calculated column will return the value 100 regardless of where it is used. Your new column will show up in the
Field List. Add the Target Value calculated column to a line chart to show how any series relates to that specific
reference line.
Then use this resulting field in the map visualizations. This is very useful for building street addresses from
shipping address fields that are common in data sets. One note is that the concatenation only works with text fields.
If needed, convert the street number to a text data type before using it to build an address.
Ensure the data type is a number for the resulting aggregate column. Now you can use the group by technique
described in Simplest Histogram to achieve the histogram. This option handles more data points but still does not
help with brushing.
Defining a histogram that supports brushing - Brushing is when visuals are linked together so that when a user
selects a data point in one visual, other visuals on the report page highlight or filter data points related to the
selected data point. Since we're manipulating data at query time, we will need to create a relationship between
tables and ensure we know which detail item relates to the bucket in the histogram and vice-versa.
Start the process by using the "Reference" option on the query that has the field you want to build a histogram on.
Name the new query "Buckets". For this example, let's call the original query "Details". Next remove all columns
except the column you'll use as the bucket for the histogram. Now use the "Remove Duplicates" feature in query, it's
on the right click menu when you select the column, so the remaining values are the unique values in the column. If
you have decimal numbers, you can first use the tip for defining buckets to build a histogram to get a manageable
set of buckets. Now, check the data shown in the query preview. If you see blank values or null, you'll need to fix
those up before creating a relationship. See "Creating a relationship if my data has null or blank values". Using this
approach can be problematic due to the need to sort. To get the buckets to sort correctly, see "Sorting order: make
categories appear in the order I want".
NOTE
It's useful to think about the sort order before building any visuals.
Next step in the process is to define a relationship between the "Buckets" and "Details" queries on the buckets
column. In Power BI Desktop, click Manage Relationships in the ribbon. Create a relationship where Buckets is in
the left table and Details in on the right table and select the field you're using for the histogram.
Last step is to create the histogram. Drag the Bucket field from the "Buckets" table. Remove the default field from
the resulting column chart. Now from the "Details" table drag the histogram field into the same visual. In the field
well, change the default aggregate to Count. The result is the histogram. If you create another visual like a treemap
from the Details table, select a data point in treemap to see the histogram highlight and show the histogram for the
selected data point relative to the trend for the entire data set.
Histograms
In Power BI Desktop, you can use a calculated field to define a Histogram. Identify the table and column on which
you want to create a histogram. In the calculation area, type the following formula:
Frequency:=COUNTROWS(<Column Name>)
Save your changes and return to your report. Add the <Column Name> and the Frequency to a table then convert
to a bar chart. Ensure the <Column Name> is on the x-axis and the calculated field Frequency is on the y-axis.
When we want to track all incidents and work items that relate to a specific a CustomerName, we cannot simply
create a relationship between these two data sets. Some WorkItems may not be related to a CustomerName, so
that field would be blank or NULL. There might be multiple records in WorkItems and CustomerIncidents for any
given CustomerName.
Creating relationships in Power BI Desktop when the data has null or blank values
Often data sets contain columns with null or blank values. This can cause problems when trying to use
relationships. You have essentially two options for addressing the issues. You can remove the rows that have null or
blank values. You can do this using either the filter feature in the query tab or if you're merging queries, select the
"keep only matching rows" option. Alternatively, you can replace the null or blank values with values that work in
relationships, typically strings like "NULL" and "(Blank)". There's no right approach here - Filtering out rows at the
query stage removes rows and can affect summary statistics and calculations. The latter approach preserves that
data rows but can make unrelated rows appear related in the model leading to miscalculations. If you adopt the
latter solution ensure you use filters at the View/Chart where appropriate to ensure you're getting accurate results.
Most importantly, evaluate which rows are kept/removed and understand overall impact on the analysis..
Creating relationships in Power BI Desktop when the data has duplicate values
Often when loading detailed data sets from multiple sources, duplicate data values prevent you from creating
relationships. You can overcome this by creating a dimension table with the unique values from both data sets.
Let's look at an example:
If we load data sets from of active customer support requests and another data set of work items that have
schemas as follows:
When we want to track all incidents and work items that relate to a specific CustomerName we cannot simply
create a relationship between these two data sets. Some WorkItems may not be related to a CustomerName, so
that field would be blank or NULL. If you have any blank values or null in the CustomerNames table, you might still
not be able to create a relationship - see Creating relationships if my data has null or blank values. There might be
multiple WorkItems and CustomerIncidents for a single CustomerName.
To create a relationship in this case, we need to create a logical data set of all the CustomerNames across the two
data sets. In the Query tab, you can use the following sequence to create the logical data set:
1. Duplicate both queries, naming the first Temp and the second CustomerNames .
2. In each query, remove all columns except the CustomerName column
3. In each query, use Remove Duplicate .
4. In the CustomerNames query, select the Append option in the ribbon, select the query Temp .
5. In the CustomerNames query, select Remove Duplicates .
Now you have a dimension table that you can use to relate to CustomerIncidents and WorkItems that contains all
the values of each.
Next steps
Basic concepts for designers in the Power BI service
Reports in Power BI
More questions? Try the Power BI Community
Group visuals in Power BI Desktop reports
8/13/2020 • 3 minutes to read • Edit Online
With grouping in Power BI Desktop , you can group visuals together in your report, such as buttons, textboxes,
shapes images, and any visual you create, just like you group items in PowerPoint. Grouping visuals in a report lets
you treat the group like a single object, making moving, resizing, and working with layers in your report easier,
faster, and more intuitive.
Creating groups
To create a group of visuals in Power BI Desktop, select the first visual from the canvas, then holding the CTRL
button, click one or more additional visuals that you want in the group, then right-click the collection of visuals and
select Group from the menu that appears.
Groups are displayed in the Selection pane. You can have as many groups of visuals as your report needs, and you
can also nest groups of visuals. In the following image, the Australia group is nested under the Cards group. You
can expand a group by selecting the caret beside the group name, and collapse it by selecting the caret again.
Within the Selection pane, you can also drag and drop individual visuals to include them in a group, remove them
from a group, nest a group, or remove a group or individual visual from a nest. Simply drag the visual you want to
adjust, and place it where you want. Layering of visuals, if there is overlap, is determined by their order in the Layer
order list.
Renaming a group is easy: just double-click the group name in the Selection pane, and then type in the new name
of your group.
To ungroup just select the group, right-click and select ungroup from the menu that appears.
When you hide a group, all visuals within that group are hidden, indicated by their eye button being grayed out
(unavailable to toggle on or off, because the entire group is hidden). To hide only certain visuals within a group,
simply toggle the eye button beside that visual, and only that visual in the group is hidden.
Selecting visuals within a group
There are a few ways to navigate and select items within a group of visuals. The following list describes the
behavior:
Clicking on empty space within a group (such as white space between visuals) does not select anything
Clicking a visual within a group selects the entire group, a second click selects the individual visual
Selecting a group, and then another object on the report canvas, then selecting Group from the right-click
menu creates a nested group
Selecting two groups, then right-clicking displays an option to merge the selected groups, rather than nesting
them
Once you apply a background color, clicking on the space between visuals in the group selects the group (compare
this to clicking on the white space between visuals in a group, which does not select the group).
Next steps
For more information about grouping, take a look at the following video:
Grouping in Power BI Desktop - video
You might also be interested in the following articles:
Use cross-report drillthrough in Power BI Desktop
Using slicers Power BI Desktop
Create report templates for Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
With Power BI Desktop, you can create compelling reports that share insights across your entire organization.
With Power BI Desktop templates , you can streamline your work by creating a report template, based on an
existing template, which you or other users in your organization can use as a starting point for a new report's
layout, data model, and queries. Templates in Power BI Desktop help you jump-start and standardize report
creation.
Creating templates
Power BI report templates contain the following information from the report from which they were generated:
Report pages , visuals, and other visual elements
The data model definition , including the schema, relationships, measures, and other model definition artifacts
All quer y definitions , such as queries, Query Parameters, and other query elements
What is not included in templates is the report's data.
Report templates use the file extension .PBIT (compare to Power BI Desktop reports, which use the .PBIX extension).
To create a report template, select File > Expor t > Power BI template from the menu, which brings up the
following window, which prompts you to provide a description for the template. In this example, our description for
the template is Monthly sales report template.
Select OK and you're prompted for a file location to store the .PBIT template file.
And that's it, your Power BI report template is created in the file location you specified, with the .PBIT extension.
NOTE
Power BI report template files are generally much smaller than a Power BI Desktop report, because templates to not contain
any data - just the report definitions themselves.
Using templates
To use a Power BI report template, simply open it in Power BI Desktop and begin using it. You can open Power BI
report templates in two ways:
Double-click on any .PBIT file to automatically launch Power BI Desktop and load the template
Select File > Impor t > Power BI template from within Power BI Desktop
When you open a report template, a dialog appears values for any parameters that are defined in the report on
which the template is based. For example, if a report analyzes customers based on country or region and has a
Country parameter to specify the customer base, a prompt appears for you to select a Country value from the list
of values that were specified when defining the parameter.
Once any required parameters are provided, you're prompted for the location of the underlying data associated
with the report. The current report creator can then connect to data based on their credentials.
Once parameters and data have been specified, a report is created containing all the pages, visuals, data model
artifacts, and queries that were part of the report on which the template is based.
That's it. Creating and using report templates in Power BI Desktop is easy, enabling you to easily reproduce
compelling layouts and other report aspects, and share them with others.
Next steps
You might also be interested in learning about Quer y Parameters :
Using Query Parameters in Power BI Desktop?
In addition, there are all sorts of things you can do with Power BI Desktop. For more information on its capabilities,
check out the following resources:
What is Power BI Desktop?
Query Overview with Power BI Desktop
Data Types in Power BI Desktop
Shape and Combine Data with Power BI Desktop
Common Query Tasks in Power BI Desktop
Create a report in the Power BI service by importing
a dataset
8/13/2020 • 2 minutes to read • Edit Online
You've read Reports in Power BI and now you want to create your own. There are different ways to create a report.
In this article, we'll start by creating a basic report in the Power BI service from an Excel dataset. Once you
understand the basics of creating a report, check out the Next steps at the end for more advanced report topics.
Prerequisites
Sign up for the Power BI service. For creating reports using Power BI Desktop, see Desktop report view.
Download the Retail Analysis sample Excel dataset and save it to OneDrive for Business or locally.
6. Viewing a dataset actually opens the report editor. You'll see a blank canvas and the report editing tools.
TIP
If you're unfamiliar with the report editing canvas, or need a refresher, Take a tour of the report editor before continuing.>
2. Convert the visual to a Gauge by selecting the Gauge template from the Visualizations pane.
3. Drag Sales > This Year Sales > Goal to the Target value well. Looks like we're very close to our goal.
4. Now would be a good time to save your report.
3. Convert the visual to an Area chart by selecting the Area chart template from the Visualizations pane.
4. Select Time > Period to add it to the Axis well.
5. To sort the visualization by time period, select the ellipses and choose Sor t by Period .
6. Now let's add the slicer. Select an empty area on the canvas and choose the Slicer template. We now
have an empty slicer on our canvas.
7. From the Fields pane, select District > District . Move and resize the slicer.
Next steps
Learn how to pin visualizations to a dashboard
More questions? Try the Power BI Community
Save a report in Power BI service and Power BI
Desktop
8/13/2020 • 2 minutes to read • Edit Online
After you make changes to a report in Power BI, you can save it, save it with a new name, or just close it without
saving your changes. Say you open the report, create a visualization, and pin it to your dashboard. If you close it
now without saving your changes, the tile remains on the dashboard, but the visualization isn't saved in the report.
When you click that tile on the dashboard, the report opens, but the visualization doesn't exist in the report.
TIP
Pay attention to which workspace is active so you can find the saved report. The report is saved to the active workspace.
To save a report:
1. If you attempt to navigate away from a report, and the report has changes, Power BI will display a prompt.
2. Another way to save the report is to select FILE > Save or Save As . If you are in Reading view you will only
see the option to Save As.
3. If this is a new report (Save), or a new version of an existing report (Save as), give it a descriptive name. The
repor t will be added to the active workspace .
Next steps
Read more about reports in Power BI
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Interact with a report in Editing view in the Power BI
service
8/13/2020 • 2 minutes to read • Edit Online
You can create and edit reports in both the Power BI service and Power BI Desktop. In the Power BI service, you
create and edit reports in Editing view . And in Power BI Desktop, you create and edit reports in Report view. This
article covers Editing view in the Power BI service.
The Power BI service has two different modes for interacting with reports -- Reading view for report consumers
and Editing view for report owners and creators. A Power BI Pro license is required for sharing reports as well as
for editing reports created by others. If you don't have a Pro license, you can still create reports, but you can't
share them.
In report Editing view, you have lots of flexibility in both exploring and designing a report. All the Reading view
functionality is available -- plus lots more. Editing view is only available to the person who created the report or to
colleagues who co-own a report as a member or admin of a workspace.
Next steps
Back to Reading view and Editing view in the Power BI service
More questions? Try the Power BI Community
Analyze in Excel
8/13/2020 • 8 minutes to read • Edit Online
With Analyze in Excel , you can bring Power BI datasets into Excel, and then view and interact with them using
PivotTables, charts, slicers, and other Excel features. To use Analyze in Excel you must first download the feature
from Power BI, install it, and then select one or more datasets to use in Excel.
This article shows you how to install and use Analyze in Excel, describes its limitations, then provides some next
steps. Here's what you'll learn:
Install Analyze in Excel
Connect to Power BI data
Use Excel to analyze the data
Saving and sharing your workbook
Requirements
Let's jump in, and get the installation process started.
Alternatively, you can navigate in the Power BI service to a dataset you want to analyze, and select the More
options item for a dataset, report, or other Power BI item. From the menu that appears, select the Analyze in
Excel option, as shown in the following image.
Either way, Power BI detects whether you have Analyze in Excel installed, and if not, you're prompted to download.
When you select download, Power BI detects the version of Excel you have installed and downloads the appropriate
version of the Analyze in Excel installer. You see a download status in the bottom of your browser, or wherever your
browser displays download progress.
When the download completes, run the installer (.msi) to install Analyze in Excel. The name of the installation
process is different from Analyze in Excel; the name will be Microsoft Analysis Ser vices OLE DB Provider as
shown in the following image, or something similar.
Once it completes, you're ready to select a report in the Power BI service (or other Power BI data element, like a
dataset), and then analyze it in Excel.
NOTE
Remember that if you select Analyze in Excel from a Report menu, it is the report's underlying dataset that is brought
into Excel.
The Power BI service then creates an Excel file of the dataset that's designed (and structured) for use with
Analyze in Excel , and begins a download process in your browser.
The file name matches the dataset (or report, or other data source) from which it was derived. So if the
report was called Quarterly Report, then the downloaded file would be Quar terly Repor t.xlsx .
3. Launch the Excel file.
NOTE
The first time you open the file, you may have to Enable Editing and then Enable Content , depending on your
Protected view and Trusted document settings.
Use Excel-to-analyze-the-data
Once you've enabled editing and content, Excel presents you with an empty PivotTable and Fields list from the
Power BI dataset, ready to be analyzed.
The Excel file has an MSOLAP connection string that connects to your dataset in Power BI. When you analyze or
work with the data, Excel queries that dataset in Power BI and returns the results to Excel. If that dataset connects to
a live data source using DirectQuery, Power BI queries the data source and returns the result to Excel.
With that connection to the data in Power BI now established, you can create PivotTables, charts, and analyze that
dataset just as you would work with a local dataset in Excel.
Analyze in Excel is especially useful for datasets and reports that connect to the following data sources:
Analysis Services Tabular or Multidimensional databases
Power BI Desktop files or Excel workbooks with data models that have model measures created using Data
Analysis Expressions (DAX).
IMPORTANT
Using Analyze in Excel exposes all detail-level data to any users with permission to the dataset.
There are a handful of things to consider when you begin using Analyze in Excel, which might require an extra step
or two to reconcile. These possibilities are described in the following sections.
Sign in to Power BI
Although you’re signed in to Power BI in your browser, the first time you open a new Excel file in Excel you may be
asked to sign in to Power BI with your Power BI account. This authenticates the connection from Excel to Power BI.
Users with multiple Power BI accounts
Some users have multiple Power BI accounts. If that's you, you might be signed in to Power BI with one account, but
your other account has access to the dataset being used in Analyze in Excel. In that case, you might see a
Forbidden error, or a sign-in failure when attempting to access a dataset that's being used in an Analyze in Excel
workbook.
If that happens, you'll be provided an opportunity to sign in again, at which time you can sign in with the Power BI
account that has access to the dataset being accessed by Analyze in Excel. You can also select your name in the top
ribbon in Excel, which identifies which account is currently signed in. Sign out and sign back in with the other
account.
A pane appears, in which you can browse datasets to which you have access, see if datasets are certified or
promoted, and determine whether data protection labels have been applied to those datasets.
For more information about getting data into Excel in this way, see Create a PivotTable from Power BI datasets in
the Excel documentation.
You can also access featured tables in Excel, in the Data Types gallery. To learn more about featured tables, and
how to access them, see Access Power BI featured tables in Excel (preview).
Requirements
There are a few requirements for using Analyze in Excel :
Analyze in Excel is supported for Microsoft Excel 2010 SP1 and later.
Excel PivotTables do not support drag-and-drop aggregation of numeric fields. Your dataset in Power BI must
have pre-defined measures. Read about creating measures.
Some organizations may have Group Policy rules that prevent installing the required Analyze in Excel
updates to Excel. If you’re unable to install the updates, check with your administrator.
Analyze in Excel requires that the dataset be in Power BI Premium or that the user have a Power BI Pro
license. To learn more about the differences in functionality between license types, take a look at the Power BI
features comparison section of Power BI pricing.
Users can connect to datasets through Analyze in Excel if they have permission for the underlying dataset. A
user could have this permission in several ways, such as having the Member role in the workspace
containing the dataset, having a report or dashboard shared to them that uses the dataset, or having Build
permission for the dataset, in either a workspace or an app that contains the dataset. Read more about Build
permission for datasets.
Guest users cannot use Analyze in Excel for datasets sent from (originating from) another tenant.
Analyze in Excel is a Power BI service feature, and is not available in Power BI Report Server or Power BI
Embedded.
Analyze in Excel is only supported on computers running Microsoft Windows.
For users who need to uninstall the Analyze in Excel feature, you can do so using the Add or remove
programs system setting on your Windows computer.
Troubleshooting
There may be times when using Analyze in Excel that you get an unexpected result, or the feature doesn't work as
you expected. This page provides solutions for common issues when using Analyze in Excel.
Next steps
You might also be interested in the following articles:
Use cross-report drillthrough in Power BI Desktop
Using slicers Power BI Desktop
Troubleshooting Analyze in Excel
Access Power BI featured tables in Excel (preview).
Work with aggregates (sum, average, and so on) in
the Power BI service
8/13/2020 • 7 minutes to read • Edit Online
What is an aggregate?
Sometimes you want to mathematically combine values in your data. The mathematical operation could be sum,
average, maximum, count, and so on. When you combine values in your data, it's called aggregating. The result of
that mathematical operation is an aggregate.
When Power BI service and Power BI Desktop create visualizations, they may aggregate your data. Often the
aggregate is just what you need, but other times you may want to aggregate the values in a different way. For
example, a sum versus an average. There are several different ways to manage and change the aggregate Power BI
uses in a visualization.
First, let's take a look at data types because the type of data determines how, and whether, Power BI can aggregate
it.
Types of data
Most datasets have more than one type of data. At the most basic level, the data is either numeric or it isn't. Power
BI can aggregate numeric data using a sum, average, count, minimum, variance, and much more. The service can
even aggregate textual data, often called categorical data. If you try to aggregate a categorical field by placing it in
a numeric-only bucket like Values or Tooltips , Power BI will count the occurrences of each category or count the
distinct occurrences of each category. Special types of data, like dates, have a few of their own aggregate options:
earliest, latest, first, and last.
In the example below:
Units Sold and Manufacturing Price are columns that contain numeric data
Segment , Countr y , Product , Month , and Month Name contain categorical data
When creating a visualization in Power BI, the service will aggregate numeric fields (the default is sum) over some
categorical field. For example, "Units Sold by Product ", "Units Sold by Month " and "Manufacturing Price by
Segment ". Power BI refers to some numeric fields as measures . It's easy to identify measures in the Power BI
report editor -- The Fields list shows measures with the ∑ symbol next to them. See The report editor... take a tour
for more info.
Why don't aggregates work the way I want them to?
Working with aggregates in Power BI service can be confusing. Maybe you have a numeric field and Power BI
won't let you change the aggregation. Or maybe you have a field, like a year, and you don't want to aggregate it,
you just want to count the number of occurrences.
Typically, the underlying issue is the field definition in the dataset. Maybe the dataset owner defined the field as text
and that explains why Power BI can't sum or average it. Unfortunately, only the dataset owner can change the way
a field is categorized. So if you have owner permissions to the dataset, either in Desktop or the program used to
create the dataset (for example, Excel), you can fix this problem. Otherwise, you'll need to contact the dataset owner
for help.
There is a special section at the end of this article called Considerations and troubleshooting . It provides tips
and guidance. If you don't find your answer there, post your question on the Power BI Community forum. You'll get
a quick response directly from the Power BI team.
NOTE
The options available in the drop-down list will vary depending on 1) the field selected and 2) the way the dataset
owner categorized that field.
C O UN T RY A M O UN T
USA 100
UK 150
Canada 100
Germany 125
France
Japan 125
C O UN T RY A M O UN T
Australia 150
2. If you change the aggregation from the default Do not summarize to Count (Distinct) , Power BI counts
the number of different products. In this case, there are four.
3. And if you change the aggregation to Count , Power BI counts the total number. In this case, there are seven
entries for Product .
4. By dragging the same field (in this case Product ) into the Values well, and leaving the default aggregation
Do not summarize , Power BI breaks down the count by product.
NOTE
The exception to this rule is scatter charts, which require aggregated values for the X and Y axes.
Q: Why can't I aggregate text fields for SQL Server Analysis Services (SSAS) data sources?
A: Live connections to SSAS multidimensional models don't allow any client-side aggregations, including first, last,
avg, min, max, and sum.
Q: I have a scatter chart and I want my field to not aggregate. How?
A: Add the field to the Details bucket and not to the X or Y axes buckets.
Q: When I add a numeric field to a visualization, most of them default to sum but some default to average or count
or some other aggregation. Why isn't the default aggregation always the same?
A: Dataset owners can set the default summarization for each field. If you're a dataset owner, change the default
summarization in the Modeling tab of Power BI Desktop.
Q: I'm a dataset owner and I want to ensure that a field is never aggregated.
A: In Power BI Desktop, in the Modeling tab, set Data type to Text .
Q: I don't see Do not summarize as an option in my drop-down list.
A: Try removing the field and adding it back in.
More questions? Try the Power BI Community
Create a QR code for a report in Power BI to use in
the mobile apps
8/13/2020 • 2 minutes to read • Edit Online
QR codes in Power BI can connect anything in the real world directly to related BI information no navigation or
search needed.
You can create a QR code in the Power BI service for any report, even for a report you can't edit. Then you place the
QR code in a key location. For example, you could paste it in an email, or print it out and paste it in a specific
location.
Colleagues you've shared the report with can scan the QR code for access to the report, right from their mobile
device. They can use either the QR code scanner located in the Power BI app, or any other QR scanner installed on
their device. They can also scan a report QR code with the Power BI for Mixed Reality app.
4. From here you can scan the QR code or download and save it so you can:
Add it to an email or other document, or
Print it and place it in a specific location.
Next steps
Connect to Power BI data from the real world with the mobile apps
Scan a Power BI QR code from your mobile device
Create a QR code for a tile
Questions? Try asking the Power BI Community
Let users personalize visuals in a report
8/13/2020 • 5 minutes to read • Edit Online
Next, add fields to the perspective by opening the Tables folder in Tabular Editor, the right-click on the fields you
want to show in the perspective.
Repeat that process for each field you want to add to the perspective. You can’t add duplicate fields in a perspective,
so any fields you already added to a perspective will have the option to add it disabled.
After you added all the fields you want, be sure to save your settings, both in Tabular Editor and then also in Power
BI Desktop.
Once you save the new perspective to the model, and save the Power BI Desktop report, navigate to the Format
pane for the page, where you see a new section for Personalize visual .
The selection for Report-reader perspective is set to Default fields initially. Once you select the drop down arrow,
you see the other Perspectives you’ve created.
Once you set the Perspective for the report page, the Personalize visuals experience for that page is filtered to the
selected Perspective. Selecting Apply to all pages lets you apply your Perspective setting to all existing pages in
your report.
You may have to restart Power BI Desktop to see it in the settings for the current file.
Next steps
Personalize visuals in your reports.
Give the new visual personalization experience a try. Give us your feedback for this feature, and how we can
continue to improve it, on the Power BI Ideas site.
More questions? Try the Power BI Community
Download a report from the Power BI service to
Power BI Desktop (Preview)
8/13/2020 • 2 minutes to read • Edit Online
In Power BI Desktop, you can publish a report (a .pbix file) from your local computer to the Power BI service. Power
BI reports can go the other direction as well: You can download a report from the Power BI service to Power BI
Desktop. The extension for a Power BI report, in either case, is .pbix.
There are a few limitations to keep in mind, which are discussed in the Considerations and troubleshooting section
of this article.
Next steps
View the Guy in a Cube one-minute video about this feature:
https://www.youtube.com/embed/ymWqU5jiUl0
Here are some additional articles that can help you learn to use the Power BI service:
Reports in Power BI
Basic concepts for designers in the Power BI service
After you've installed Power BI Desktop, see the following article to help you get up and running quickly:
Getting Started with Power BI Desktop
More questions? Try the Power BI Community.
Publish datasets and reports from Power BI Desktop
8/13/2020 • 2 minutes to read • Edit Online
When you publish a Power BI Desktop file to the Power BI service, you publish the data in the model to your
Power BI workspace. The same is true for any reports you created in Repor t view. You’ll see a new dataset with
the same name, and any reports in your Workspace navigator.
Publishing from Power BI Desktop has the same effect as using Get Data in Power BI to connect to and upload a
Power BI Desktop file.
NOTE
Any changes you make to the report in Power BI won't be saved back to the original Power BI Desktop file. This includes
when you add, delete, or change visualizations in reports.
When publishing is complete, you receive a link to your report. Select the link to open the report in your Power BI
site.
Republish or replace a dataset published from Power BI Desktop
The dataset, and any reports you created in Power BI Desktop, upload to your Power BI site when you publish a
Power BI Desktop file. When you republish your Power BI Desktop file, the dataset in your Power BI site is replaced
with the updated dataset from the Power BI Desktop file.
This process is straightforward, but there are a few things you should know:
Two or more datasets in Power BI with the same name as the Power BI Desktop file could cause publishing
to fail. Make sure you have only one dataset in Power BI with the same name. You can also rename the file
and publish, creating a new dataset with same name as the file.
If you rename or delete a column or measure, any visualizations you already have in Power BI with that
field could be broken.
Power BI ignores some format changes of existing columns. For example, if you change a column’s format
from 0.25% to 25%.
Say you have a refresh schedule that is configured for your existing dataset in Power BI. When you add new
data sources to your file and then republish, you’ll have to sign into them before the next scheduled
refresh.
When you republish a dataset published from Power BI Desktop and have a refresh schedule defined, a
dataset refresh is started as soon as you republish.
When you make a change to a dataset and then republish it, a message shows you how many workspaces,
reports, and dashboards are potentially impacted by the change, and asks you to confirm that you want to
replace the currently published dataset with the one you modified. The message also provides a link to the
full dataset impact analysis in the Power BI service, where you can see more information and take action to
mitigate the risks of your change.
Learn more about Dataset impact analysis.
NOTE
Some data connection in Power BI reports may include links to data, rather than including the data in the dataset that's
imported into the Power BI service. For example, DirectQuery connections link to data as updates or interactions occur,
rather than importing the data itself. If linked data sources in your report are on premises, you may need a gateway to
access them from Power BI. For more information, see what is an on-premises data gateway?.
Add visuals to a Power BI report (part 1)
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
This article gives a quick introduction to creating a visualization in a report. It applies to both the Power BI service
and Power BI Desktop. For more-advanced content, see Part 2 of this series.
Prerequisites
This tutorial uses the Sales & marketing PBIX file.
1. From the upper left section of the Power BI Desktop menu bar, select File > Open
2. Find your copy of the Sales and marketing sample PBIX file
3. Open the Sales and marketing sample PBIX file in report view .
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity. See sharing reports
Or, start with a geography field, such as Geo > City . Power BI and Bing Maps create a map visualization.
2. Change the visualization to a column chart by selecting the Stacked column char t icon.
3. To change the way the visual is sorted, select More actions (...). Use the sort options to change the
direction of the sort (ascending or descending) and change the column being used to sort (Sor t by ).
Next steps
Continue on to:
Part 2: Add visualizations to a Power BI report
Interact with the visualizations in the report.
Add visuals to a Power BI report (part 2)
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
In Part 1, you created a basic visualization by selecting checkboxes next to field names. In Part 2, you'll learn how to
use drag-and-drop and make full use of the Fields and Visualizations panes to create and modify visualizations.
Prerequisites
This tutorial uses the Retail analysis sample PBIX file.
1. From the upper left section of the Power BI Desktop menu bar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
3. Change the visualization to an area chart. There are many visualization types to choose from - see
descriptions of each, tips for best practices, and tutorials for help with deciding which type to use. From the
2. Add a legend. To see the data by store name, drag Store > Chain into the Legend area.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity. See sharing reports.
Next steps
More about Visualizations in Power BI reports.
More questions? Try the Power BI Community
Visualizations in Power BI reports
8/13/2020 • 3 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power
BI Desktop Requires Pro or Premium license
Visualizations (known as visuals for short) display insights that have been discovered in the data. A Power BI
report might have a single page with one visual or it might have pages full of visuals. In the Power BI service,
visuals can be pinned from reports to dashboards.
It's important to make the distinction between report designers and report consumers. If you are the person
building or modifying the report, then you are a designer. Designers have edit permissions to the report and its
underlying dataset. In Power BI Desktop, this means you can open the dataset in Data view and create visuals in
Report view. In Power BI service, this means you can open the data set or report in the report editor in Editing
view. If a report or dashboard has been shared with you , you are a report consumer. You'll be able to view and
interact with the report and its visuals but you won't be able to make as many changes as a designer can.
There are many different visual types available directly from the Power BI Visualizations pane.
More Power BI visuals are available from the Microsoft AppSource community site. In AppSource you can browse
and download Power BI visuals provided by Microsoft and the community.
If you're new to Power BI, or need a refresher, use the links below to learn the basics of Power BI visualizations.
Alternately, use our Table of Contents (along the left side of this article) to find even more helpful information.
Once a visual has been pinned, it moves up to live with the other default visuals. This visual is now tied to your
signed in account, so any new reports you build will automatically have this visual included, assuming you are
signed in. You no longer need to add a specific visual you regularly use, to every single report.
Next steps
Visualization types in Power BI
Power BI visuals
Change the type of visualization in a Power BI report
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
.
4. (Optional) Pin your visualization to your dashboard as a tile.
Next steps
More about Visualizations in Power BI reports
Power BI - Basic Concepts
More questions? Try the Power BI Community
Customize visualization titles, backgrounds, and
legends
8/13/2020 • 3 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
In this tutorial, you'll learn a few different ways to customize your visualizations. There are so many options for
customizing your visualizations. The best way to learn about them all is by exploring the Format pane (select the
paint roller icon). To get you started, this article shows you how to customize a visualization title, legend,
background, and add a theme.
You can't customize all visualizations. See the complete list of visualizations for details.
Prerequisites
The Power BI service or Power BI Desktop
Retail Analysis Sample report
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity. See sharing reports.
NOTE
When you pin a visualization to a dashboard, it becomes a dashboard tile. You can also customize the tiles themselves with
new titles and subtitles, hyperlinks, and resized.
Save the changes you've made and move to the next section.
If you ever need to revert all of the changes, select Rever t to default , at the bottom of the Title customization
pane.
Save the changes you've made and move to the next section.
If you ever need to revert all of the changes, select Rever t to default , at the bottom of the Background
customization pane.
Next steps
Customize X-Axis and Y-Axis properties
Getting started with color formatting and axis properties
More questions? Try the Power BI Community
Show items with no data in Power BI
8/13/2020 • 7 minutes to read • Edit Online
Power BI lets you visualize all sorts of data from various sources. When creating a visual, Power BI only shows
relevant data when creating a visual to properly manage how data is presented and displayed. Power BI determines
which data is relevant based on the configuration of the visual, and the underlying data model. This article
describes how Power BI behaves when determining relevant data, with examples that illustrate how determinations
are made.
Blue Large
P RO DUC T [ C O LO R] P RO DUC T [ SIZ E]
Blue Medium
Blue Small
Red Large
In this example, Power BI displays the combinations of [Color-Size] that exist in the table [Product].
Now let's look at a different combination:
2. Groups from different but directly related tables and a measure: ProductStyle[Finish] - Product[Color] -
Sum(Sales[Quantity])
Gloss Blue 10
Matte Blue 15
In this example, Power BI displays only combinations that exist. For example, it will not display ("None" + "Blue") or
("Matte" + "Red") because those combinations do not exist in the model. The condition that determines which
combinations exist is the value for Sum(Sales[Quantity]) not being blank.
Let's look at a different case:
3. Groups from different but related tables and no measure: ProductStyle[Finish] - Product[Color]
Gloss Blue
Gloss Red
Matte Blue
Since there is no explicit measure and the two tables are directly related, Power BI attempts to inject a measure to
constrain the combinations that result. In this case, Power BI injects a CALCULATE(COUNTROWS('Product'))
measure, which should not be blank, since Product is the table that is common to both tables.
As such, Power BI displays the combinations that do have entries in the Product table, which excludes the
combinations of ("None" + "Blue") and ("Matte" + "Red").
4. Groups from different and unrelated tables
The sample model doesn't have this combination, but if there were groups from different and unrelated tables,
Power BI would not be able to relate two columns. The result would be a crossjoin of all the values of each column.
In that situation, Power BI issues an error of type unconstrained join, because such cross joins are expensive to
compute in the database, and do not provide very much information to a user.
Showing items with no data
The previous section described how Power BI determines which data is relevant to display. But there may be times
when you want to show items with no data.
The Show items with no data feature enables you to do exactly that - include data rows and columns that don't
contain measure data (blank measure values).
To enable the Show items with no data feature select a visual, then in the Fields well, right-click the field and
select Show items with no data from the menu that appears, as shown in the following image:
The Show items with no data feature does not have effect in the following circumstances:
There's no measure added to the visual, and the grouping columns come from the same table
Groups are unrelated; Power BI doesn't run queries for visuals that have unrelated groups
The measure is unrelated to any of the groups; this is because the measure will never be blank for only some
group combinations
There's a user-defined measure filter that excludes blank measures - for example: SalesAmount > 0
How Show items with no data works
The most interesting use cases of Show items with no data are when measures are present. Let's look at the
situation when the groups are from the same table, or can be related through a path in the model. For example,
ProductStyle is directly related to Product and indirectly related to Sales, ProductStyle and ProductCategory can be
related through the Product table, and so on.
Let's look at a couple interesting cases, and compare when Show items with no data is off and then on.
1. Grouping columns from the same table: Product[Color] - Product[Size] - Sum(Sales[Quantity])
How it appears with Show items with no data feature off:
Blue Medium 15
Blue Small 10
How it appears with Show items with no data feature on:
Blue Large
Blue Medium 15
Blue Small 10
Red Large
Notice how two new combinations showed up with the feature turned on: Blue - Large and Red - Large. Both of
those entries have no corresponding Quantity in the Sales table. However, they show up in the Product table.
2. Grouping columns from related tables: ProductStyle[Finish] - Product[Color] - Sum(Sales[Quantity])
How it appears with Show items with no data feature off:
Gloss Blue 10
Matte Blue 15
Gloss Blue 10
Gloss Red
Matte Blue 15
None
Notice how (Gloss-Red) and (None, blank) appeared as combinations. Here is the reason they appeared:
Power BI first considered ProductStyle[Finish] and selected all the values to display - this resulted in Gloss,
Matte, None.
Using each of these values, Power BI selected all the corresponding Product[Color] entries
Since None does not correspond to any Product[Color], a blank appears for that value
It's important to note that the mechanism of selecting values for the columns is order-dependent, and can be
thought of as a Left outer join operation between tables. If the order of the columns is changed, the results will
change as well.
Let's look at an example of changing the order, and how it impacts results. This is the same as item 2 in this section,
with the ordering changed.
Product[Color] - ProductStyle[Finish] - Sum(Sales[Quantity])
How it appears with Show items with no data feature on:
P RO DUC T [ C O LO R] P RO DUC T ST Y L E[ FIN ISH ] [ SUM Q UA N T IT Y ]
Blue Gloss 10
Blue Matte 15
Red Gloss
In this case, notice how ProductStyle[Finish]=None does not appear in the table. This is because, in this case, Power
BI first selected all the Color values in the Product table. Then for each color, Power BI selected the corresponding
Finish values that contained data. Since None does not show up in any combination of Color, it is not selected.
For example, on a Matrix visual with four fields in the Rows bucket, if one field has Show items with no data
enabled, all items in the matrix will have it enabled. In the following image, the Show items with no data is
enabled on the first field in the Rows bucket, the SupplierID field. The other fields in the Rows bucket have it
automatically enabled as well.
In contrast, the Continent field shown in the Columns bucket does not have Show items with no data
automatically enabled.
This visual behavior is often seen when a visual is converted to a different type, for example, converting a Matrix
visual to a table visual. In such conversions, the Show items with no data is automatically enabled for any field
moved to a bucket where a field in that bucket has the feature enabled. In the previous example, if SupplierID has
the Show items with no data feature enabled and the visual is converted to a table, the Continent field from the
Columns bucket is moved (along with the fields in the Rows bucket) into the only bucket used in a table visual -
the Values bucket. As such, all fields in the Values bucket will have Show items with no data enabled.
Exporting data
When using the Expor t summarized data feature, the behavior of the Show items with no data feature is the
same as if the export were converted to a Table visual. As such, when exporting a visual such as a Chart Matrix
visual, the exported data may appear differently than the visual displayed. This is because the conversion to a table
visual, as part of the export process, would enable Show items with no data for all fields being exported.
Data :
1 Phone
P RO DUC TC AT EGO RY [ C AT EGO RY ID] P RO DUC TC AT EGO RY [ C AT EGO RY N A M E]
2 Camera
3 TV
1 Gloss Yes
2 Matte No
3 None No
1 1 1/1/2012 0:00 10
2 2 1/1/2013 0:00 15
Next steps
This article described how you can enable the Show items with no data feature in Power BI. You might also be
interested in the following articles:
Default member in multidimensional models in Power BI
Apply data-point limits and strategies by visual type
8/13/2020 • 5 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
When rendering a visual in Power BI, the visualization must be quick and accurate. That requires underlying
algorithms configured for each visual type. Visuals in Power BI must be flexible enough to handle different sizes of
datasets. Some datasets have only a handful of data points, while other datasets have petabytes of data points. This
article explains the strategies used by Power BI to render visualizations.
Strategies
For each strategy, there are defaults based on the shape and type of data being visualized. But the defaults can be
overridden, in the Power BI Formatting pane, to provide the right user experience.
Data Windowing (Segmentation): Allow users to scroll through the data in a visual by progressively loading
fragments of the overall dataset.
TopN : Show only the first N items
Simple Sample : Show the first, last, and N evenly distributed items in between.
BottomN : Show only the last N items. Useful for monitoring frequently updated data.
High-density sampling - An improved sampling algorithm that better respects outliers and/or the shape of a
curve.
Binned line sampling - Sample data points based on outliers in bins across an axis
Overlapping points sampling - Sample data points based on overlapping values to preserve outliers
Statistics
Certain models can provide statistics about the number of values for certain columns. When such information is
present, we leverage that information to provide better balancing across multiple hierarchies, if a visual does not
explicitly override the count of values for a strategy.
For more information, see What's new in Analysis Services
Dynamic limits
In addition to the strategies above, visuals with two hierarchies of grouping columns (axis and legend, or category
and series) use one additional strategy called dynamic limits. Dynamic limits are designed to better balance data
points.
Dynamic limits provide a better selection of points for sparse data than static limits would. For example, a visual
could be configured to select 100 categories and 10 series with a total of 1000 points. But the actual data has 50
categories and 20 series. At query runtime, dynamic limits selects all 20 series to fill up the 1000 points requested.
Dynamic limits are automatically applied when the server is capable as detailed below:
In Power BI Desktop with On-premises SSAS version 2016 or higher leveraging the SuperDax capabilities of
the server
In Desktop and Power BI service when using an imported model, Direct Query, live connect to the service, or
live connect to AS PaaS.
In Power BI Service, when connecting through an on-premises gateway to on-premises SSAS, we cannot use
dynamic limits. The on-premises gateway does not fully support the dynamic limits strategy that returns a
different structure of result sets from the on-premises SSAS.
Next steps
Visualization types
Display a visualization's underlying data
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
Show data
A Power BI visualization is constructed using data from your datasets. If you're interested in seeing behind-the-
scenes, Power BI lets you display the data that is being used to create the visual. When you select Show Data ,
Power BI displays the data below (or next to) the visualization.
You can also export the data that is being used to create the visualization as an .xlsx or .csv file and view it in Excel.
For more information, see Export data from Power BI visualizations.
NOTE
Show Data and Export Data are both available in Power BI service and Power BI Desktop. However, Power BI Desktop
provides one additional layer of detail; Show Records displays the actual rows from the dataset.
5. To export the data to a .csv file, select the ellipses and choose Expor t data .
For more information on exporting the data to Excel, see Export data from Power BI visualizations.
6. To hide the data, de-select Explore > show data .
3. Select a data point or row on the visualization. In this example, we've selected the fourth column from the
left. Power BI shows us the dataset record for this data point.
4. Select Back to repor t to return to the Desktop report canvas.
Next steps
Export data from Power BI visualizations
More questions? Try the Power BI Community
Getting started with the formatting pane
8/13/2020 • 4 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
If you have edit permissions for a report, there are numerous formatting options available. In Power BI reports,
you can change the color of data series, data points, and even the background of visualizations. You can change
how the x-axis and y-axis are presented. You can even format the font properties of visualizations, shapes, and
titles. Power BI provides you with full control over how your reports appear.
To get started, open a report in Power BI Desktop or the Power BI service. Both provide almost identical formatting
options. When you open a report in the Power BI service, be sure to select Edit from the menu bar.
When you’re editing a report and you have a visualization selected, the Visualizations pane appears. Use this
pane to change visualizations. Directly below the Visualizations pane are three icons: the Fields icon (a stack of
bars), the Format icon (a paint roller), and the Analytics icon (a magnifying glass). In the image below, the Fields
icon is selected, indicated by a yellow bar below the icon.
When you select Format , the area below the icon displays the customizations available for the currently selected
visualization.
You can customize many elements of each visualization. The options available depend on the visual selected. Some
of those options are:
Legend
X-axis
Y-axis
Data colors
Data labels
Shapes
Plot area
Title
Background
Lock aspect
Border
Tooltips
Visual headers
Shapes
Position
and more.
NOTE
You won’t see all these elements with each visualization type. The visualization you select will affect which customizations are
available; for example, you won’t see an X-Axis if you have a pie chart selected because pie charts don’t have an X-axis.
Also note that if you don’t have any visualization selected, Filters appears in place of the icons, which lets you
apply filters to all visualizations on the page.
The best way to learn how to use the Formatting options is to try them out. You can always undo your changes or
revert to default. There are an incredible amount of options available, and new ones being added all the time. It's
just not possible to describe all formatting options in one article. But to get you started, let's review a few together.
1. Change colors used in the visual
2. Apply a style
3. Change axis properties
4. Add data labels
4. Change Show all to On, and select different colors for columns.
Here are a few useful tips for working with colors. The numbers in the following list are also shown on the
following screen, indicating where these useful elements can be accessed or changed.
1. Don’t like the color? No problem, just select Rever t to default and your selection reverts to the default
setting.
2. Don't like any of the color changes? Select Rever t to default from the bottom of the Data color section,
and your colors revert to the default settings.
3. Want a color you don’t see in the palette? Just select Custom color , and choose from the spectrum.
Not crazy about the change you just made? Use CTRL+Z to undo , just like you’re used to doing.
Even after you apply a Style, you can continue formatting properties, including color, for that visualization.
You can remove the axis labels entirely, by toggling the radio button beside X-Axis or Y-Axis . You can also choose
whether to turn axis titles on or off by selecting the radio button next to Title .
We selected the visualization to make it active and opened the Formatting tab. We selected Data labels and
turned them On. Then we increased font to 12, changed font family to Arial Black, turned Show background to
On and background color to white with a transparency of 5%.
These are just a few of the formatting tasks that are possible. Open a report in Editing mode and have fun
exploring the Formatting pane to create beautiful and informative visualizations.
Next steps
For more information, see the following article:
Sharing reports
Tips and tricks for color formatting in Power BI
Conditional formatting in tables
Tips and tricks for color formatting in Power BI
8/13/2020 • 6 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
Power BI provides many different ways to customize your dashboards and reports. This article details a collection
of tips that can make your Power BI visualizations more compelling, interesting, and customized to your needs.
The following tips are provided. Have another great tip? Great! Send it our way and we’ll see about adding it to this
list.
Apply a theme to the entire report
Change the color of a single data point
Conditional formatting
Base the colors of a chart on a numeric value
Base the color of data points on a field value
Customize colors used in the color scale
Use diverging color scales
Add color to table rows
How to undo in Power BI
To make any changes, you must have edit permissions for the report. In Power BI Desktop, open the report in
Repor t view. In the Power BI service, that means opening the report and selecting Edit from the menu bar, as
shown in the following image.
When the Filters and Visualizations panes appear along the right side of the report canvas, you’re ready to start
customizing. If the panes do not appear, select the arrow, from the top-right corner, to open them.
Apply a theme
With report themes you can apply design changes to your entire report, such as using corporate colors, changing
icon sets, or applying new default visual formatting. When you apply a report theme, all visuals in your report use
the colors and formatting from your selected theme. To learn more, see Use report themes
Here, we've applied the Innovate theme to the Sales and Marketing report.
There are all sorts of things you can do with colors. In the next section, we take a look at conditional formatting.
In the Default color pane, use the dropdowns to identify the fields to use for conditional formatting. In this
example, we've selected the Sales fact > Total Units field and selected light blue for the Lowest value and dark
blue for Highest value .
You can also format the color of the visual using a field that is not part of the visual. In the following image,
%Market Share SPLY YTD is being used.
As you can see, although we've sold more units of both Productivity and Extreme (their columns are higher),
Moderation has a larger %Market Share SPLY YTD (its column has more color saturation).
Customize the colors used in the color scale
You can also change the way the values map to these colors. In the following image, the colors for Minimum and
Maximum are set to orange and green, respectively.
In this first image, notice how the bars in the chart reflect the gradient shown in the bar; the highest value is green,
the lowest is orange, and each bar between is colored with a shade of the spectrum between green and orange.
Now, let’s see what happens if we provide numeric values in the Minimum and Maximum value boxes. Select
Custom from the dropboxes for both Minimum and Maximum , and set Minimum to 3,500, and set Maximum
to 6,000.
By setting those values, gradient is no longer applied to values on the chart that are below Minimum or above
Maximum ; any bar with a value over Maximum value is colored green, and any bar with a value under
Minimum value is colored red.
One of the quickest ways to apply color to a table or matrix is to open the Formatting tab and select Style . In the
image below, we've selected Bold header flashy rows .
Experiment with other color formatting options. In this image, we've changed the background color under
Column headers and changed both the Background color and Alternate background color for the Values
(rows).
Next steps
Getting started with color formatting and axis properties
Sharing reports.
Copy and paste a report visualization
8/13/2020 • 4 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
This article covers two different ways to copy and paste a visual.
copy a visual in a report and paste it onto another report page (requires editing permissions for the report)
copy an image of a visual from Power BI to your clipboard, and paste it into other applications
4. When your visual is ready, paste it into another application using Ctrl + V or right-click > Paste. In the
screenshot below, we've pasted the visual into Microsoft Word.
Copy from a report visual
1. Navigate to the report you want to copy from.
2. From the upper right corner of the visual, select the icon for Copy visual as image .
3. When the Your visual is ready to copy dialog appears, select Copy to clipboard .
4. When your visual is ready, paste it into another application using Ctrl + V or right-click > Paste. In the
screenshot below, we've pasted the visual into an email.
5. If there is a data sensitivity label applied to the report, you'll receive a warning when you select the copy
icon.
And, a sensitivity label will be added to the metadata below the pasted visual.
3. Disable Copy and paste visuals , for your selected user groups.
4. Save changes, and the specified groups will not be able to use Copy visual as image throughout Power BI.
Considerations and troubleshooting
Next steps
More about Visualizations in Power BI reports
More questions? Try the Power BI Community
Export the data that was used to create a
visualization
8/13/2020 • 10 minutes to read • Edit Online
IMPORTANT
Not all data can be viewed or exported by all users. There are safeguards that report designers and administrators use when
building dashboards and reports. Some data is restricted, hidden, or confidential, and cannot be seen or exported without
special permissions.
3. Power BI exports the data to a .csv file. If you've filtered the visualization, then the .csv export will be filtered
as well.
4. Your browser will prompt you to save the file. Once saved, open the .csv file in Excel.
Export data from a report
To follow along, open the Procurement analysis sample report in the Power BI service in Editing view. Add a new
blank report page. Then follow the steps below to add an aggregation, hierarchy, and a visualization-level filter.
Create a stacked column chart
1. Create a new Stacked column char t .
2. From the Fields pane, select Location > City , Location > Countr y/Region , and Invoice > Discount
Percent . You may have to move Discount Percent into the Value well.
3. Change the aggregation for Discount Percent from Count to Average . In the Value well, select the arrow
to the right of Discount Percent (it may say Count of Discount Percent ), and choose Average .
4. Add a filter to City , select all cities, and then remove Atlanta .
5. Drill down one level in the hierarchy. Turn on drilling and drill down to the City level.
Now we're ready to try out both options for exporting data.
Export summarized data
Select the option for Summarized data if you want to export data for what you see in that visual. This type of
export shows you only the data (columns and measures) that are being used to create the visual. If the visual has
an aggregate, you'll export aggregated data. For example, if you have a bar chart showing four bars, you'll get four
rows of Excel data. Summarized data is available in the Power BI service as .xlsx and .csv and in Power BI Desktop
as .csv.
1. Select the ellipsis in the upper-right corner of the visualization. Select Expor t data .
In the Power BI service, since your visualization has an aggregate (you changed Count to average), you'll
have two options:
Summarized data
Underlying data
For help understanding aggregates, see Aggregates in Power BI.
NOTE
In Power BI Desktop, you'll only have the option to export summarized data as a .csv file.
2. From Expor t data , select Summarized data , either choose .xlsx or .csv, and then select Expor t . Power BI
exports the data.
3. When you select Expor t , your browser prompts you to save the file. Once saved, open the file in Excel.
In this example, our Excel export shows one total for each city. Since we filtered out Atlanta, it isn't included
in the results. The first row of our spreadsheet shows the filters that Power BI used when extracting the data.
All the data used by the hierarchy is exported, not simply the data used for the current drill level for
the visual. For example, we had drilled down to the city level, but our export includes country data as
well.
Our exported data is aggregated. We get a total, one row, for each city.
Since we applied filters to the visualization, the exported data will export as filtered. Notice that the
first row displays Applied filters: City is not Atlanta, GA .
Export underlying data
Select this option if you want to see the data in the visual and additional data from the dataset (see chart below
for details). If your visualization has an aggregate, selecting Underlying data removes the aggregate. In this
example, the Excel export shows one row for every single City row in our dataset and the discount percent for that
single entry. Power BI flattens the data, it doesn't aggregate it.
When you select Expor t , Power BI exports the data to an .xlsx file and your browser prompts you to save the file.
Once saved, open the file in Excel.
1. Select the ellipsis from the upper-right corner of the visualization. Select Expor t data .
In the Power BI service, since your visualization has an aggregate (you changed Count to average ), you'll
have two options:
Summarized data
Underlying data
For help understanding aggregates, see Aggregates in Power BI.
NOTE
In Power BI Desktop, you'll only have the option to export summarized data.
2. From Expor t data , select Underlying data , and then select Expor t . Power BI exports the data.
3. When you select Expor t , your browser prompts you to save the file. Once saved, open the file in Excel.
This screenshot shows you only a small portion of the Excel file; it has more than 100,000 rows.
All the data used by the hierarchy is exported, not simply the data used for the current drill level for
the visual. For example, we had drilled down to the city level, but our export includes country data as
well.
Since we applied filters to the visualization, the exported data will export as filtered. Notice that the
first row displays Applied filters: City is not Atlanta, GA .
Aggregates the first aggregate and non-hidden data from the entire table
for that aggregate
Aggregates related data - if the visual uses data from other data tables
that are related to the data table that contains the aggregate
(as long as that relationship is *:1 or 1:1)
Measures* all measures in the visual and all measures from any data
table containing a measure used in the visual
Measures* all non-hidden data from tables that contain that measure (as
long as that relationship is *:1 or 1:1)
Measures* all data from all tables that are related to table(s) containing
the measures via a chain of *:1 of 1:1)
Measures only all non-hidden columns from all related tables (to expand the
measure)
Measures only summarized data for any duplicate rows for model measures
* In Power BI Desktop or service, in the reporting view, a measure shows in the Fields list with a calculator icon
. Measures can be created in Power BI Desktop.
Set the export options
Power BI report designers control the types of data export options that are available for their consumers. The
choices are:
Allow end users to export summarized data from the Power BI service or Power BI Report Server
Allow end users to export both summarized and underlying data from the service or Report Server
Don't allow end users to export any data from the service or Report Server
IMPORTANT
We recommend that report designers revisit old reports and manually reset the export option as needed.
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
Report designers and owners can move and resize visualizations. If you're working in the Power BI service
(app.powerbi.com) you'll need to open the report in Editing view.
Next steps
Resize a visualization on a dashboard
Focus mode
More questions? Try the Power BI Community
Change how visuals interact in a Power BI report
8/13/2020 • 3 minutes to read • Edit Online
If you have edit permissions for a report, you can use Visual interactions to change how visualizations on a
report page impact each other.
NOTE
This video uses older versions of Power BI Desktop and the Power BI service.
https://www.youtube.com/embed/N_xYsCbyHPw?list=PL1N57mwBHtN0JFoKSR0n-tBkUJHeMP2cP
In the Power BI service, open the report in Editing view and select the dropdown from the report
menu bar.
3. To display the visualization interaction controls, select Edit interactions . Power BI adds filter and highlight
icons to all of the other visualizations on the report page. We can see that the tree map is cross-filtering the
line chart and the map, and is cross-highlighting the column chart. You can now change how the selected
visualization interacts with the other visualizations on the report page.
cross-highlight one of the other visualizations on the page, select the highlight icon .
have no impact on one of the other visualizations on the page, select the no impact icon .
TIP
Try it yourself using the Human Resources sample PBIX file. There's a column chart with drill down on the New hires tab.
3. From the menu bar, select Format > Drilling filters other visuals . Now when you drill down (and up) in
a visualization, the other visualizations on the report page change to reflect your current drilling selection.
4. If the behavior you see is not what you'd prefer, you can change the interactions as described above.
Next steps
Filtering and highlighting in Power BI reports
Tips and tricks for Power BI map visualizations
8/13/2020 • 6 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
Power BI integrates with Bing Maps to provide default map coordinates (a process called geo-coding) so you can
create maps. Together they use algorithms to identify the correct location, but sometimes it's a best guess. If Power
BI tries, but can't create the map visualization on its own, it enlists the help of Bing Maps.
You, or your administrator, may need to update your firewall to allow access to the URLs Bing uses for geocoding.
Those URLs are:
https://dev.virtualearth.net/REST/V1/Locations
https://platform.bing.com/geo/spatial/v1/public/Geodata
https://www.bing.com/api/maps/mapcontrol
To increase the likelihood of correct geo-coding, use the following tips. The first set of tips is for you to use if you
have access to the dataset itself. The second set of tips is things you can do in Power BI if you don't have access to
the dataset.
In this second example below, the field Territor y is being used for geo-coding, so the values in the Territory
column are sent to Bing. Data from the Legend and Color saturation buckets is not sent to Bing.
In the dataset: tips to improve the underlying dataset
If you have access to the dataset that is being used to create the map visualization, there are a few things you can
do to increase the likelihood of correct geo-coding.
1. Categorize geographic fields in Power BI Desktop
In Power BI Desktop, you can ensure fields are correctly geo-coded by setting the Data Category on the data fields.
In Data view, select the desired column. From the ribbon, select the Modeling tab and then set the Data
Categor y to Address , City , Continent , Countr y/Region , County , Postal Code , State or Province . These data
categories help Bing correctly encode the date. To learn more, see Data categorization in Power BI Desktop. If you
are live connecting to SQL Server Analysis Services, you will need to set the data categorization outside of Power
BI using SQL Server Data Tools (SSDT).
2. Use more than one location column.
Sometimes, even setting the data categories for mapping isn't enough for Bing to correctly guess your intent.
Some designations are ambiguous because the location exists in multiple countries or regions. For example, there's
a Southampton in England, Pennsylvania, and New York.
Power BI uses Bing's unstructured URL template service to get the latitude and longitude coordinates based on a
set of address values for any country. If your data doesn't contain enough location data, add those columns and
categorize them appropriately.
For example, if you only have a City column, Bing may have a hard time geo-coding. Add additional geo columns
to make the location unambiguous. Sometimes all it takes is adding one more location column to the dataset - in
this case state/province. And don't forget to categorize it properly, see #1 above.
Make sure each field only has a single location category. For example, your City location field should be
Southampton , not Southampton, New York . And Address location fields should be 1 Microsoft Way and not
1 Microsoft Way, Redmond, WA .
3. Use specific Latitude and Longitude
Add latitude and longitude values to your dataset. This removes any ambiguity and returns results more quickly.
Latitude and Longitude fields must be in Decimal Number format, which you can set in the data model.
https://www.youtube.com/embed/ajTPGNpthcg
4. Use Place categor y for columns with full location information
While we encourage you to use geo-hierarchies in your maps, if you must use a single location column with full
geographical information, you can set the data categorization to Place . For example, if the data in your column is
full addresses, such as 1 Microsoft Way, Redmond Washington 98052, this generalized data category will work
best with Bing.
In Power BI: tips to get better results when using map visualizations
1. Use latitude and longitude fields (if they exist)
In Power BI, if the dataset you are using has fields for longitude and latitude -- use them! Power BI has special
buckets to help make the map data unambiguous. Just drag the field that contains your latitude data into the
Visualizations > Latitude area. And do the same for your longitude data. When you do this, you also need to fill
the Location field when creating your visualizations. Otherwise, the data is aggregated by default, so for example,
the latitude and longitude would be paired at the state level, not the city level.
Next steps
Drill down in a Power BI visualization
Power BI visualizations
More questions? Try the Power BI Community
Customize x-axis and y-axis properties
8/13/2020 • 6 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
In this tutorial, you'll learn many different ways to customize the X-axis and Y-axis of your visuals. Not all visuals
have axes. Pie charts, for example, don't have axes. And customization options vary from visual to visual. There are
too many options to cover in a single article, so we'll take a look at some of the most-used customizations and get
comfortable using the visual Format pane in the Power BI report canvas.
Watch Amanda customize her X- and Y-axes. She'll also demonstrate the different ways to control concatenation
when using drill down and drill up.
NOTE
This video uses an older version of Power BI.
https://www.youtube.com/embed/9DeAKM4SNJM
Prerequisites
Power BI Desktop
Retail Analysis Sample
3. From the Visualizations pane, select the stacked column chart icon. This adds an empty template to your
report canvas.
4. To set the X-axis values, from the Fields pane, select Time > FiscalMonth .
5. To set the Y-axis values, from the Fields pane, select Sales > Last Year Sales and Sales > This Year
Sales > Value .
Now you can customize your X-axis. Power BI gives you almost limitless options for formatting your
visualization.
1. In the Visualizations pane, select Format (the paint roller icon ) to reveal the customization options.
2. Expand the X-axis options.
3. Move the X-axis slider to On .
Some reasons you may want to set the X axis to Off , is if the visualization is self-explanatory without labels
or if you have a crowded report page and need to make space to display more data.
4. Format the text color, size, and font:
Color : Select black
Text size : Enter 14
Font family : Select Arial Black
Inner padding : Enter 40%
5. Maybe you don't like the way the X-axis text is displayed on a diagonal. You have several options.
Change the text size to something smaller than 14.
Make the visualization larger.
Display fewer columns and add a scrollbar by increasing Minimum categor y width .
Here, we've selected the second option and grabbed one of the resize bars to make the visualization wider. It
now accommodates the 14-point text without needing to display the text on an angle or with a scrollbar.
The first thing you'll notice is that your visualization now has a default X-axis title. In this case, it's
FiscalMonth .
2. Format the title text color, size, and font:
Title color : Select orange
Axis title : Type Fiscal Month (with a space)
Title text size : Enter 18
After you finish the customizations, your stacked column chart looks something like this:
3. Save the changes you've made and move to the next section. If you ever need to revert all of the changes,
select Rever t to default at the bottom of the X-Axis customization pane. Next, you'll customize your Y-
Axis.
2. Drag Sales > Gross Margin Last Year % from your Fields pane into the Line Values bucket.
Power BI creates two Y axes, allowing the values to be scaled differently. The left axis measures sales dollars
and the right axis measures gross margin percentage.
Format the second Y -Axis
Because we started with a visualization with one formatted Y-axis, Power BI created the second Y-axis using the
same settings. But we can change that.
1. In the Visualizations pane, select the paint roller icon to display the format options.
2. Expand the Y-Axis options.
3. Scroll down until you find the Show secondar y option. Verify that it is On . Our secondary Y axis
represents the line chart.
4. (Optional) Customize the font color, size, and display units for the two axes. If you switch Position for either
the column axis or the line axis, then the two axes switch sides.
Add titles to both axes
With a visualization that's complex, it helps to add axes titles. Titles help your colleagues understand the story your
visualization is telling.
1. Toggle Title to On for Y-Axis (Column) and the Y-Axis (Line) .
2. Set Style to Show title only for both.
3. Your combo chart now shows dual axes, both with titles.
4. Format the titles. In this example, we've shorted one of the titles and reduced the font size for both.
Font size: 9
Shortened the Axis title for the first Y axis (the column chart): Sales last year & this year.
For more information, see Tips and tricks for color formatting in Power BI and Customize visualization titles,
legends, and backgrounds.
Next steps
Visualizations in Power BI reports
More questions? Try the Power BI Community
Interact with ArcGIS maps in Power BI
8/13/2020 • 9 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
This topic is written from the point of view of a person using an ArcGIS map in the Power BI service, Desktop, or
mobile. Once a designer shares an ArcGIS map for Power BI visual with you, there are many ways to interact with
that visual. To learn more about creating an ArcGIS map, see ArcGIS maps by Esri tutorial.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity. See sharing reports.
The combination of ArcGIS maps and Power BI takes mapping beyond the presentation of points on a map to a
whole new level. Report designers start with a map and attach layers of demographic data to that map. The
combination of this location-based data layers (such as census data) on a map with spatial analysis conveys a
deeper understanding of the data in your visualizations.
TIP
GIS stands for Geographic Information System.
This ArcGIS map for Power BI visual shows last year's sales by city and uses a street base map and an average
household income reference layer. The map contains two pins (red and yellow) and one drive time radius (in
purple).
TIP
Visit Esri's page on Power BI to see many examples and read testimonials. And then see Esri's ArcGIS Maps for Power BI
Getting Started page.
User consent
The first time a colleague shares an ArcGIS map with you, Power BI will display a consent prompt. ArcGIS Maps for
Power BI is provided by Esri (https://www.esri.com) and your use of ArcGIS Maps for Power BI is subject by Esri's
terms and privacy policy. Power BI users wishing to use the ArcGIS Maps for Power BI visuals need to accept the
consent dialog.
Reference layers
A report designer can add one reference layer. Reference layers are hosted by Esri and provide an additional layer
of demographic information about a location. The example below has a reference layer for population density.
Darker colors represent higher density.
Infographics
A report designer can add many infographics layers. Infographics are quick visual indicators that display along the
right side of the visual canvas. Infographics are hosted by Esri and provide an additional layer of demographic
information about a location. The example below has three infographics applied. They don't display on the map
itself, but on cards. The infographics cards update as you zoom, pan, and select areas on the map.
Pins
Pins represent precise locations, like a city or address. Sometimes report designers use pins with drive time radius.
This example shows stores within a 50-mile radius of Charlotte, North Carolina.
Interact with an ArcGIS Maps for Power BI visual
The features available to you depend on how the report was shared with you and your Power BI account type.
Check with your system administrator if you have questions. ArcGIS Maps for Power BI visuals behave much like
other visuals in a report. You'll be able to show the data that is used to create the visualization, see the map in
Focus mode and full screen mode, add comments, interact with the filters set by the report designer, and more.
ArcGIS visuals can cross-filter other visuals on the report page and vice versa.
Hover over base map locations (for example, a bubble) to reveal tooltips. Additionally, use the ArcGIS visual
selection tools to display additional tooltips, and to make specific selections on the base map or reference layer.
Selection tools
ArcGIS Maps for Power BI allows five selection modes. A maximum of 250 data points can be selected at a time.
Select a data point, a bubble, a pin, or an individual data point from the reference layer. Power BI will display a
tooltip with details about your selection. Single-select cross-filters the other visuals on the report page based on
your selection, and updates the infographics cards for the selected area.
Here we've selected a brown bubble data point from our base map. Power BI:
highlights our selection,
displays a tooltip for that data point,
updates the infographics cards to display data for just our selection, and
cross-hghlights the column chart.
If the map has a reference layer, selecting locations displays details in a tooltip. Here we've selected Seneca County
and see data from the reference layer (population density) that the report designer added to the map. In this
example, our data point includes two different counties, so our tooltip has two pages. Each page has a chart. Select
a bar on the chart to display additional details.
TIP
Sometimes, you can reduce the number of tooltip pages by zooming in to select a specific location. Otherwise, if there are
overlapping locations, Power BI may present you with more than 1 tooltip at a time. Select the arrows to move between the
tooltips
Draws a rectangle on the map and selects the contained data points. Use CTRL to select more than one rectangular
area. Multi-select updates the infographics cards for the selected area, and cross-highlights the other visuals on the
report page based on your selection.
Allows boundaries or polygons within reference layers to be used to select contained data points. It's hard to see,
but there is a yellow outline on the reference layer. Unlike the single-select tool, we don't get a tooltip. Instead we
get data about any data points contained within the borders of that outline. In this example, our selection does
contain a data point -- it's for a Lindseys store in Winston Salem.
The buffer tool
Allows selection of data points using a buffer layer. For example, use this tool to select a drive time radius and
continue to interact with the rest of the report. The drive time radius remains active and the infographics cards
continue to reflect the drive time radius, but selecting other data points on the map cross-filters the other visuals
on the report page.
Allows you to find locations with similar attributes. You begin by selecting one or more points of interest, or
reference locations, defining up to five dimensions that you want to use in analysis. Find Similar then calculates the
10 locations on your map that are most like the reference locations you defined. You can then use Infographics
cards to learn more about the demographics around each of your results, create drive-time areas to get a sense of
what is within driving distance of each of these locations, or even use the Find Similar tool itself to filter your
report and gain more insights. Most importantly, all the calculation is done locally on your machine, so you can be
sure your confidential data remains protected.
SERVIC E/ A P P AVA IL A B IL IT Y
Power BI Embedded No
When a user signs up for a Plus subscription offered by Esri through ArcGIS Maps for Power BI, they are entering
into a direct relationship with Esri. Power BI does not send personal information about the user to Esri. The user
signs in to and trusts an Esri provided AAD application using their own AAD identity. By doing so, the user is
sharing their personal information directly with Esri. Once the user adds Plus content to an ArcGIS Maps for Power
BI visual, colleagues who want to view or edit that visual will also need a Plus subscription from Esri.
For technical detailed questions about how Esri’s ArcGIS Maps for Power BI works, reach out to Esri through their
support site.
Considerations and troubleshooting
The ArcGIS map is not showing up
In services or applications where ArcGIS Maps for Power BI is not available, the visualization will show as an empty
visual with the Power BI logo.
I'm not seeing all of my information on the map
When geocoding latitude/longitude on the map, up to 30,000 data points are displayed. When geocoding data
points such as zip codes or street addresses, only the first 15,000 data points are geo-coded. Geocoding place
names or countries is not subject to the 1500 address limit.
Is there any charge for using ArcGIS Maps for Power BI?
The ArcGIS Map for Power BI is available to all Power BI users at no additional cost. It is a component provided by
Esri and your use is subject to the terms and privacy policy provided by Esri as noted earlier in this article. If you
subscribe to ArcGIS Plus , there is a charge.
I'm getting an error message about my cache being full
This behavior is a bug that is being addressed. In the meantime, select the link that appears in the error message
for instructions on clearing your Power BI cache.
Can I view my ArcGIS maps offline?
No, Power BI needs network connectivity to display the maps.
Next steps
Getting help: Esri provides comprehensive documentation on the feature set of ArcGIS Maps for Power BI .
You can ask questions, find the latest information, report issues, and find answers on the Power BI community
thread related to ArcGIS Maps for Power BI .
ArcGIS Maps for Power BI product page
Create ArcGIS maps in Power BI Desktop
8/13/2020 • 12 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
This tutorial is written from the point of view of a person creating an ArcGIS Map for Power BI. Once a designer
shares an ArcGIS Map for Power BI map with a colleague, that colleague can view and interact with the map but
not save changes. To learn more about viewing an ArcGIS map, see Interacting with ArcGIS Maps for Power BI.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
The combination of ArcGIS maps and Power BI takes mapping beyond the presentation of points on a map to a
whole new level. Choose from base maps, location types, themes, symbol styles, and reference layers to create
gorgeous informative map visualizations. The combination of authoritative data layers on a map with spatial
analysis conveys a deeper understanding of the data in your visualization.
While you cannot create an ArcGIS Maps for Power BI map on a mobile device, you can view and interact with it.
See Interacting with ArcGIS maps.
NOTE
ArcGIS maps for Power BI are not currently available for Power BI Report Server.
TIP
GIS stands for Geographic Information Systems.
The example below uses a dark gray canvas to show regional sales as a heatmap against a demographic layer of
2016 median disposable income. As you'll see as you read on, using ArcGIS Maps for Power BI offers almost
limitless enhanced mapping capability, demographic data, and even-more compelling map visualizations so you
can tell your best story.
TIP
Visit Esri's page on ArcGIS Maps for Power BI to see many examples and read testimonials. And then see Esri's ArcGIS Maps
for Power BI Getting Started page.
User consent
ArcGIS Maps for Power BI is provided by Esri (https://www.esri.com). Your use of ArcGIS Maps for Power BI is
subject by Esri's terms and privacy policy. Power BI users wishing to use the ArcGIS Maps for Power BI visuals, need
to accept the consent dialog.
Resources
Terms
Privacy Policy
ArcGIS Maps for Power BI product page
Prerequisites
This tutorial uses Power BI Desktop and the PBIX Retail Analysis sample. ArcGIS Maps for Power BI can also be
created using the Power BI service.
1. From the upper left section of the menu bar, select File > Open
2. Find the Retail Analysis sample PBIX file saved on your local machine.
NOTE
This video uses an older version of Power BI Desktop.
1. Select the ArcGIS Maps for Power BI icon from the Visualizations pane.
2. Power BI adds an empty template to the report canvas. For this tutorial, we'll be using the free version.
3. From the Fields pane, drag a data field to the Location or Latitude and/or Longitude buckets. In this
example, we're using Store > City .
NOTE
ArcGIS Maps for Power BI will automatically detect if the fields you've selected are best viewed as a shape or a point
on a map. You can adjust the default in the settings (see below).
4. From the Fields pane, drag a measure to the Size bucket to adjust how the data is shown. In this example,
we're using Sales > Last Year Sales .
You've created your first ArcGIS Map for Power BI map. Now, let's refine and format our map using base maps,
location types, themes, and more.
The visualization expands and the available features display across the top. Each feature, when selected,
opens a task pane that provides detailed options.
TIP
Esri provides comprehensive documentation on the feature set of ArcGIS Maps for Power BI .
Base maps
Four base maps are provided: Dark Gray Canvas, Light Gray Canvas, OpenStreetMap, and Streets. Streets is the
ArcGIS standard base map.
To apply a base map, select it in the task pane.
Location type
ArcGIS Maps for Power BI automatically detect the best way to show data on the map. It selects from points or
boundaries. The Location type options allow you to fine-tune these selections.
Boundaries will only work if your data contains standard geographic values. ArcGIS Maps for Power BI
automatically figures out the shape to show on the map. Standard geographic values include countries, provinces,
zip codes, etc. But just like with GeoCoding, Power BI may not detect that a field should be a boundary by default,
or it may not find a boundary for your data.
Map theme
Four map themes are provided. Power BI automatically selects either Location only or Size themes, based on the
field(s) you added to the Location and Size buckets. Our map has defaulted to Size , since we added fields to both
buckets. Try out the other themes and return to Size before moving on to the next step.
T H EM E DESC RIP T IO N
Location Only Plots data points or filled boundaries on the map based on
the field you added to the Location bucket.
Heat Map Plots the intensity of data on the map. Areas of higher activity
or value are represented by stronger and glowing colors.
Size Plots data points on the map based on the field you added to
the Size bucket.
Clustering Points within the specified cluster radius are grouped into a
single symbol that represents the number of points in that
area of the map.
Symbol style
Symbol styles enable you to fine-tune how data is presented on the map. Symbol styles are context-sensitive based
on the selected Location type and Map theme. The example below shows Map theme set to Size and several
symbol style adjustments to transparency, style, and size.
Pins
Call attention to points on your map by adding pins.
1. Select the Pins tab.
2. Type keywords (such as addresses, places, and point of interest), in the search box and select from the
dropdown. A symbol appears on the map, and the map automatically zooms to the location. Search results
are saved as location cards in the Pins pane. You can save up to 10 location cards.
3. Power BI adds a pin to that location and you can change the color of the pin.
1. Select the single select tool and choose a pin or bubble. In this example, we've selected a pin for the
Charlotte Douglas airport
TIP
It's easier to select a location if you zoom in on the map. You can zoom using the + icon or the scroll on your mouse.
2. Let's say you're flying into the Charlotte Douglas airport for a few days and want to figure out which of your
chain stores are within a reasonable driving distance. Change Search area to Drive time and Distance to 25
minutes. Select OK.
3. There are two stores within a 25-minutes drive. The radius is shown in purple. Select any location to display
its details. Optionally, format the radius by changing color and outline.
Reference Layer
Reference layer - Demographics
ArcGIS Maps for Power BI provides a selection of demographic layers that help contextualize data from Power BI.
1. Select the Reference layer tab and choose Demographics .
2. Each layer listed has a checkbox. Add a checkmark to add that layer to the map. In this example we've added
average household income.
3. Each layer is interactive as well. Hover over a bubble to see the details. Click a shaded area to see details in
the form of charts. Here we've selected the zip code 28227 and there are two charts for us to view.
Each tool has a unique role in allowing you to select your data:
Draws a rectangle on the map and selects the contained data points.
Allows boundaries or polygons within reference layers to be used to select contained data points.
Allows you to select data points that are similar to each other.
NOTE
A maximum of 250 data points can be selected at a time.
Getting help
Esri provides comprehensive documentation on the feature set of ArcGIS Maps for Power BI .
You can ask questions, find the latest information, report issues, and find answers on the Power BI community
thread related to ArcGIS Maps for Power BI .
If you have a suggestion for an improvement, please submit it to Power BI's ideas list.
IT Administrator options
Power BI Desktop supports using Group Policy to disable ArcGIS Maps for Power BI across an organization's
deployed computers.
AT T RIB UT E VA L UE
valueName EnableArcGISMaps
SERVIC E/ A P P AVA IL A B IL IT Y
In services or applications where ArcGIS Maps for Power BI is not available, the visualization will show as an empty
visual with the Power BI logo.
When geocoding street addresses, only the first 1500 addresses are geocoded. Geocoding place names or
countries are not subject to the 1500 address limit.
How do ArcGIS Maps for Power BI work together? ArcGIS Maps for Power BI is provided by Esri
(https://www.esri.com). Your use of ArcGIS Maps for Power BI is subject by Esri's terms and privacy policy. Power BI
users wishing to use the ArcGIS Maps for Power BI visuals, need to accept the consent dialog (see User Consent for
details). Using Esri’s ArcGIS Maps for Power BI is subject to Esri’s Terms and Privacy Policy, which are also linked to
from the consent dialog. Each user must consent prior to using ArcGIS Maps for Power BI for the first time. Once
the user accepts the consent, data bound to the visual is sent to Esri’s services at least for geocoding, meaning
transforming location information into latitude and longitude information that can be represented in a map. You
should assume any data bound to the data visualization can be sent to Esri’s services. Esri provides services like
base maps, spatial analytics, geocoding, etc. The ArcGIS Maps for Power BI visual interacts with these services
using an SSL connection protected by a certificate provided and maintained by Esri. Additional information about
ArcGIS Maps for Power BI can be obtained from Esri’s ArcGIS Maps for Power BI product page.
When a user signs up for a Plus subscription offered by Esri through ArcGIS Maps for Power BI, they are entering
into a direct relationship with Esri. Power BI does not send personal information about the user to Esri. The user
signs in to and trusts an Esri provided AAD application using their own AAD identity. By doing so, the user is
sharing their personal information directly with Esri. Once the user adds Plus content to an ArcGIS Maps for Power
BI visual, other Power BI users also need a Plus subscription from Esri to view or edit that content.
For technical detailed questions about how Esri’s ArcGIS Maps for Power BI works, reach out to Esri through their
support site.
What data is sent to Esri? You can read about what data is transferred to Esri on their documentation site.
Is there any charge for using ArcGIS Maps for Power BI?
The ArcGIS Map for Power BI is provided by Esri at no additional cost. You must consent to the user agreement.
I'm getting an error message in Power BI Desktop about my cache being full
This is a bug that is being addressed. In the meantime, to clear your cache, please try to delete files at this location:
C:\Users\AppData\Local\Microsoft\Power BI Desktop\CEF and then restart Power BI.
Does ArcGIS Maps for Power BI suppor t Esri Shapefiles?
ArcGIS Maps for Power BI automatically detects standard boundaries like countries/regions, states/provinces, and
zip/postal codes. If you need to provide your own shapes, you can do so using the Shape Maps for Power BI
Desktop.
Can I view my ArcGIS maps offline?
No, Power BI needs network connectivity to display the maps.
Can I connect to my ArcGIS Online account from Power BI?
Not yet. Vote for this idea and we'll send you an email when we start working on this feature.
Next steps
Interacting with an ArcGIS map that has been shared with you
Blog post announcing availability of ArcGIS maps for Power BI
More questions? Try asking the Power BI Community
Create and use basic area charts
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
The basic area chart (also known as layered area chart.) is based on the line chart. The area between axis and line is
filled with colors to indicate volume.
Area charts emphasize the magnitude of change over time, and can be used to draw attention to the total value
across a trend. For example, data that represents profit over time can be plotted in an area chart to emphasize the
total profit.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
b. Convert the chart to a basic area chart by selecting the Area chart icon from the Visualizations pane.
Next step
Reports in Power BI
Create card visualizations
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
Sometimes a single number is the most important thing you want to track in your Power BI dashboard or report,
such as total sales, market share year over year, or total opportunities. This type of visualization is called a Card. As
with almost all of the native Power BI visualizations, Cards can be created using the report editor or Q&A.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the
report is saved in Premium capacity.
Prerequisite
This tutorial uses the Retail Analysis sample PBIX file
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
You have now successfully created a card with the report editor. Below is the second option for creating a card
using the Q&A question box.
3. For example, type "Total Sales for Tina" in the question box.
The question box helps you with suggestions and restatements, and finally displays the total number.
You have now successfully created a card with the Q&A question box. Below are steps for formatting your card to
your specific needs.
Format a card
You have many options for changing labels, text, color and more. The best way to learn is to create a card and then
explore the Formatting pane. Here are just a few of the formatting options available.
The Formatting pane is available when interacting with the card in a report.
1. Start by selecting the paint roller icon to open the Formatting pane.
2. With the card selected, expand Data label and change the color, size, and font family. If you had thousands
of stores, you could use Display units to show the number of stores by thousands and control the decimal
places as well. For example, 125.8K instead of 125,832.00.
Next steps
Combo charts in Power BI
Visualization types in Power BI
Create and use combo charts in Power BI
8/13/2020 • 4 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
In Power BI, a combo chart is a single visualization that combines a line chart and a column chart. Combining the 2
charts into one lets you make a quicker comparison of the data.
Combo charts can have one or two Y axes.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
Prerequisites
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
NOTE
This video uses an older version of Power BI Desktop.
https://www.youtube.com/embed/lnv66cTZ5ho?list=PL1N57mwBHtN0JFoKSR0n-tBkUJHeMP2cP
1. Start on a blank report page and create a column chart that displays this year's sales and gross margin by
month.
a. From the Fields pane, select Sales > This Year Sales > Value .
b. Drag Sales > Gross Margin This Year to the Value well.
c. Select Time > FiscalMonth to add it to the Axis well.
2. Select More options (...) in the upper-right corner of the visualization, and select Sor t by > FiscalMonth .
To change the sort order, select the ellipsis again and choose either Sor t ascending or Sor t descending .
For this example will use Sor t ascending .
3. Convert the column chart to a combo chart. There are two combo charts available: Line and stacked
column and Line and clustered column . With the column chart selected, from the Visualizations pane
select the Line and clustered column char t .
4. From the Fields pane, drag Sales > Last Year Sales to the Line Values bucket.
3. To make the visual easier to read and interpret, convert the line chart to a Line and Stacked Column chart.
4. Drag Gross Margin Last Year % from Column Values into Line Values . Power BI creates two axes, thus
allowing the datasets to be scaled differently; the left measures sales dollars and the right measures
percentage. And we see the answer to our question; yes, we do see a similar pattern.
5. For Y-Axis (Line) , leave Position as Right , turn Title to On , and set Style to Show title only .
Your combo chart now displays dual axes, both with titles.
6. Optionally, modify the text font, size, and color and set other formatting options to improve the display and
readability of the chart.
From here you might want to:
Add the combo chart as a dashboard tile.
Save the report.
Make the report more accessible for people with disabilities.
Next steps
Doughnut charts in Power BI
Visualization types in Power BI
Create and view decomposition tree visuals in Power
BI
8/13/2020 • 6 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in this
article are from Power BI Desktop.
The decomposition tree visual in Power BI lets you visualize data across multiple dimensions. It automatically
aggregates data and enables drilling down into your dimensions in any order. It is also an artificial intelligence (AI)
visualization, so you can ask it to find the next dimension to drill down into based on certain criteria. This makes it a
valuable tool for ad hoc exploration and conducting root cause analysis.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
Get started
Select the decomposition tree icon from the Visualizations pane.
The next step is to bring in one or more dimensions you would like to drill down into. Add these fields to the
Explain by bucket. Notice that a plus sign appears next to your root node. Selecting the + lets you choose which
field you would like to drill into (you can drill into fields in any order that you want).
Selecting Forecast bias results in the tree expanding and breaking down the measure by the values in the column.
This process can be repeated by choosing another node to drill into.
Selecting a node from the last level cross-filters the data. Selecting a node from an earlier level changes the path.
Interacting with other visuals cross-filters the decomposition tree. The order of the nodes within levels could
change as a result. In the example below, we've cross-filtered the tree by Ubisoft. The path updates and Xbox sales
move from first to second place, surpassed by PlayStation.
If we then cross-filter the tree by Nintendo, Xbox sales are blank as there are no Nintendo games developed for
Xbox. Xbox, along with its subsequent path, gets filtered out of the view.
Despite the path disappearing, the existing levels (in this case Game Genre) remain pinned on the tree. Selecting the
Nintendo node therefore automatically expands the tree to Game Genre.
AI splits
You can use “AI Splits” to figure out where you should look next in the data. These splits appear at the top of the list
and are marked with a lightbulb. The splits are there to help you find high and low values in the data, automatically.
The analysis can work in two ways depending on your preferences. The default behavior is as follows:
High Value : Considers all available fields and determines which one to drill into to get the highest value of the
measure being analyzed.
Low Value : Considers all available fields and determines which one to drill into to get the lowest value of the
measure being analyzed.
Selecting High Value in the backorders example, results in the following:
A lightbulb appears next to Product Type indicating this was an ‘AI split’. The tree also provides a dotted line
recommending the Patient Monitoring node as that results in the highest value of backorders (9.2%).
Hover over the lightbulb to see a tooltip. In this example, the tooltip is “% on backorder is highest when Product
Type is Patient Monitoring”.
You can configure the visual to find Relative AI splits as opposed to Absolute ones.
Relative mode looks for high values that stand out (compared to the rest of the data in the column). To illustrate
this, let’s take a look at an example:
In the screenshot above, we are looking at North America sales of video games. We first split the tree by Publisher
Name and then drill into Nintendo. Selecting High Value results in the expansion of Platform is Nintendo .
Since Nintendo (the publisher) only develops for Nintendo consoles, there is only one value present and so that is
unsurprisingly the highest value.
Nevertheless, a more interesting split would be to look at which high value stands out relative to other values in the
same column. If we change the Analysis type from Absolute to Relative , we get the following result for Nintendo:
This time, the recommended value is Platform within Game Genre . Platform doesn’t yield a higher absolute
value than Nintendo ($19,950,000 vs. $46,950,000). Nevertheless it’s a value that stands out.
More precisely, since there are 10 Game Genre values, the expected value for Platform would be $4.6M if they were
to be split evenly. Since Platform has a value of almost $20M, that is an interesting result as it is four times higher
than the expected result.
The calculation is as follows:
North America Sales for Platform/ Abs(Avg(North America Sales for Game Genre))
vs.
North America Sales for Nintendo / Abs(Avg(North America Sales for Platform))
Which translates to:
19,550,000 / (19,550,000 + 11,140,000 + ... + 470,000 + 60,000 /10) = 4.25x
vs.
46,950,000/ (46,950,000/1) = 1x
If you prefer not to use any AI splits in the tree, you also have the option of turning them off under the Analysis
formatting options:
But if we select April in the bar chart, the highest changes to Product Type is Advanced Surgical . In this case,
it’s not just the nodes that got reordered, but a completely different column was chosen.
If we want AI levels to behave like non-AI levels, select the lightbulb to revert the behavior to default.
While multiple AI levels can be chained together, a non-AI level cannot follow an AI level. If we do a manual split
following an AI split, the lightbulb from the AI level disappears and the level transforms into a normal level.
Locking
A content creator can lock levels for report consumers. When a level is locked, it cannot be removed or changed. A
consumer can explore different paths within the locked level but they cannot change the level itself. As a creator
you can hover over existing levels to see the lock icon. You can lock as many levels as you want, but you cannot
have unlocked levels preceding locked levels.
In the example below, the first two levels are locked. This means that report consumers can change level 3 and 4,
and even add new levels afterwards. The first two levels however cannot be changed:
Known limitations
The maximum number of levels for the tree is 50. Maximum number of data points that can be visualized at one
time on the tree is 5000. We truncate levels to show top n. Currently the top n per level is set to 10.
The decomposition tree is not supported in the following scenarios:
On-premises Analysis Services
AI splits are not supported in the following scenarios:
Azure Analysis Services
Power BI Report Server
Publish to Web
Complex measures and measures from extensions schemas in 'Analyze'
Other limitations:
Support inside Q&A
Next steps
Power BI doughnut chart
Power BI visualizations
Create and use doughnut charts in Power BI
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A doughnut chart is similar to a pie chart in that it shows the relationship of parts to a whole. The only difference
is that the center is blank and allows space for a label or icon.
Prerequisite
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the
report is saved in Premium capacity.
2. From the Visualizations pane, select the icon for doughnut chart to convert your bar chart to a
doughnut chart. If Last Year Sales is not in the Values area, drag it there.
3. Select Item > Categor y to add it to the Legend area.
Next steps
Funnel charts in Power BI
Visualization types in Power BI
Create and use filled maps (choropleth maps) in
Power BI
8/13/2020 • 5 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A filled map uses shading or tinting or patterns to display how a value differs in proportion across a geography or
region. Quickly display these relative differences with shading that ranges from light (less-frequent/lower) to dark
(more-frequent/more).
3. Open the Sales and Marketing sample PBIX file in report view .
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
c. Place a check mark next to All and remove the check mark next to AK .
4. Select the paint roller icon to open the Formatting pane, and choose Data colors .
6. Use the Default color - Data colors screen to determine how your filled map will be shaded. The options
available to you include which field to base the shading, and how to apply the shading. In this example we're
using the field SalesFact > Sentiment , and setting the lowest value for sentiment as orange and the
highest value as blue. Values that fall between the maximum and minimum will be shades of orange and
blue. The illustration at the bottom of the screen shows the range of colors that will be used.
7. The filled map is shaded in green and red, with red representing the lower sentiment numbers and green
representing the higher, more-positive sentiment. To display additional detail, drag a field into the Tooltips
well. Here we've added SalesFact > Sentiment gap . Highlighting the state of Idaho (ID) shows us that
sentiment gap is low, at 6.
4. Move and resize the visualizations on the page to make some room, then CTRL-V paste the filled map from
the previous report. (See the following images)
5. On the filled map, select a state. This cross-highlights and cross-filters the other visualizations on the page.
Selecting Texas , for example, cross-filters the cards and cross-highlights the bar chart. From this, I know that
Sentiment is 75 and that Texas is in the Central District #23.
6. Select a data point on the VanArsdel - Sentiment by Month line chart. This filters the filled map to show
Sentiment data for VanArsdel and not their competition.
Considerations and troubleshooting
Map data can be ambiguous. For example, there's a Paris, France, but there's also a Paris, Texas. Your geographic
data is probably stored in separate columns – a column for city names, a column for state or province names, etc. –
so Bing may not be able to tell which Paris is which. If your dataset already contains latitude and longitude data,
Power BI has special fields to help make the map data unambiguous. Just drag the field that contains your latitude
data into the Visualizations > Latitude area. And do the same for your longitude data.
If you have permissions to edit the dataset in Power BI Desktop, watch this video for help with addressing map
ambiguity.
[VIDEO https://www.youtube.com/embed/Co2z9b-s_yM]
If you do not have access to latitude and longitude data, but you do have edit access to the dataset, follow these
instructions to update your dataset.
For more help with Map visualizations, see Tips and tricks for map visualizations.
Next steps
Shape map
Visualization types in Power BI
Create and use funnel charts
8/13/2020 • 3 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A funnel chart helps you visualize a linear process that has sequential connected stages. For example, a sales
funnel that tracks customers through stages: Lead > Qualified Lead > Prospect > Contract > Close. At a glance, the
shape of the funnel conveys the health of the process you're tracking.
Each funnel stage represents a percentage of the total. So, in most cases, a funnel chart is shaped like a funnel --
with the first stage being the largest, and each subsequent stage smaller than its predecessor. A pear-shaped funnel
is also useful -- it can identify a problem in the process. But typically, the first stage, the "intake" stage, is the largest.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
NOTE
Watch this video to see Will create a funnel chart using the Sales and Marketing sample. Then follow the steps below
the video to try it out yourself using the Opportunity Analysis PBIX sample file
Prerequisite
This tutorial uses the Opportunity Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Oppor tunity Analysis sample PBIX file
3. Open the Oppor tunity Analysis sample PBIX file in report view .
2. Select the funnel icon to convert the column chart to a funnel chart.
3. From the Fields pane, select Fact > Oppor tunity Count .
4. Hovering over a bar displays a wealth of information.
The name of the stage
Number of opportunities currently in this stage
Overall conversion rate (% of Lead)
Stage-to-stage (also known as Drop Rate) which is the % of the previous stage (in this case, Proposal
Stage/Solution Stage)
2. To set preferences for how visuals cross-highlight and cross-filter each other, see Visual interactions in
Power BI
Next steps
Gauges in Power BI
Visualization types in Power BI
Create key influencers visualizations
8/13/2020 • 28 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
The key influencers visual helps you understand the factors that drive a metric you're interested in. It analyzes your
data, ranks the factors that matter, and displays them as key influencers. For example, suppose you want to figure
out what influences employee turnover, which is also known as churn. One factor might be employment contract
length, and another factor might be employee age.
1. Tabs : Select a tab to switch between views. Key influencers shows you the top contributors to the selected
metric value. Top segments shows you the top segments that contribute to the selected metric value. A
segment is made up of a combination of values. For example, one segment might be consumers who have
been customers for at least 20 years and live in the west region.
2. Drop-down box : The value of the metric under investigation. In this example, look at the metric Rating .
The selected value is Low .
3. Restatement : It helps you interpret the visual in the left pane.
4. Left pane : The left pane contains one visual. In this case, the left pane shows a list of the top key influencers.
5. Restatement : It helps you interpret the visual in the right pane.
6. Right pane : The right pane contains one visual. In this case, the column chart displays all the values for the
key influencer Theme that was selected in the left pane. The specific value of usability from the left pane is
shown in green. All the other values for Theme are shown in black.
7. Average line : The average is calculated for all possible values for Theme except usability (which is the
selected influencer). So the calculation applies to all the values in black. It tells you what percentage of the
other Themes had a low rating. In this case 11.35% had a low rating (shown by the dotted line).
8. Check box : Filters out the visual in the right pane to only show values that are influencers for that field. In
this example, this would filter the visual to usability, security and navigation.
NOTE
This video uses an earlier version of Power BI Desktop.
https://www.youtube.com/embed/fDb5zZ3xmxU
Your Product Manager wants you to figure out which factors lead customers to leave negative reviews about your
cloud service. To follow along, open the Customer Feedback PBIX file in Power BI Desktop. You also can download
the Customer Feedback Excel file for Power BI service or Power BI Desktop. Select either link and then select
Download from the GitHub page that opens.
NOTE
The Customer Feedback data set is based on [Moro et al., 2014] S. Moro, P. Cortez, and P. Rita. "A Data-Driven Approach to
Predict the Success of Bank Telemarketing." Decision Support Systems, Elsevier, 62:22-31, June 2014.
Selecting a bubble drills into the details of that segment. If you select Segment 1, for example, you find that it's
made up of relatively established customers. They've been customers for over 29 months and have more than four
support tickets. Finally, they're not publishers, so they're either consumers or administrators.
In this group, 74.3% of the customers gave a low rating. The average customer gave a low rating 11.7% of the time,
so this segment has a larger proportion of low ratings. It's 63 percentage points higher. Segment 1 also contains
approximately 2.2% of the data, so it represents an addressable portion of the population.
Adding counts
Sometimes an influencer can have a big impact but represent very little of the data. For example, Theme is
usability is the second biggest influencer for low ratings. However there might have only been a handful of
customers who complained about usability. Counts can help you prioritize which influencers you want to focus on.
You can turn counts on through the Analysis card of the formatting pane.
Once counts are turned on, you’ll see a ring around each influencer’s bubble, which represents the approximate
percentage of data that influencer contains. The more of the bubble the ring circles, the more data it contains. We
can see that Theme is usability contains a very small proportion of data.
You can also use the Sort by toggle in the bottom left of the visual to sort the bubbles by count first instead of
impact. Subscription Type is Premier is the top influencer based on count.
Having a full ring around the circle means the influencer contains 100% of the data. You can change the count type
to be relative to the maximum influencer using the Count type dropdown in the Analysis card of the formatting
pane. Now the influencer with the most amount of data will be represented by a full ring and all other counts will
be relative to it.
In the example below we are looking at the impact a continuous factor (year house was remodeled) has on house
price. The differences compared to how we analyze continuous influencers for categorical metrics are as follows:
The scatter plot in the right pane plots the average house price for each distinct value of year remodeled.
The value in the bubble shows by how much the average house price increases (in this case $2.87k) when the
year the house was remodeled increases by its standard deviation (in this case 20 years)
Finally, in the case of measures we are looking at the average year a house was built. The analysis here is as
follows:
The scatterplot in the right pane plots the average house price for each distinct value in the table
The value in the bubble shows by how much the average house price increases (in this case $1.35K) when the
average year increases by its standard deviation (in this case 30 years)
The visualization works by looking at patterns in the data for one group compared to other groups. For example, it
looks for customers who gave low ratings compared to customers who gave high ratings. If the data in your model
has only a few observations, patterns are hard to find. If the visualization doesn’t have enough data to find
meaningful influencers, it indicates that more data is needed to run the analysis.
We recommend that you have at least 100 observations for the selected state. In this case, the state is customers
who churn. You also need at least 10 observations for the states you use for comparison. In this case, the
comparison state is customers who don't churn.
If you are analyzing a numeric field you may want to switch from Categorical Analysis to Continuous Analysis
in the Formatting Pane under the Analysis card.
I see an error that when 'Analyze' is not summarized, the analysis always runs at the row level of its
parent table. Changing this level via 'Expand by' fields is not allowed. Why is that?
When analyzing a numeric or categorical column, the analysis always runs at the table level. For example, if you are
analyzing house prices and your table contains an ID column, the analysis will automatically run at the house ID
level.
When you are analyzing a measure or summarized column, you need to explicitly state at which level you would
like the analysis to run at. You can use Expand by to change the level of the analysis for measures and
summarized columns without adding new influencers. If House price was defined as a measure you could add the
house ID column to Expand by to change the level of the analysis.
I see an error that a field in Explain by isn't uniquely related to the table that contains the metric I'm
analyzing. Why is that?
The analysis runs on the table level of the field that's being analyzed. For example, if you analyze customer
feedback for your service, you might have a table that tells you whether a customer gave a high rating or a low
rating. In this case, your analysis is running at the customer table level.
If you have a related table that's defined at a more granular level than the table that contains your metric, you see
this error. Here's an example:
You analyze what drives customers to give low ratings of your service.
You want to see if the device on which the customer is consuming your service influences the reviews they give.
A customer can consume the service in multiple different ways.
In the following example, customer 10000000 uses both a browser and a tablet to interact with the service.
If you try to use the device column as an explanatory factor, you see the following error:
This error appears because the device isn't defined at the customer level. One customer can consume the service
on multiple devices. For the visualization to find patterns, the device must be an attribute of the customer. There are
several solutions that depend on your understanding of the business:
You can change the summarization of devices to count. For example, use count if the number of devices might
affect the score that a customer gives.
You can pivot the device column to see if consuming the service on a specific device influences a customer’s
rating.
In this example, the data was pivoted to create new columns for browser, mobile, and tablet (make sure you delete
and re-create your relationships in the modeling view after pivoting your data). You can now use these specific
devices in Explain by . All devices turn out to be influencers, and the browser has the largest effect on customer
score.
More precisely, customers who don't use the browser to consume the service are 3.79 times more likely to give a
low score than the customers who do. Lower down in the list, for mobile the inverse is true. Customers who use the
mobile app are more likely to give a low score than the customers who don’t.
The analysis runs on the table level of the field that's being analyzed. If you analyze customer churn, you might
have a table that tells you whether a customer churned or not. In this case, your analysis runs at the customer table
level.
Measures and aggregates are by default analyzed at the table level. If there were a measure for average monthly
spending, it would be analyzed at the customer table level.
If the customer table doesn't have a unique identifier, you can't evaluate the measure and it's ignored by the
analysis. To avoid this situation, make sure the table with your metric has a unique identifier. In this case, it's the
customer table and the unique identifier is customer ID. It’s also easy to add an index column by using Power
Query.
I see a warning that the metric I'm analyzing has more than 10 unique values and that this amount
might affect the quality of my analysis. Why is that?
The AI visualization can analyze categorical fields and numeric fields. In the case of categorical fields, an example
may be Churn is Yes or No, and Customer Satisfaction is High, Medium, or Low. Increasing the number of
categories to analyze means there are fewer observations per category. This situation makes it harder for the
visualization to find patterns in the data.
When analyzing numeric fields you have a choice between treating the numeric fields like text in which case you
will run the same analysis as you do for categorical data (Categorical Analysis ). If you have lots of distinct values
we recommend you switch the analysis to Continuous Analysis as that means we can infer patterns from when
numbers increase or decrease rather than treating them as distinct values. You can switch from Categorical
Analysis to Continuous Analysis in the Formatting Pane under the Analysis card.
To find stronger influencers, we recommend that you group similar values into a single unit. For example, if you
have a metric for price, you're likely to obtain better results by grouping similar prices into High, Medium, and Low
categories vs. using individual price points.
There are factors in my data that look like they should be key influencers, but they aren't. How can
that happen?
In the following example, customers who are consumers drive low ratings, with 14.93% of ratings that are low. The
administrator role also has a high proportion of low ratings, at 13.42%, but it isn't considered an influencer.
The reason for this determination is that the visualization also considers the number of data points when it finds
influencers. The following example has more than 29,000 consumers and 10 times fewer administrators, about
2,900. Only 390 of them gave a low rating. The visual doesn’t have enough data to determine whether it found a
pattern with administrator ratings or if it’s just a chance finding.
What are the data point limits for key influencers? We run the analysis on a sample of 10,000 data points.
The bubbles on the one side show all the influencers that were found. The column charts and scatterplots on the
other side abide by the sampling strategies for those core visuals.
How do you calculate key influencers for categorical analysis?
Behind the scenes, the AI visualization uses ML.NET to run a logistic regression to calculate the key influencers. A
logistic regression is a statistical model that compares different groups to each other.
If you want to see what drives low ratings, the logistic regression looks at how customers who gave a low score
differ from the customers who gave a high score. If you have multiple categories, such as high, neutral, and low
scores, you look at how the customers who gave a low rating differ from the customers who didn't give a low
rating. In this case, how do the customers who gave a low score differ from the customers who gave a high rating
or a neutral rating?
The logistic regression searches for patterns in the data and looks for how customers who gave a low rating might
differ from the customers who gave a high rating. It might find, for example, that customers with more support
tickets give a higher percentage of low ratings than customers with few or no support tickets.
The logistic regression also considers how many data points are present. For example, if customers who play an
admin role give proportionally more negative scores but there are only a few administrators, this factor isn't
considered influential. This determination is made because there aren't enough data points available to infer a
pattern. A statistical test, known as a Wald test, is used to determine whether a factor is considered an influencer.
The visual uses a p-value of 0.05 to determine the threshold.
How do you calculate key influencers for numeric analysis?
Behind the scenes, the AI visualization uses ML.NET to run a linear regression to calculate the key influencers. A
linear regression is a statistical model that looks at how the outcome of the field you are analyzing changes based
on your explanatory factors.
For example, if we are analyzing house prices, a linear regression will look at the impact having an excellent kitchen
will have on the house price. Do houses with excellent kitchens generally have lower or higher house prices
compared to houses without excellent kitchens?
The linear regression also considers the number of data points. For example, if houses with tennis courts have
higher prices but we have very few houses that have a tennis court, this factor is not considered influential. This
determination is made because there aren't enough data points available to infer a pattern. A statistical test, known
as a Wald test, is used to determine whether a factor is considered an influencer. The visual uses a p-value of 0.05
to determine the threshold.
How do you calculate segments?
Behind the scenes, the AI visualization uses ML.NET to run a decision tree to find interesting subgroups. The
objective of the decision tree is to end up with a subgroup of data points that's relatively high in the metric you're
interested in. This could be customers with low ratings or houses with high prices.
The decision tree takes each explanatory factor and tries to reason which factor gives it the best split. For example,
if you filter the data to include only large enterprise customers, will that separate out customers who gave a high
rating vs. a low rating? Or perhaps is it better to filter the data to include only customers who commented about
security?
After the decision tree does a split, it takes the subgroup of data and determines the next best split for that data. In
this case, the subgroup is customers who commented on security. After each split, it also considers whether it has
enough data points for this group to be representative enough to infer a pattern from or whether it's an anomaly in
the data and not a real segment. Another statistical test is applied to check for the statistical significance of the split
condition with p-value of 0.05.
After the decision tree finishes running, it takes all the splits, such as security comments and large enterprise, and
creates Power BI filters. This combination of filters is packaged up as a segment in the visual.
Why do cer tain factors become influencers or stop being influencers as I move more fields into the
Explain by field?
The visualization evaluates all explanatory factors together. A factor might be an influencer by itself, but when it's
considered with other factors it might not. Suppose you want to analyze what drives a house price to be high, with
bedrooms and house size as explanatory factors:
By itself, more bedrooms might be a driver for house prices to be high.
Including house size in the analysis means you now look at what happens to bedrooms while house size
remains constant.
If house size is fixed at 1,500 square feet, it's unlikely that a continuous increase in the number of bedrooms will
dramatically increase the house price.
Bedrooms might not be as important of a factor as it was before house size was considered.
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that
the report is saved in Premium capacity. See sharing reports.
Next steps
Combo charts in Power BI
Visualization types in Power BI
Create key performance indicator (KPI) visualizations
8/13/2020 • 3 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A Key Performance Indicator (KPI) is a visual cue that communicates the amount of progress made toward a
measurable goal. For more about KPIs, see Key Performance Indicators (KPIs) in PowerPivot.
KPI requirements
A designer bases a KPI visual on a specific measure. The intention of the KPI is to help you evaluate the current
value and status of a metric against a defined target. A KPI visual requires a base measure that evaluates to a value,
a target measure or value, and a threshold or goal.
A KPI dataset needs to contain goal values for a KPI. If your dataset doesn't contain goal values, you can create
them by adding an Excel sheet with goals to your data model or PBIX file.
Prerequisites
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
IMPORTANT
Once you convert the visualization to a KPI, there's no option to sort. You must sort it correctly now.
4. Convert the visual to a KPI by selecting the KPI icon from the Visualization pane.
5. To add a goal, drag Total Units Last Year to the Target goals field.
6. Optionally, format the KPI by selecting the paint roller icon to open the Formatting pane.
Indicator - controls the indicator’s display units and decimal places.
Trend axis - when set to On , the visual shows the trend axis as the background of the KPI visual.
Goals - when set to On , the visual shows the goal and the distance from the goal as a percentage.
Color coding > Direction - people consider some KPIs better for higher values and consider some
better for lower values. For example, earnings versus wait time. Typically a higher value of earnings is
better versus a higher value of wait time. Select high is good and, optionally, change the color
settings.
KPIs are also available in the Power BI service and on your mobile devices. It gives you the option to be always
connected to your business's heartbeat.
Next steps
Tips and Tricks for Power BI Map visualizations
Visualization types in Power BI
More questions? Try the Power BI Community
Create matrix visualizations in Power BI
8/13/2020 • 10 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
The matrix visual is similar to a table. A table supports two dimensions and the data is flat, meaning duplicate
values are displayed and not aggregated. A matrix makes it easier to display data meaningfully across multiple
dimensions -- it supports a stepped layout. The matrix automatically aggregates the data and enables drill down.
You can create matrix visuals in Power BI Desktop reports and cross-highlight elements within the matrix with
other visuals on that report page. For example, you can select rows, columns, and even individual cells and cross-
highlight. Also, individual cells and multiple cell selections can be copied and pasted into other applications.
There are many features associated with the matrix, and we'll go through them in the following sections of this
article.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
In this example, each row in the matrix visual farthest to the right is showing the Amount for each salesperson/date
combination. However, since a salesperson shows up against multiple dates, the numbers can appear more than
once. Thus, the accurate total from the underlying data, and a simple addition of the visible values, do not equate.
This is a common pattern when the value you’re summing is on the ‘one’ side of a one-to-many relationship.
When you look at totals and subtotals, remember that those values are based on the underlying data. They aren't
solely based on the visible values.
You can also add +/- buttons to the row headers through the formatting pane under the Row headers card. By
default, the icons will match the formatting of the row header, but you can customize the icons’ colors and sizes
separately if you want.
Once the icons are turned on, they work similar to PivotTable icons in Excel.
The expansion state of the matrix will save with your report. A matrix can be pinned to a dashboard expanded or
collapsed. When that dashboard tile is selected, and the report opens, the expansion state can still be changed in
the report.
NOTE
If you're building a report on top of an Analysis Services multidimensional model, there are some special considerations for
expand/collapse if the model uses the Default Member feature. For more information see Work with multidimensional
models in Power BI
Similar to the drill and expand behavior in other visuals, selecting those buttons lets us drill down (or back up)
through the hierarchy. In this case, we can drill down from Sales stage to Opportunity size, as shown in the
following image, where the drill down one level icon (the pitchfork) has been selected.
In addition to using those icons, you can select any of those row headers and drill down by choosing from the
menu that appears.
Notice there are a few options from the menu that appears, which generate different results:
Selecting Drill Down expands the matrix for that row level, excluding all other row headings except the row
header that was selected. In the following image, Proposal > Drill Down was selected. Notice that other top-level
rows no longer appear in the matrix. This way to drill is a useful feature, and becomes especially cool when we get
to the cross-highlighting section.
Select the Drill up icon to get back to the previous top-level view. If you then select Proposal > Show Next
Level , you get an ascending listing of all the next-level items (in this case, the Opportunity size field), without the
higher-level hierarchy categorization.
Select the Drill up icon in the upper-left corner to have the matrix show all top-level categories, then select
Proposal > Expand to next level , to see all the values for both levels of the hierarchy - Sales stage and
Opportunity size.
You can also use the Expand menu item to control the display further. For example, select Proposal > Expand >
Selection . Power BI displays one total row for each Sales stage and all the Opportunity size options for Proposal.
To drill down on columns, select Columns from the Drill on menu that can be found in the upper left corner of the
matrix. Select the East region and choose Drill Down .
When you select Drill Down , the next level of the column hierarchy for Region > East displays, which in this case
is Opportunity count. The other region is hidden.
The rest of the menu items work on columns in the same way they do for rows (see the previous section, Drill
down on row headers ). You can Show Next Level and Expand to next level with columns just as you can
with rows.
NOTE
The drill down and drill up icons in the upper-left of the matrix visual only apply to rows. In order to drill down on columns,
you must use the right-click menu.
In the following image, you see a matrix visual, with stepped layout in action. Notice the category Computers has
its subcategories (Computers Accessories, Desktops, Laptops, Monitors, and so on) slightly indented, providing a
cleaner and much more condensed visual.
You can easily adjust the stepped layout settings. With the matrix visual selected, in the Format section (the paint
roller icon) of the Visualizations pane, expand the row headers section. You have two options: the stepped layout
toggle (which turns it on or off), and the stepped layout indentation (specifies the indentation amount, in pixels).
If you turn off stepped layout, Power BI shows the subcategories in another column rather than indented beneath
the parent category.
If you want to turn subtotals and grand total off, in the format section of the visualizations pane, expand the
Subtotals card. Turn the row subtotals slider to Off . When you do so, the subtotals aren't shown.
The same process applies for column subtotals.
Adjust the conditions, icons, and colors for your matrix and select OK . In this example, we used a red flag for low
values, purple circle for high values, and yellow triangle for everything in between.
Cross-highlighting with matrix visuals
With the matrix visual, you can select any elements in the matrix as the basis for cross-highlighting. Select a
column in a matrix and Power BI highlights the column, as does any other visuals on the report page. This type of
cross-highlighting has been a common feature of other visuals and data point selections, so now the matrix visual
offers the same function.
In addition, using Ctrl+Click also works for cross-highlighting. For example, in the following image a collection of
subcategories were selected from the matrix visual. Notice how items that weren't selected from the visual are
grayed out, and how the other visuals on the page reflect the selections made in the matrix visual.
To copy more than a single cell, select a range of cells or use CTRL to select one or more cells.
To make a copy of the visual itself containing only your selected cells, select one or more cells using CTRL,
right-click, and choose Copy visual
The copy will be another matrix visualization, but contain only your copied data.
Setting a matrix value as a custom URL
If you have a column or measure that contains website URLs, you can use conditional formatting to apply those
URLs to fields as active links. You’ll find this option under the Conditional formatting card in the formatting
pane.
Turn Web URL On, and select a field to use as the URL for the column. Once applied, the values in that field
(column) become active links. Hover to see the link, and select to jump to that page.
For more information, see Conditional table formatting
Shading and font colors with matrix visuals
With the matrix visual, you can apply conditional formatting (colors and shading and data bars) to the background
of cells within the matrix, and you can apply conditional formatting to the text and values themselves.
To apply conditional formatting, select the matrix visual and open the Format pane. Expand the Conditional
formatting card and for Background color , Font color , or Data bars , turn the slider to On . Turning on one of
these options displays a link for Advanced controls, which lets you customize the colors and values for the color
formatting.
Select Advanced controls to display a dialog, which lets you make adjustments. This example shows the dialog for
Data bars .
Considerations and troubleshooting
If the text data in your matrix's cells or headers contain new line characters, those characters will be ignored
unless you toggle on the 'Word Wrap' option in the element's associated formatting pane card.
Next steps
Power Apps visual for Power BI
Visualization types in Power BI
Tutorial: Embed a Power Apps visual in a Power BI
report
8/13/2020 • 2 minutes to read • Edit Online
In this tutorial, you use the Power Apps visual to create a new app that is embedded in a sample Power BI report.
This app interacts with other visuals in that report.
If you don't have a Power Apps subscription, create a free account before you begin.
In this tutorial, you learn how to:
Add a Power Apps visual to a Power BI report
Work in Power Apps to create a new app that uses data from the Power BI report
View and interact with the Power Apps visual in the report
Prerequisites
Google Chrome or Microsoft Edge browser
A Power BI subscription, with the Opportunity Analysis Sample installed
An understanding of how to create apps in Power Apps and how to edit Power BI reports
4. In the Fields pane, select Name , Product Code , and Sales Stage .
5. On the Power Apps visual, select the Power Apps environment where you want to create the app, then select
Create new .
In Power Apps Studio, you see that a basic app is created, with a gallery that shows one of the fields you
selected in Power BI.
6. Resize the gallery so it takes up only half of the screen.
7. In the left pane, select Screen1 , then set the screen's Fill property to "LightBlue" (so it shows up better in
the report).
10. Drag the label to the bottom of your visual. Set the Text property to
"Opportunity Count: " & CountRows(Gallery1.AllItems) . It now shows the total number of opportunities in
the data set.
11. Save the app with the name "Opportunities app".
Notice that the opportunity count in the app matches the count in the upper left of the report. You can select other
items in the report, and the data in the app updates.
Clean up resources
If you don't want to use the Opportunity Analysis Sample anymore, you can delete the dashboard, report, and
dataset.
Next steps
Q&A visual
Tutorial: Embed a Power Apps visual in a Power BI report
Create and use R visuals in Power BI
8/13/2020 • 7 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
R visuals currently can only be created in Power BI Desktop , and then published to the Power BI service. For more
information on creating R visuals, see Create Power BI visuals using R .
NOTE
The R programming language is among the most widely used programming languages by statisticians, data scientists, and
business analysts. The R language has an open source community that offers over 7,000 add-on packages, as well as widely
used R User Groups. The version of R deployed in the Power BI service is Microsoft R 3.4.4.
The following image shows a Power BI dashboard with a collection of R visuals used for advanced analytics.
R visuals are created in a Power BI Desktop report, like the report shown in the following image.
Once the report is created in Power BI Desktop , you can publish the report containing one or more R visuals to
the Power BI service.
In the service, not all of the R packages are supported. See supported packages at the end of this article for the list
of packages currently supported in the Power BI service.
You can download this sample Power BI Desktop file (.pbix file) that contains a few R visuals to see how this works,
and to experiment.
R visuals that are created in Power BI Desktop , and then published to the Power BI service, for the most part
behave like any other visual in the Power BI service; you can interact, filter, slice, and pin them to a dashboard, or
share them with others. For more information about sharing dashboards and visuals, see share a dashboard with
colleagues and others. One difference from other visuals is that R visuals cannot show tool tips and cannot be used
to filter other visuals.
As you can see in the following image, R visuals in the Power BI service, either in dashboards or reports, largely
appear and behave like any other visual, and users don't need to be aware of the underlying R script that created
the visual.
R scripts security
R visuals are created from R scripts, which could potentially contain code with security or privacy risks.
These risks mainly exist in the authoring phase when the script author run the script on their own computer.
The Power BI service applies a sandbox technology to protect users and the service from security risks.
This sandbox approach imposes some restrictions on the R scripts running in the Power BI service, such as
accessing the Internet, or accessing to other resources that are not required to create the R visual.
As another example, the following image shows the error message that appears when an R script failed to run
properly due to a missing R package in Azure.
Licensing
R visuals require a Power BI Pro license to render in reports, refresh, filter, and cross-filter. For more information
about Power BI Pro licenses, and how they differ from free licenses, see Power BI Pro content - what is it?
Free users of Power BI can only consume tiles shared with them in Premium workspaces. See purchasing Power BI
Pro for more information.
The following table describes R visuals capabilities based on licensing.
Known Limitations
R visuals in the Power BI service have a few limitations:
R visuals support is limited to the packages identified in Learn which R packages are supported. There
currently is no support for custom packages.
Data size limitations – data used by the R visual for plotting is limited to 150,000 rows. If more than 150,000
rows are selected, only the top 150,000 rows are used and a message is displayed on the image.
Additionally, the input data has a limit of 250 MB.
Resolution - all R visuals are displayed at 72 DPI.
Plotting device - only plotting to the default device is supported.
Calculation time limitation – if an R visual calculation exceeds 60 seconds the script times out, resulting in an
error.
R visuals are refreshed upon data updates, filtering, and highlighting. However, the image itself is not
interactive and does not support tool tips.
R visuals respond to highlighting other visuals, but you cannot click on elements in the R visual in order to
cross filter other elements.
R visuals are currently not supported for the Time data type. Please use Date/Time instead.
R visuals do not display when using Publish to web .
R visuals do not support renaming input columns. Columns will be referred to by their original name during
script execution.
R visuals currently do not print with dashboard and reports printing
R visuals are currently not supported in the DirectQuery mode of Analysis Services
R visuals have the ability to convert text labels into graphical elements. Doing so in the Power BI service
requires the following additional step:
Add the following line at the beginning of the R script:
powerbi_rEnableShowText = 1
Chinese, Japanese, and Korean fonts require all of the additional following steps to work properly in the
Power BI service:
First, install the R package showtext and all of its dependencies. You can do this by running the following
script:
install.packages("showtext")
powerbi_rEnableShowTextForCJKLanguages = 1
Overview of R packages
R packages are collections of R functions, data, and compiled code that are combined in a well-defined format.
When R is installed, it comes with a standard set of packages, and other packages are available for download and
installation. Once installed, an R package must be loaded into the session to be used. The primary source of free R
packages is CRAN, the Comprehensive R Archive Network.
Power BI Desktop can use any type of R packages without limitation. You can install R packages for use in Power
BI Desktop on your own (using the RStudio IDE, for example).
R visuals in the Power BI ser vice are supported by the packages found in the Suppor ted Packages section
found in this article. If you don't find a package you're interested in among the supported packages list, you can
request the support of the package. See R packages in the Power BI service for information on how to request
support.
Requirements and Limitations of R packages
There are a handful of requirements and limitations for R packages:
The Power BI service, for the most part, supports R packages with free and open-source software licenses
such as GPL-2, GPL-3, MIT+, and so on.
The Power BI service supports packages published in CRAN. The service does not support private or custom
R packages. We encourage users to make their private packages available on CRAN prior to requesting the
package be available in the Power BI service.
For Power BI Desktop has two variations for R packages:
For R visuals, you can install any package, including custom R packages
For Custom R visuals, only public CRAN packages are supported for auto-installation of the packages
For security and privacy reasons, we currently don't support R packages that provide client-server queries
over the World-Wide Web (such as RgoogleMaps) in the service. Networking is blocked for such attempts.
See R packages in the Power BI service for a list of supported and unsupported R packages.
The approval process for including a new R package has a tree of dependencies; some dependencies
required to be installed in the service cannot be supported.
Supported Packages:
For a long list of supported R packages (and the short list of unsupported packages) please see the following
article:
R packages in the Power BI service
Create Power BI visuals using R
8/13/2020 • 6 minutes to read • Edit Online
With Power BI Desktop, you can use R to visualize your data. R is a language and environment for statistical
computing and graphics.
Install R
By default, Power BI Desktop doesn't include, deploy, or install the R engine. To run R scripts in Power BI Desktop,
you must separately install R on your local computer. You can download and install R for free from many locations,
including the Revolution Open download page, and the CRAN Repository. The current release of R scripting in
Power BI Desktop supports Unicode characters as well as spaces (empty characters) in the installation path.
3. In the Values section of the Visualization pane, drag fields from the Fields pane that you want to
consume in your R script, just as you would with any other Power BI Desktop visual. Alternatively, you can
also select the fields directly in the Fields pane.
Only fields that you've added to the Values section are available to your R script. You can add new fields or
remove unneeded fields from the Values section while working on your R script in the R script editor .
Power BI Desktop automatically detects which fields you've added or removed.
NOTE
The default aggregation type for R visuals is do not summarize.
4. Now you can use the data you selected to create a plot:
As you select fields, the R script editor generates supporting R script binding code for those fields in
the gray section along the top of the editor pane.
If you remove a field, the R script editor automatically removes the supporting code for that field.
In the example shown in the following image, three fields are selected: hp, gear, and drat. As a result of those
selections, the R script editor generates binding code, which is summarized as follows:
Create a dataframe called dataset , which is comprised of the different fields selected by the user.
The default aggregation is: do not summarize.
Similar to table visuals, fields are grouped and duplicate rows appear only once.
TIP
In certain cases, you may not want automatic grouping to occur, or you may want all rows to appear, including
duplicates. In that case, add an index field to your dataset, which causes all rows to be considered unique and
prevents grouping.
The generated dataframe is named dataset , and you access selected columns by their respective names. For
example, access the gear field by adding dataset$gear to your R script. For fields with spaces or special
characters, use single quotes.
5. With the dataframe automatically generated by the fields you selected, you’re ready to write an R script,
which Power BI Desktop plots to the R default device. After you've completed the script, select Run script
on the right side of the R script editor title bar.
When you select Run script , Power BI Desktop identifies the plot and presents it on the canvas. Because the
process is executed on your local R installation, make sure the required R packages are installed.
Power BI Desktop replots the visual when any of the following events occur:
You select Run script from the R script editor title bar.
A data change occurs because of data refreshing, filtering, or highlighting.
The following image shows an example of the correlation plot code, which plots the correlations
between attributes of different types of cars.
6. To get a larger view of the visualizations, minimize the R script editor . Like other visuals in Power BI
Desktop, you can cross filter the correlation plot by selecting a specific section (such as sports cars) in the
donut-shaped visual (the round visual on the right).
7. Modify the R script to customize the visual, and take advantage of the power of R by adding parameters to
the plotting command.
The original plotting command is:
corrplot(M, method = "circle", tl.cex=0.6, tl.srt = 45, tl.col = "black", type= "upper", order="hclust")
As a result, the R visual now plots circles, only considers the upper half, and reorders the matrix to cluster
correlated attributes.
When you execute an R script that results in an error, an error message displays on the canvas instead of the
R visual plot. For details on the error, select See details from the R visual error.
R scripts security
R visuals are created from R scripts, which might contain code with security or privacy risks. When attempting to
view or interact with an R visual for the first time, a user is presented with a security warning message. Only enable
R visuals if you trust the author and source, or after you review and understand the R script.
Known limitations
R visuals in Power BI Desktop have the following limitations:
Data sizes: Data used by an R visual for plotting is limited to 150,000 rows. If more than 150,000 rows are
selected, only the top 150,000 rows are used and a message is displayed on the image.
Resolution: All R visuals are displayed at 72 DPI.
Plotting device: Only plotting to the default device is supported.
Calculation times: If an R visual calculation exceeds five minutes, it causes a time-out error.
Relationships: As with other Power BI Desktop visuals, if data fields from different tables with no defined
relationship between them are selected, an error occurs.
Refreshes: R visuals are refreshed upon data updates, filtering, and highlighting. However, the image itself
isn't interactive and can't be the source of cross-filtering.
Highlights: R visuals respond if you highlight other visuals, but you can't select elements in the R visual to
cross filter other elements.
Display devices: Only plots that are plotted to the R default display device are displayed correctly on the
canvas. Avoid explicitly using a different R display device.
Column renaming: R visuals do not support renaming input columns. Columns will be referred to by their
original name during script execution.
RRO installations: In this release, the 32-bit version of Power BI Desktop doesn't automatically identify RRO
installations; you must manually provide the path to the R installation directory in Options and settings >
Options > R Scripting .
Next steps
For more information about R in Power BI, see the following articles:
Running R Scripts in Power BI Desktop
Use an external R IDE with Power BI
Use R-powered Power BI visuals in Power BI
8/13/2020 • 5 minutes to read • Edit Online
In Power BI Desktop and the Power BI ser vice , you can use R-powered Power BI visuals without any knowledge
of R and without any R scripting. This enables you to harness the analytic and visual power of R visuals, and R
scripts, without learning R or doing any programming yourself.
To use R-powered Power BI visuals, you first select and download the R custom visual you're interested in using
from the AppSource gallery of Power BI visuals for Power BI.
The following sections describe how to select, load, and use R-powered visuals in Power BI Desktop .
3. Select the visual you're interested in using from the gallery, and you're taken to a page that describes the
visual. Select the Get it now button to download.
NOTE
For authoring in Power BI Desktop , you need to have R installed on your local machine. But, when users want to
view an R-powered visual in the Power BI ser vice they do not need R installed locally.
You do not need to install R to use R-powered Power BI visuals in the Power BI ser vice , however, if you
want to use R-powered Power BI visuals in Power BI Desktop you must install R on the local machine. You
can download R from the following locations:
CRAN
MRO
4. Once the visual is downloaded (which is like downloading any file from your browser), go to Power BI
Desktop and click More options (...) in the Visualizations pane, and select Impor t from file .
5. You're warned about importing a custom visual, as shown in the following image:
6. Navigate to where the visual file was saved, then select the file. Power BI Desktop custom visualizations
have the .pbiviz extension.
7. When you return to Power BI Desktop, you can see the new visual type in the Visualizations pane.
8. When you import the new visual (or open a report that contains an R-powered custom visual), Power BI
Desktop installs the required R packages.
9. From there, you can add data to the visual just as you would any other Power BI Desktop visual. When
complete, you can see your finished visual on the canvas. In the following visual, the Forecasting R-
powered visual was used with United Nations (UN) birth rate projections (the visual on the left).
Like any other Power BI Desktop visual, you can publish this report with its R-powered visuals to the
Power BI ser vice and share it with others.
Check the library often, since new visuals are being added all the time.
Get Power BI visuals from within Power BI Desktop
1. You can also get Power BI visuals from within Power BI Desktop . In Power BI Desktop click the ellipsis
(the ...) in the Visualizations pane, and select Impor t from marketplace .
2. When you do so, the Power BI Visuals dialog appears, where you can scroll through the available Power BI
visuals and select what you would like. You can search by name, select a category, or just scroll through the
available visuals. When you're ready, just select Add to add the custom visual to Power BI Desktop .
3. Install R packages manually, using any R console. The steps for this approach follow:
a. Download the R-powered visual installation script and save that file to a local drive.
b. From the R console, run the following:
source("C:/Users/david/Downloads/ScriptInstallPackagesForForecastWithWorkarounds.R")
Next steps
Take a look at the following additional information about R in Power BI.
Power BI visuals gallery
Running R Scripts in Power BI Desktop
Create R visuals in Power BI Desktop
Use an external R IDE with Power BI
Radial gauge charts in Power BI
8/13/2020 • 3 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A radial gauge chart has a circular arc and shows a single value that measures progress toward a goal or a Key
Performance Indicator (KPI). The line (or needle) represents the goal or target value. The shading represents the
progress toward that goal. The The value inside the arc represents the progress value. Power BI spreads all possible
values evenly along the arc, from the minimum (left-most value) to the maximum (right-most value).
In this example, you're a car retailer tracking the sales team's average sales per month. The needle represents a 140
cars sales goal. The minimum possible average sales is 0 and the maximum is 200. The blue shading shows that
the team is averaging approximately 120 sales this month. Luckily, there's still another week to reach the goal.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
Prerequisites
This tutorial uses the Financial sample Excel file.
1. From the upper left section of the menubar, select Get Data > Excel
2. Find your copy of the Financial sample Excel file
Depending on when you download the Financial Sample file, you may see numbers that don't match
these numbers.
TIP
By default, Power BI creates a gauge chart where it assumes the current value (in this case, Average of Gross
Sales ) is at the halfway point on the gauge. Since the Average of Gross Sales value is $182.76K, the start value
(Minimum) is set to 0 and the end value (Maximum) is set to double the current value.
NOTE
You can also manually enter a target value. See the Use manual format options to set Minimum, Maximum, and
Target values section.
4. Clear the COGS option in the Fields pane to remove the target value.
5. When the Target field appears under Gauge axis , enter a value.
6. Optionally, continue formatting your gauge chart.
Once you're done with these steps, you'll have a gauge chart that looks something like this:
Next step
Key Performance Indicator (KPI) visuals
Visualization types in Power BI
More questions? Try the Power BI Community
Create ribbon charts in Power BI
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
You can create ribbon charts to visualize data, and quickly discover which data category has the highest rank
(largest value). Ribbon charts are effective at showing rank change, with the highest range (value) always displayed
on top for each time period.
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity. See sharing reports.
Prerequisites
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
Ribbon charts connect a category of data over the visualized time continuum using ribbons, enabling you to
see how a given category ranks throughout the span of the chart's x-axis (usually the timeline).
2. Select fields for Axis , Legend , and Value . In this example, we've selected: Store > OpenDate , Item >
Categor y , and Sales > This year sales > Value .
Since the dataset contains data for only one year, we removed the Year and Quar ter field from the Axis
well.
3. The ribbon chart shows rank for every month. Notice how rank changes across time. For example, the Home
category moves from second to fifth from February to March.
Format a ribbon chart
When you create a ribbon chart, you have formatting options available in the Format section of the
Visualizations pane. The formatting options for ribbon charts are similar to those for a stacked column chart,
with additional formatting options that are specific to the ribbons.
These formatting options for ribbon charts let you make adjustments.
Spacing lets you adjust how much space appears between ribbons. The number is the percentage of the
column's maximum height.
Match series color allows you to match the color of the ribbons with the series color. When set to off , ribbons
are gray.
Transparency specifies how transparent the ribbons are, with the default set to 30.
Border lets you place a dark border on the top and bottom of the ribbons. By default, borders are off.
Since the ribbon chart does not have y-axis labels, you may want to add data labels. From the Formatting pane,
select Data labels .
Set formatting options for your data labels. In this example, we've set the text color to white and display units to
thousands.
Next steps
Scatter charts and bubble charts in Power BI
Visualization types in Power BI
Scatter charts, bubble charts, and dot plot charts in
Power BI
8/13/2020 • 6 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A scatter chart always has two value axes to show: one set of numerical data along a horizontal axis and another
set of numerical values along a vertical axis. The chart displays points at the intersection of an x and y numerical
value, combining these values into single data points. Power BI may distribute these data points evenly or unevenly
across the horizontal axis. It depends on the data the chart represents.
You can set the number of data points, up to a maximum of 10,000.
TIP
In a scatter chart, you can adjust the independent scales of the axes to reveal more information about the grouped
values.
To show patterns in large sets of data, for example by showing linear or non-linear trends, clusters, and
outliers.
To compare large numbers of data points without regard to time. The more data that you include in a
sScatter chart, the better the comparisons that you can make.
In addition to what Scatter charts can do for you, bubble charts are a great choice:
If your data has three data series that each contains a set of values.
To present financial data. Different bubble sizes are useful to visually emphasize specific values.
To use with quadrants.
Dot plot charts
A dot plot chart is similar to a bubble chart and scatter chart, but is instead used to plot categorical data along the
X-Axis.
They're a great choice if you want to include categorical data along the X-Axis.
Prerequisites
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
Create a scatter chart
1. Start on a blank report page and from the Fields pane, select these fields:
Sales > Sales Per Sq Ft
Sales > Total Sales Variance %
District > District
2. In the Visualization pane, select to convert the cluster column chart to a scatter chart.
2. Hover over a bubble. The size of the bubble reflects the value of This Year Sales .
3. To set the number of data points to show in your bubble chart, in the Format section of the Visualizations
pane, expand General , and adjust the Data Volume .
You can set the max data volume to any number up to 10,000. As you get into the higher numbers, we
suggest testing first to ensure good performance.
NOTE
More data points can mean a longer loading time. If you do choose to publish reports with limits at the higher end
of the scale, make sure to test out your reports across the web and mobile as well. You want to confirm that the
performance of the chart matches your users' expectations.
4. Continue formatting the visualization colors, labels, titles, background, and more. To improve accessibility,
consider adding marker shapes to each line. To select the marker shape, expand Shapes , select Marker
shape , and select a shape.
Change the marker shape to a diamond, triangle, or square. Using a different marker shape for each line
makes it easier for report consumers to differentiate lines (or areas) from each other.
5. Open the Analytics pane to add additional information to your visualization.
Add a Median line. Select Median line > Add . By default, Power BI adds a median line for Sales per
sq ft. This isn't very helpful since we can see that there are 10 data points and know that the median
will be created with five data points on each side. Instead, switch the Measure to Total sales variance
%.
Add symmetry shading to show which points have a higher value of the x-axis measure compared to
the y-axis measure, and vice-versa. When you turn symmetry shading on in the Analytics pane,
Power BI shows you the background of your scatter chart symmetrically based on your current axis
upper and lower boundaries. This is a very quick way to identify which axis measure a data point
favors, especially when you have a different axis range for your x- and y-axis.
a. Change the Total sales variance % field to Gross margin last year %
b. From the Analytics pane, add Symmetr y shading . We can see from the shading that Hosiery (the
green bubble in the pink shaded area) is the only category that favors gross margin rather than its
sales per store square footage.
Continue exploring the Analytics pane to discover interesting insights in your data.
Create a dot plot chart
To create a dot plot chart, replace the numerical X-Axis field with a categorical field.
From the X-Axis pane, remove Sales per sq ft and replace it with District > District Manager .
Add a field to the Details well to tell Power BI how to group the values. The field must be unique for each point
you want to plot. A simple row number or ID field will do.
If you don't have that in your data, create a field that concatenates your X and Y values together into something
unique per point:
To create a new field, use the Power BI Desktop Query Editor to add an Index Column to your dataset. Then add this
column to your visualization's Details well.
Next steps
You might also be interested in the following articles:
High-density sampling in Power BI scatter charts
Visualization types in Power BI
Tips to sort and distribute data plots in Power BI reports
More questions? Try the Power BI Community
High-density sampling in Power BI scatter charts
8/13/2020 • 5 minutes to read • Edit Online
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in this
article are from Power BI Desktop.
Beginning with the September 2017 release of the Power BI Desktop , a new sampling algorithm is available that
improves how scatter charts represent high-density data.
For example, you might create a scatter chart from your organization's sales activity, each store having tens of
thousands of data points each year. A scatter chart of such information would sample data (select a meaningful
representation of that data to illustrate how sales occurred over time) from the available data, and create a scatter
chart that represents the underlying data. This is common practice in high-density scatter charts. Power BI has
improved its sampling of high-density data, the details of which are described in this article.
NOTE
Scatter charts using the High-density Sampling algorithm are best plotted on square visuals, as with all scatter charts.
NOTE
When using the High-density Sampling algorithm for scatter charts, accurate distribution of the data is the goal, and
implied visual density is not the goal. For example, you might see a scatter chart with lots of circles that overlap (density) in a
certain area, and imagine many data points must be clustered there; since the High-density Sampling algorithm can use
one circle to represent many data points, such implied visual density (or "clustering") will not show up. To get more detail in a
given area, you can use slicers to zoom in.
In addition, data points that cannot be plotted (such as nulls or text values) are ignored, so another value that can
be plotted is selected, further ensuring the true shape of the scatter chart is maintained.
When the standard algorithm for scatter charts is used
There are circumstances under which High-density Sampling cannot be applied to a scatter chart and the
original algorithm is used. Those circumstances are the following:
If you right-click a value under Details and set it to Show items with no data from the menu, the scatter
chart will revert to the original algorithm.
Any values in the Play axis will result in the scatter chart reverting to the original algorithm.
If both X and Y axes are missing on a scatter chart, the chart reverts to the original algorithm.
Using a Ratio line in the Analytics pane results in the chart reverting to the original algorithm.
How to turn on high-density sampling for a scatter chart
To turn on High-density Sampling , select a scatter chart, go to the Formatting pane, expand the General card,
and near the bottom of that card, slide the High-density Sampling toggle slider to On .
NOTE
Once the slider is turned on, Power BI will attempt to use the High-density Sampling algorithm whenever possible. When
the algorithm cannot be used (for example, you place a value in the Play axis), the slider stays in the On position even though
the chart has reverted to the standard algorithm. If you then remove a value from the Play axis (or conditions change to
enable use of the high-density sampling algorithm), the chart will automatically use high-density sampling for that chart
because the feature is active.
NOTE
Data points are grouped or selected by the index. Having a legend does not affect sampling for the algorithm, it only affects
the ordering of the visual.
Next steps
For more information about high-density sampling in other charts, see the following article.
High-density line sampling in Power BI
Create Shape Map visualizations in Power BI Desktop
(preview)
8/13/2020 • 10 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
Create a Shape Map visual to compare regions on a map using color. Unlike the Map visual, Shape Map can't
show precise geographical locations of data points on a map. Instead, its main purpose is to show relative
comparisons of regions on a map by coloring them differently.
Shape Map visuals are based on TopoJSON maps, which have the compelling ability to use custom maps that you
can create. Examples of custom maps are: geographical, seating arrangements, floor plans, and others. The ability
to use custom maps is not available in this Preview release of Shape Map .
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the
report is saved in Premium capacity.
NOTE
See the section titled Getting Map Data , below, for information on how to quickly get map data to test Shape
Map .
2. In the Format settings pane, expand Shape , and select from the Standard Maps drop-down to show your
data. At this point, the rendering appears, as shown in the following image.
NOTE
In the Region Keys section at the end of this article is a collection of tables that have map regions keys you can use
to test the Shape Map visual.
3. You can then modify the map using the Formatting options such as Default color , Zoom , and more. And,
you can also add a category data column to the Legend bucket, and classify the map regions based on
categories.
If you'd like to experiment with this dataset and visualization, you can download the original PBIX file that was
used to generate this report using the following link.
Custom shape map demo .PBIX file
If your data has multiple columns, you will need to use an editor like Excel to paste the data, then copy each data
column separately. You can then paste the data into Power BI Desktop. The top row is automatically identified as a
header.
You can enter a new column simply by typing a new column name (in the blank column to the right), then add
values in each cell, just like you can do in Excel. When finished, select Load and the table is added to the data
model for Power BI Desktop.
NOTE
When working with countries or regions, use the three-letter abbreviation to ensure that geocoding works properly in map
visualizations. Do not use two-letter abbreviations, as some countries or regions may not be properly recognized.
If you only have two-letter abbreviations, check out this external blog post for steps on how to associate your two-letter
country/region abbreviations with three-letter country/region abbreviations.
Region keys
Use the following Region keys in this Preview release to test Shape map .
Australia: States
ID ABBR ISO NAME P O STA L
Austria: States
ID ISO NAME N A M E- EN P O STA L
Brazil: States
ID
Tocantins
Pernambuco
Goias
Sergipe
Sao Paulo
Santa Catarina
Roraima
Rondonia
Rio de Janeiro
Piaui
Parana
Paraiba
Para
ID
Minas Gerais
Mato Grosso
Maranhao
Distrito Federal
Ceara
Espirito Santo
Bahia
Amazonas
Amapa
Alagoas
Acre
Litigated Zone 1
Litigated Zone 2
Litigated Zone 3
Litigated Zone 4
Canada: Provinces
ID ISO NAME P O STA L
France: Regions
ID NAME N A M E- EN
Auvergne-Rhone-Alpes
Bourgogne-Franche-Comte
Grand Est
Guadeloupe
Hauts-de-France
La Reunion
Mayotte
Normandie Normandie
Nouvelle-Aquitaine
Occitanie
Germany: States
ID ISO NAME N A M E- EN P O STA L
Ireland: Counties
ID
Wicklow
Wexford
Westmeath
Waterford
Sligo
Tipperary
Roscommon
ID
Offaly
Monaghan
Meath
Mayo
Louth
Longford
Limerick
Leitrim
Laoighis
Kilkenny
Kildare
Kerry
Galway
Dublin
Donegal
Cork
Clare
Cavan
Carlow
Italy: Regions
ID ISO NAME N A M E- EN P O STA L
Mexico: States
ID A B REVIAT URA ISO NAME N A M E- EN P O STA L
Netherlands: Provinces
ID ISO NAME N A M E- EN
UK: Countries
ID ISO NAME
USA: States
ID NAME P O STA L
us-mi Michigan MI
us-ak Alaska AK
us-hi Hawaii HI
ID NAME P O STA L
us-fl Florida FL
us-la Louisiana LA
us-ar Arkansas AR
us-ga Georgia GA
us-ms Mississippi MS
us-al Alabama AL
us-tx Texas TX
us-tn Tennessee TN
us-ok Oklahoma OK
us-az Arizona AZ
us-mo Missouri MO
us-va Virginia VA
us-ks Kansas KS
us-ky Kentucky KY
us-co Colorado CO
us-md Maryland MD
us-de Delaware DE
us-il Illinois IL
us-oh Ohio OH
us-ca California CA
ID NAME P O STA L
us-ut Utah UT
us-nv Nevada NV
us-in Indiana IN
us-ct Connecticut CT
us-pa Pennsylvania PA
us-ne Nebraska NE
us-ma Massachusetts MA
us-ia Iowa IA
us-or Oregon OR
us-mn Minnesota MN
us-vt Vermont VT
us-id Idaho ID
us-wi Wisconsin WI
us-wy Wyoming WY
us-me Maine ME
us-mt Montana MT
us-wa Washington WA
Next steps
Matrix visual in Power BI
Visualization types in Power BI
Tables in Power BI reports and dashboards
8/13/2020 • 5 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
A table is a grid that contains related data in a logical series of rows and columns. It may also contain headers and a
row for totals. Tables work well with quantitative comparisons where you're looking at many values for a single
category. For example, this table displays five different measures for Categor y .
Create tables in reports and cross-highlight elements within the table with other visuals on the same report page.
You can select rows, columns, and even individual cells and cross-highlight. You can also copy and paste individual
cells and multiple cell selections into other applications.
Prerequisite
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
3. Open the Retail Analysis sample PBIX file in report view .
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
Create a table
You'll create the table pictured at the beginning of the article to display sales values by item category.
1. From the Fields pane, select Item > Categor y .
Power BI automatically creates a table that lists all the categories.
2. Select Sales > Average Unit Price and Sales > Last Year Sales
3. Then select Sales > This Year Sales and select all three options: Value , Goal , and Status .
4. In the Visualizations pane, locate the Values well and select the values until the order of your chart
columns matches the first image on this page. Drag the values in the well if needed. Your Values well will
look like this:
Format the table
There are many ways to format a table. Only a few are covered here. A great way to learn about the other
formatting options is to open the Format pane (paint roller icon ) and explore.
Try formatting the table grid. Here you'll add a blue vertical grid, add space to the rows, and increase the
outline and text size.
For the column headers, change the background color, add an outline, and increase the font size.
You can even apply formatting to individual columns and column headers. Start by expanding Field
formatting and selecting the column to format from the drop-down. Depending on the column values,
Field formatting lets you set things like: display units, font color, number of decimal places, background,
alignment, and more. Once you've adjusted the settings, decide whether to apply those settings to the
header and totals row as well.
Conditional formatting
Conditional formatting is one type of formatting. Power BI can apply conditional formatting to any of the fields that
you added to the Values well of the Visualizations pane.
With conditional formatting for tables, you can specify icons, URLs, cell background colors, and font colors based
on cell values, including using gradient colors.
1. In the Format pane, open the Conditional formatting card.
2. Select a field to format, and turn the slider for Background color to On. Power BI applies a gradient based
on the values in the column. To change the default colors, select Advanced controls .
If you select the Diverging option, you can configure an optional Center value as well.
Let's apply some custom formatting to our Average Unit Price values. Select Diverging , add some colors,
and select OK .
3. Add a new field to the table that has both positive and negative values. Select Sales > Total Sales
Variance .
4. Add data bar conditional formatting by turning the Data bars slider to On.
5. To customize the data bars, select Advanced controls . In the dialog that appears, set colors for Positive
bar and Negative bar , select the Show bar only option, and make any other changes you'd like.
6. Select OK .
Data bars replace the numerical values in the table, making it easier to scan.
7. Add visual cues to your table with conditional icons. In the Conditional formatting card, select This year
sales from the dropdown. Turn the Icons slider to On . To customize the icons, select Advanced controls .
With the unformatted cell value on your clipboard, you can paste it into another application.
To copy more than a single cell:
1. Select a range of cells or use Ctrl to select one or more cells.
2. Right-click inside one of the cells you selected.
3. Select Copy > Copy selection .
Adjust the column width of a table
Sometimes Power BI will truncate a column heading in a report and on a dashboard. To show the entire column
name, hover over the space to the right of the heading to reveal the double arrows, select, and drag.
Next steps
Tree maps in Power BI
Visualization types in Power BI
Treemaps in Power BI
8/13/2020 • 3 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
Treemaps display hierarchical data as a set of nested rectangles. Each level of the hierarchy is represented by a
colored rectangle (branch) containing smaller rectangles (leaves). Power BI bases the size of the space inside each
rectangle on the measured value. The rectangles are arranged in size from top left (largest) to bottom right
(smallest).
For example, if you're analyzing your sales, you might have top-level branches for the clothing categories: Urban ,
Rural , Youth , and Mix . Power BI would split your category rectangles into leaves, for the clothing manufacturers
within that category. These leaves would be sized and shaded based on the number sold.
In the Urban branch above, lots of VanArsdel clothing was sold. Less Natura and Fama was sold. Only a few Leo
were sold. So, the Urban branch of your Treemap has:
The largest rectangle for VanArsdel in the top-left corner.
Slightly smaller rectangles for Natura and Fama .
Lots of other rectangles for all the other clothing sold.
A tiny rectangle for Leo .
You could compare the number of items sold across the other clothing categories by comparing the size and
shading of each leaf node; larger and darker rectangles mean higher value.
When to use a treemap
Treemaps are a great choice:
To display large amounts of hierarchical data.
When a bar chart can't effectively handle the large number of values.
To show the proportions between each part and the whole.
To show the pattern of the distribution of the measure across each level of categories in the hierarchy.
To show attributes using size and color coding.
To spot patterns, outliers, most-important contributors, and exceptions.
Prerequisite
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
After you get the Retail Analysis Sample dataset, you can get started.
3. Select Item > Categor y which will add Categor y to the Group well.
Power BI creates a treemap where the size of the rectangles is based on total sales and the color represents
the category. In essence you've created a hierarchy that visually describes the relative size of total sales by
category. The Men's category has the highest sales and the Hosier y category has the lowest.
4. Select Store > Chain which will add Chain to the Details well to complete your treemap. You can now
compare last year's sales by category and chain.
NOTE
Color Saturation and Details cannot be used at the same time.
5. Hover over a Chain area to reveal the tooltip for that portion of the Categor y .
For example, hovering over Fashions Direct in the 090-Home rectangle reveals the tooltip for Fashion
Direct's portion of the Home category.
Highlighting and cross-filtering
Highlighting a Categor y or Detail in a treemap cross-highlights and cross-filters the other visualizations on the
report page. To follow along, either add some visuals to this report page or copy the treemap to one of the other
pages in this report. The below image the treemap was copied over to the Over view page.
1. On the treemap, select either a Categor y or a Chain within a Categor y . That will cross-highlight the other
visualizations on the page. Selecting 050-Shoes , for example, shows you that last year's sales for shoes
was $16,352,432 with Fashions Direct accounting for $2,174,185 of those sales.
2. In the Last Year Sales by Chain pie chart, selecting the Fashions Direct slice, cross-filters the treemap.
3. To manage how charts cross-highlight and cross-filter each other, see Change how visuals interact in a
Power BI report.
Next steps
Waterfall charts in Power BI
Visualization types in Power BI
Waterfall charts in Power BI
8/13/2020 • 2 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
Waterfall charts show a running total as Power BI adds and subtracts values. They're useful for understanding how
an initial value (like net income) is affected by a series of positive and negative changes.
The columns are color coded so you can quickly notice increases and decreases. The initial and the final value
columns often start on the horizontal axis, while the intermediate values are floating columns. Because of this style,
waterfall charts are also called bridge charts.
Prerequisite
This tutorial uses the Retail Analysis sample PBIX file.
1. From the upper left section of the menubar, select File > Open
2. Find your copy of the Retail Analysis sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the report
is saved in Premium capacity.
To display the months in chronological order, select Sor t ascending . As with the previous step, check that
there is a yellow indicator next to the left of Sor t ascending. This indicates that your selected option is
being applied.
Notice that your chart is sorted from January to August for FiscalMonth.
Explore the waterfall chart
Dig in a little more to see what's contributing most to the changes month to month.
1. Select Store > Territor y , which will add Territor y to the Breakdown bucket.
Power BI uses the value in Breakdown to add additional data to the visualization. It adds the top five
contributors to increases or decreases for each fiscal month. This means that February, for example, now
has six data points instead of just one.
Let's say that you're only interested in the top two contributors.
2. In the Format pane, select Breakdown and set Max breakdowns to 2 .
A quick review reveals that the territories of Ohio and Pennsylvania are the biggest contributors to
movement, both negative and positive, in your waterfall chart.
Next steps
Change how visuals interact in a Power BI report
Visualization types in Power BI
Introduction to Power BI Q&A visualizations
8/13/2020 • 5 minutes to read • Edit Online
APPLIES TO: Power BI service for consumers Power BI service for designers & developers Power BI
Desktop Requires Pro or Premium license
NOTE
Power BI is moving to a new look, and some images in the documentation may not match what you see in the service.
Learn more about the new look and try it for yourself.
NOTE
These visuals can be created and viewed in both Power BI Desktop and the Power BI service. The steps and illustrations in
this article are from Power BI Desktop.
The Q&A visual can be both used as a tool to allow consumers to quickly get answers to their data, and by
designers to create visuals in report by simply double-clicking anywhere on a report and using natural language
to get started. As it behaves like any other visual, the Q&A visual can be cross-filtered/cross-highlighted and also
supports bookmarks. The Q&A visual also supports themes and other default formatting options available inside
Power BI.
The Q&A visual consists of four core components;
The question box. This is where users type in their question and are shown suggestions to help them complete
their question.
A pre-populated list of suggested questions.
Icon to convert the Q&A visual into a standard visual.
Icon to open Q&A tooling which allows designers to configure the underlying natural language engine.
Prerequisites
1. This tutorial uses the Sales & Marketing sample PBIX file.
2. From the upper left section of the Power BI Desktop menu bar, select File > Open
3. Find your copy of the Sales & Marketing sample PBIX file
NOTE
Sharing your report with a Power BI colleague requires that you both have individual Power BI Pro licenses or that the
report is saved in Premium capacity. See sharing reports.
But you can tell Power BI which visual type to use by adding it to your natural language query. Keep in mind
that not all visual types will work or make sense with your data. For example, this data wouldn't produce a
meaningful scatter chart. But it works as a filled map.
1. Type a question in the Q&A field. Power BI adds a red underline to words it does not recognize. Whenever
possible, Power BI helps define unrecognized words. In the first example below, selecting either of the
suggestions will work for us.
2. As we type more of the question, Power BI lets us know that it doesn't understand the question, and tries to
help. In the example below, Power BI asks us "Did you mean..." and suggests a different way to word our
question using terminology from our dataset.
3. With Power BI's help, we were able to ask a question with all recognizable terms. Power BI displays the
results as a line chart.
4. Let's change the visual to a column chart.
5. Add more visuals to the report page and see how the Q&A visual interacts with the other visuals on the
page. In this example, the Q&A visual has cross-filtered the line chart and map and cross-highlighted the
bar chart.
Format and customize the Q&A visual
The Q&A visual can be customized using the formatting pane, and by applying a theme.
Apply a theme
When you select a theme, that theme is applied to the entire report page. There are many themes to choose from,
so try them out until you get the look you desire.
1. In the menu bar, select the Home tab and choose Switch theme .
2. In this example we've selected More themes > Color blind safe .
Format the Q&A visual
Format the Q&A visual, the question field, and the way suggestions are displayed. You can change everything from
the background of a title to the hover color for unrecognized words. Here we've added a grey background to the
question box and changed the underlines to yellow and green. The title is centered and has a yellow background.
Select the icon to Turn this Q&A result into a standard visual .
This visual is no longer a Q&A visual but is a standard column chart. It can be pinned to a dashboard. In the report,
this visual behaves the same as other standard visuals. Notice that the Visualizations pane shows a Column chart
icon selected instead of the Q&A visual icon.
If you're using the Power BI Ser vice , you can now pin the visual to a dashboard by selecting the pin icon.
Use the Tooling pane to teach Q&A terms it doesn't recognize, to manage those terms, and to manage the
suggested questions for this dataset and report. In the Tooling pane you can also review questions that have been
asked using this Q&A visual and see questions that have been flagged by users. To learn more, see Q&A Tooling
into.
Next steps
There are a variety of ways you can integrate natural language. For more information, see the following articles:
Q&A Tooling
Q&A Best Practices
Teach Q&A to understand questions and terms in
Power BI Q&A
8/13/2020 • 3 minutes to read • Edit Online
In the Teach Q&A section of Q&A setup, you train Q&A to understand natural-language questions and terms it
hasn't recognized. To begin, you submit a question that contains a word or words that Q&A didn't recognize. Q&A
then prompts you to define that term. You enter either a filter or a field name that corresponds to what that word
represents. Q&A then reinterprets the original question. If you're happy with the results, you save them.
NOTE
The Teach Q&A functionality only supports import mode. It also doesn't yet support connecting to an on-premises or Azure
Analysis Services data source. This limitation should be removed in subsequent releases of Power BI.
2. Type a sentence with a term Q&A doesn't recognize and select Submit .
3. Select the red-underlined word.
Q&A offers suggestions and prompts you to provide the correct definition of the term.
4. Under Define the terms Q&A didn't understand , provide a definition.
5. Select Save to preview the updated visual.
6. Enter the next question, or select the X to close.
Your report consumers won't see this change until you publish the report back to the service.
If you provide something other than a field from the data model, you may get undesirable results.
Define an adjective filter condition
Sometimes you may want to define terms that act as a condition on the underlying data. An example could be
'Awesome Publishers'. 'Awesome' could be a condition that only selects publishers that have published X number
of products. Q&A tries to detect adjectives, showing a different prompt:
that have
You fill in the box with the condition.
You can only define a single condition in tooling. To define more complex conditions, use DAX to create a calculated
column or measure, and then use the tooling section to create a single condition for that column or measure.
Manage terms
After you've provided definitions, you can go back to see all the fixes you made and edit or delete them.
1. In Q&A setup , go to the Manage terms section.
2. Delete any terms you no longer want. Currently you can't edit terms. To redefine a term, delete the term and
define it.
Next steps
There are a number of best practices for improving the natural language engine. For more information, Q&A best
practices.
Best practices to optimize Q&A in Power BI
8/13/2020 • 10 minutes to read • Edit Online
Using common phrases and natural language to ask questions of your data is powerful. Even more powerful is
when your data answers, which is what Q&A in Power BI does.
To enable Q&A to successfully interpret the large collection of questions it's capable of responding to, Q&A must
make assumptions about the model. If the structure of your model doesn't meet one or more of these
assumptions, you need to adjust your model. Those adjustments for Q&A are the same best-practice
optimizations for any model in Power BI, regardless whether you use Q&A.
In the following sections, we describe how to adjust your model so it works well with Q&A in Power BI.
Similarly, if you have any full name columns for a person, add First Name and Last Name columns, just in case
someone wants to ask questions using partial names.
Create new tables for multi-value columns
Also a similar situation, if the source from which you're importing your data contains multi-value columns, Power
BI reports (and Q&A) can't reach inside the column to parse out the contents. So, if you have, for example, a
Composer column that contains the names of multiple composers for a song, you should split it into multiple
rows in a separate Composers table.
Needs work
Ready for Q&A
Next steps
Intro to Power BI Q&A
Use Power BI Q&A to explore your data and create
visuals
8/13/2020 • 5 minutes to read • Edit Online
Sometimes the fastest way to get an answer from your data is to ask a question using natural language. The Q&A
feature in Power BI lets you explore your data in your own words. The first part of this article shows how you use
Q&A in dashboards in the Power BI service. The second part shows what you can do with Q&A when creating
reports in either the Power BI service or Power BI Desktop. For more background, see the Q&A for consumers
article.
Q&A in the Power BI mobile apps and Q&A with Power BI Embedded are covered in separate articles.
Q&A is interactive, even fun. Often, one question leads to others as the visualizations reveal interesting paths to
pursue. Watch Amanda demonstrate using Q&A to create visualizations, dig into those visuals, and pin them to
dashboards.
https://www.youtube.com/embed/qMf7OLJfCz8?list=PL1N57mwBHtN0JFoKSR0n-tBkUJHeMP2cP
The Q&A question box is located in the upper-left corner of your dashboard, where you type your question using
natural language. Don't see the Q&A box? See Considerations and troubleshooting in the Q&A for consumers
article. Q&A recognizes the words you type and figures out where (in which dataset) to find the answer. Q&A also
helps you form your question with auto-completion, restatement, and other textual and visual aids.
The answer to your question is displayed as an interactive visualization and updates as you modify the question.
1. Open a dashboard and place your cursor in the question box. In the upper-right corner, select New Q&A
experience .
2. Even before you start typing, Q&A displays a new screen with suggestions to help you form your question.
You see phrases and complete questions containing the names of the tables in the underlying datasets and
may even see complete questions listed if the dataset owner has created featured questions,
You can choose one of these questions as a starting point and continue to refine the question to find a
specific answer. Or use a table name to help you word a new question.
3. Select from the list of questions, or begin typing your own question and select from the dropdown
suggestions.
4. As you type a question, Q&A picks the best visualization to display your answer.
5. The visualization changes dynamically as you modify the question.
6. When you type a question, Power BI looks for the best answer using any dataset that has a tile on that
dashboard. If all the tiles are from datasetA, then your answer will come from datasetA. If there are tiles
from datasetA and datasetB, then Q&A searches for the best answer from those 2 datasets.
TIP
So be careful, if you only have one tile from datasetA and you remove it from your dashboard, Q&A will no longer
have access to datasetA.
7. When you're happy with the result, pin the visualization to a dashboard by selecting the pin icon in the top
right corner. If the dashboard has been shared with you, or is part of an app, you won't be able to pin.
To use Q&A in reports, you must have edit permissions for the report and underlying dataset. In the Q&A for
consumers article, we refer to this as a creator scenario. If instead you're consuming a report that has been shared
with you, Q&A isn't available.
1. Open a report in Editing view (Power BI service) or Report view (Power BI Desktop) and select Ask a
question from the menu bar.
Power BI Desktop
Ser vice
2. A Q&A question box displays on your report canvas. In the example below, the question box displays on
top of another visualization. This is fine, but it might be better to add a blank page to the report before
asking a question.
3. Place your cursor in the question box. As you type, Q&A displays suggestions to help you form your
question.
4. As you type a question, Q&A picks the best visualization to display your answer; and the visualization
changes dynamically as you modify the question.
5. When you have the visualization you like, select ENTER. To save the visualization with the report, select File
> Save .
6. Interact with the new visualization. It doesn't matter how you created the visualization -- all the same
interactivity, formatting, and features are available.
If you've created the visualization in Power BI service, you can even pin it to a dashboard.
Next steps
Q&A for consumers
Tips for asking questions in Q&A
Prepare a workbook for Q&A
Prepare an on-premises dataset for Q&A
Pin a tile to the dashboard from Q&A
Create a visual with Power BI Q&A
8/13/2020 • 2 minutes to read • Edit Online
Sometimes the fastest way to get an answer from your data is to ask a question using natural language. In this
article, we look at two different ways of creating the same visualization: first, asking a question with Q&A, and
second, building it in a report. We use the Power BI service to build the visual in the report, but the process is
almost identical using Power BI Desktop.
To follow along, you must use a report that you can edit, so we'll use one of the samples available with Power BI.
5. To pin the chart to your dashboard, select the pin icon in the upper-right corner.
4. Select the area chart and review the settings in the Fields pane. The report creator built this chart by
selecting these three values (Last Year Sales and This Year Sales > Value from the Sales table, and
FiscalMonth from the Time table) and organizing them in the Axis and Values wells.
You see they ended up with the same visual. Creating it this way wasn't too complicated. But creating it with
Q&A was easier!
Next steps
Use Q&A in dashboards and reports
Q&A for consumers
Make your data work well with Q&A in Power BI
More questions? Try the Power BI Community
Make Excel data work well with Q&A in Power BI
8/13/2020 • 2 minutes to read • Edit Online
If you are a person who creates data models or builds Excel workbooks that will be used with Power BI, read on...
In Power BI, Q&A can search structured data and choose the right visualization for your question -- that's what
makes it a compelling tool to use.
Q&A can work on any uploaded Excel file that has tables, ranges, or contains a PowerPivot model, but the more
optimizations and data cleaning you do, the more robust Q&A performance is. If you plan on sharing reports and
dashboards based on your dataset, you'll want your colleagues to have an easy time asking questions and getting
quality answers.
Next steps
Q&A for consumers
Use Q&A in dashboards and reports
Prepare on-premises datasets for Q&A
Get data (for Power BI)
More questions? Try the Power BI Community
Create featured questions for Power BI Q&A
8/13/2020 • 2 minutes to read • Edit Online
If you own a dataset, you can add your own featured questions to that dataset. Power BI Q&A will show those
questions to colleagues who consume reports based on that dataset. Featured questions give your colleagues ideas
about the types of questions they can ask about the dataset. The featured questions you add are up to you -- add
popular questions, questions that display interesting results, or questions that may be hard to phrase.
NOTE
Q&A featured questions are available for use in the Microsoft Power BI app for iOS on iPads, iPhones, and iPod Touch devices
and Power BI Desktop Q&A. Creating the questions is only available in the Power BI service (app.powerbi.com).
3. Select Settings > Datasets > Retail Analysis sample > Featured Q&A Questions .
4. Select Add a question .
5. Type your question in the text box and select Apply . Optionally, add another question by selecting Add a
question .
6. Navigate back to the Power BI dashboard for Retail Analysis Sample, and place your cursor in the Q&A
question box.
7. The new featured question, Sales by territor y as a map , is first in the list. Select it.
8. Power BI creates the answer and displays it as a filled map visualization.
Next steps
Q&A for consumers
Use Q&A in dashboards and reports
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Enable Q&A for live connections in Power BI
8/13/2020 • 3 minutes to read • Edit Online
You can import datasets into Power BI, or you can create a live connection to them. Live connection datasets are
often on premises. If so, you manage live connections by using a gateway. Data and inquiries are sent back and
forth using live queries.
NOTE
Live connections also support Azure Analysis Services datasets, which don't require a gateway.
Enable Q&A
Once you have the data gateway set up, connect to your data from Power BI. Either create a dashboard using your
on-premises data, or upload a .pbix file that uses on-premises data. You may also already have on-premises data in
dashboards, reports, and datasets that have been shared with you.
1. In the upper-right corner of Power BI, select the cog icon and choose Settings .
2. Select datasets and choose the dataset to enable for Q&A.
3. Expand Q&A , select the checkbox for Turn on Q&A for this dataset , and choose Apply .
What data is cached and how is privacy protected?
When you enable Q&A for your on-premises data, a subset of your data is cached in the service. This caching
ensures that Q&A works with a reasonable performance. Power BI excludes values longer than 24 characters from
caching. The cache is deleted within a few hours when you disable Q&A by unchecking Turn on Q&A for this
dataset , or when you delete your dataset.
Next steps
On-premises data gateway
Manage your data source - Analysis Services
Basic concepts for designers in the Power BI service
Power BI Q&A Overview
More questions? Try asking the Power BI Community
Generate data insights automatically with Power BI
8/13/2020 • 2 minutes to read • Edit Online
Do you have a new dataset and aren't quite sure where to start? Need to build a dashboard quickly? Want to look
for insights you may have missed?
Run quick insights to generate interesting interactive visualizations based on your data. Quick insights can be run
on an entire dataset (quick insights) or on a specific dashboard tile (scoped insights). You can even run insights on
an insight!
NOTE
Insights doesn't work with DirectQuery; it only works with data uploaded to Power BI.
The insights feature is built on a growing set of advanced analytical algorithms developed in conjunction with
Microsoft Research that we’ll continue to use to allow more people to find insights in their data in new and intuitive
ways.
NOTE
Some datasets can't generate insights because the data isn't statistically significant. To learn more, see Optimize your
data for insights.
4. The visualizations display in a special Quick Insights canvas with up to 32 separate insight cards. Each card
has a chart or graph plus a short description.
The insight displays on the left and new cards, based solely on the data in that single insight, display
along the right.
4. To return to the original insights canvas, in the top-left corner, select Exit Focus mode .
3. Does one insight pique your interest? Select that insight card to dig further. The selected insight appears on
the left and new insight cards, based solely on the data in that single insight, display along the right.
4. Continue digging into your data, and when you find an interesting insight, pin it to your dashboard by
selecting Pin visual from the top-right corner.
Next steps
If you own a dataset, optimize it for Quick Insights.
Learn about the types of Quick Insights available.
More questions? Try the Power BI Community.
Optimize your data for Power BI Quick Insights
8/13/2020 • 2 minutes to read • Edit Online
Want to improve quick insights results? If you are a dataset owner, try these:
Hide or unhide columns in your dataset. Power BI quick insights doesn't search hidden columns. So hide
duplicate or unnecessary columns and unhide interesting columns.
Use a mix of data types such as names, times, dates, and numbers.
Avoid (or hide) columns with duplicate information. This takes valuable time away from searching for
meaningful patterns. For example, one column with state names spelled out and another column with state
name abbreviations.
Do you get an error message stating that your data isn't statistically significant? This can happen with models
that are very simple, or that don't have much data, or that don't have date or numeric columns.
Next steps
Power BI quick insights
More questions? Try the Power BI Community
Design Power BI reports for accessibility
8/13/2020 • 13 minutes to read • Edit Online
You can design and create compelling reports while also designing for accessibility. Whenever building a report,
no matter who your audience is, you should create your reports to be usable by as many people as possible,
without the need to be adapted for a sort of special design.
This article describes the accessibility features and tools for creating accessible reports in Power BI.
In general, when using Power BI with a screen reader, we recommend turning scan mode or browse mode off.
To improve the process of creating reports with screen readers, a context menu is available. The menu allows
moving fields in the well up or down in the Fields list. The menu also allows moving the field to other wells, such
as Legend or Value or others.
To access the most frequently used keyboard shortcuts, you can press ? to display a keyboard shortcut dialog. To
learn more, see these articles on accessible consumption experiences and keyboard shortcuts in the Next steps
section at the end of this article.
Screen reader compatibility
In general, every object in Power BI that has keyboard navigation is also compatible for screen readers. When a
report consumer navigates to a visual, the screen reader will read out the title, visual type, and any alt text if that
has been set.
High contrast color view
Power BI has high contrast support for reports. If you're using a high contrast mode in Windows, Power BI Desktop
automatically detects which high contrast theme is being used in Windows and applies those settings to your
reports. Those high contrast colors follow the report when published to the Power BI service or elsewhere.
The Power BI service also attempts to detect the high contrast settings selected for Windows, but how effective and
accurate that detection is depends on the browser being used for the Power BI service. If you want to set the theme
manually in the Power BI service, in the top-right corner you can select V > High contrast colors and then select
the theme you would like to apply to the report.
Focus mode
If a report consumer is looking at a visual in a dashboard, they can expand the visual to fill up more of their screen
by navigating to the context menu of the visual and selecting Open in focus mode .
Alt text
Alt text (alternative text descriptions) are used to describe the appearance and function of visuals and images on
the report page to screen reader users. Report authors should add alt text to every object that conveys meaningful
information on a report. Providing alt text ensures that consumers of your report understand what you are trying
to communicate with a visual, even if they cannot see the visual, image, shape, or textbox. You can provide alt text
for any object on a Power BI Desktop report by selecting the object (such as a visual, shape, and so on) and in the
Visualizations pane, select the Format section, expand General , scroll to the bottom, and fill in the Alt Text
textbox. The Alt Text textbox has a limit of 250 characters.
Alt text should include information about the insight that you'd like the report consumer to take away from a
visual. Because a screen reader reads out the title and type of a visual, you only need to fill in a description. An
example of alt text for the following visual could be: Net user satisfaction by color of product sold, further broken
down by product class.
Keep in mind that calling out an insight or specific data points may not be the best thing to put in static alt text,
because data in Power BI is dynamic. If you'd like to use dynamic alt text, see the next section that describes
conditional formatting for alt text.
Conditional formatting for alt text
One feature that makes Power BI so compelling is that its data is dynamic. You can use DAX measures and
conditional formatting to create dynamic alt text. Screen readers are then able to call out values specific to the data
that a report consumer is viewing.
Tab order
Setting the tab order helps keyboard users navigate your report in an order that matches the way users visually
process the report visuals. If you're including decorative shapes and images in your report, you should remove
those from the tab order.
To set the tab order, select the View tab in the ribbon and select the Selection Pane button to display the
Selection pane.
In the Selection pane , selecting Tab order displays the current tab order for your report. You can select an
object, then use the up and down arrow buttons to move the object in the hierarchy, or you can select an object
with your mouse and drag it into the position you'd like it the list. Clicking on the number next to an object hides
the object from the tab order.
Positioning your data labels above or below your series can help, especially if you're using a line chart with
multiple lines. With a few adjustments, the data labels now look much better.
Markers
It's a best practice to avoid using color (including features conditional formatting) as the only way of conveying
information. Instead, you can use markers to convey different series.
For Line, Area, and Combo visuals, as well as for Scatter and Bubble visuals, you can turn markers on, and use a
different Marker shape for each line.
To turn Markers on, select the Format section in the Visualizations pane, expand the Shapes section, then scroll
down to find the Show Markers toggle and turn it to On , as shown in the following image.
You can also use Customize Series to select the name of each line (or area, if using an Area chart) from the drop-
down box in that Shapes section. Below the drop-down, you can then adjust many aspects of the marker used for
the selected line, including its shape, color, and size.
While we suggest report authors to turn on data labels and markers, turning them all on for every visual may be
distracting and make your report less accessible. In the following image, you can compare a visual that has data
labels and markers both on, and then a more understandable version with data labels off.
If you're not sure whether your visual or report is too busy, test that by doing a squint test. If your eyes are drawn
more to the data labels than the data points, turn off your data labels.
Themes, contrast and colorblind-friendly colors
You should ensure that your reports have enough contrast between text and any background colors. WCAG 2.1
success criterion 1.4.3 delineates that text and background color should have a contrast ratio of at least 4.5:1. There
are several tools such as Color Contrast Analyzer, WebAIM, and Accessible Colors you can use to check your report
colors.
You should also consider that some report viewers may have color vision deficiencies. Tools like Coblis and
Vischeck simulate what report viewers with different color deficiencies see. Using fewer colors or a monochrome
palette in your report can help mitigate creating reports that are inaccessible.
Certain color combinations are particularly difficult for users with color vision deficiencies to distinguish. These
include the following combinations:
green and red
green and brown
blue and purple
green and blue
light green and yellow
blue and grey
green and grey
green and black
Avoid using these colors together in a chart, or on the same report page. Power BI has some built-in themes to
help make your report more accessible, but it's best practice to check your report with some of the additional tools
suggested in this article.
Next steps
The collection of articles for Power BI accessibility are the following:
Overview of accessibility in Power BI
Consuming Power BI reports with accessibility tools
Creating Power BI reports with accessibility tools
Accessibility keyboard shortcuts for Power BI reports
Report accessibility checklist
Creating reports in Power BI using accessibility tools
8/13/2020 • 6 minutes to read • Edit Online
For report creators who use accessibility tools to create reports, Power BI has many built-in capabilities that can
help in the process.
This article describes the many types of accessibility tools available for report creators in Power BI Desktop.
App-level navigation
When navigating in Power BI Desktop, you can move focus to the main areas of the app by pressing Ctrl + F6 .
Shifting focus in the main area of Power BI Desktop progresses in the following order:
1. Objects on canvas
2. Page tabs
3. Panes (each one separately, left to right for whatever ones are open)
4. View navigator
5. Footer
6. Sign in
7. Yellow warning / error / updates bar
In most cases, using Enter to select, or enter an area, and then using Esc to exit are common procedures in Power
BI.
Ribbon navigation
Press Alt to see the little boxes called KeyTips over each command available in the current view of the ribbon. Then
you can press the letter shown in the KeyTip that hovers over the command you want to use.
For example, in the following image the Alt key has been pressed to display KeyTips, which contain the letters for
available accessible commands. Then pressing M would open the Modeling tab on the ribbon.
Depending on which letter you press, you might see additional KeyTips. For example, if the Home tab is active and
you press W , the View tab is displayed along with the KeyTips for the groups in that View ribbon tab. You can
continue pressing letters displayed in KeyTips until you press the letter of the specific command you want to use.
To move to the previous set of KeyTips, press Esc . To cancel the action you’re taking and hide the KeyTips, press the
Alt key.
When you get to the visuals, you can use arrow keys to navigate to a particular visual, and press Enter to select it.
If you’re using a screen reader, it calls out if you’ve created a new chart and tell you what type it is, or it tells you
that you’ve changed a chart of a particular type to another type of chart.
After the visuals section of the pane, the focus order then shifts to the pane pivots, as shown in the following
image.
When focus is on the pane pivots, tabbing lands only on the icon for the pane that is selected. To switch to other
panes, use arrow keys.
Field well
When focus is on the pane pivots, as described in the previous section, pressing tab again advances focus to the
Field Well .
In the Field well , focus order moves to:
each well's title (first)
followed by a given field in each well (next)
the dropdown button to open the field menu (after that)
then the removal button (last)
The following image shows this focus progression ordering.
A screen reader will read out the well’s name and its tooltip. For each field in a well, a screen reader reads the field
name and its tooltip. If a well is empty, the focus should move to the entire empty well. The screen reader should
read the well name, tooltip, and that it is empty.
When the field menu is open, you can move through it by using Tab or Shift + Tab or Up / Down arrow keys. A
screen reader will call out the option names.
If you’d like to move a field from one bucket in the field well to another bucket, you can use your keyboard, and
use the Move to option in the field well menu, as shown in the following image.
Formatting pane
The focus order for the Formatting pane moves from the top, then down, in card order. The focus goes around
the card name, followed by its On / Off toggle button, if it exists. When the focus is on the card name, a screen
reader reads out the name of the card, and whether the card is expanded or collapsed. You can press Enter to
expand or collapse the card. The Enter key also works to switch On or Off the toggle button.
If a card is open, Tab moves through the controls in the card before going on to the next card. For the controls in a
card, a screen reader calls out the title, the current value, and the control type.
Fields list navigation
You can press Tab to navigate around the Fields list. Similar to the formatting pane, if tables are collapsed the
focus order cycles through in the following order:
1. The Fields list header
2. The search bar
3. Each table name
To expand all the tables in the Fields well, press Alt + Shift + 9 . To collapse all the tables press Alt + Shift + 1 .
To expand a single table, press the Right arrow key. To collapse a single table, press the Left arrow key. Similar to
the formatting pane, if a table is expanded, then tabbing and navigating through the fields list includes the fields
that are being shown. A screen reader calls out whether you have expanded or collapsed a table.
You can checkmark a field by navigating to the desired field and pressing Enter . A screen reader calls out the field
the focus is on, and whether the field is checked or unchecked.
Mouse users typically drag-and-drop fields to the canvas, or to the relevant filter buckets they desire. If you’d like
to use your keyboard, you can add a field to a filter bucket by entering a field’s context menu by pressing Shift +
F10 , using arrow keys to navigate to Add to filters , and then pressing Enter on the type of filter to which you’d
like to add the field.
You can tab through the focus order and press Enter to select the element you're interested in.
When you get to the layer / tab order switcher, use the left and right arrow keys to switch between the layer order
and tab order.
When you get to the objects in the Selection pane, press F6 to activate the Selection pane. After activating the
Selection pane, you can use the up / down arrow keys to navigate to the different objects in the Selection pane.
Once you’ve navigated to an object of interest, there are a few different actions you can take:
Press Ctrl + Shift + S to hide / show an object
Press Ctrl + Shift + F to move an object up in the layer order
Press Ctrl + Shift + B to move an object down in the layer order
Press Ctrl + Space to multi-select objects
Next steps
The collection of articles for Power BI accessibility are the following:
Overview of accessibility in Power BI
Creating accessible Power BI reports
Consuming reports in Power BI with accessibility tools
Accessibility keyboard shortcuts for Power BI reports
Report accessibility checklist
Consume Power BI reports by using accessibility
features
8/13/2020 • 6 minutes to read • Edit Online
Power BI has many built-in features to help people with disabilities more easily consume and interact with Power
BI reports. These tools help users get the same information from a report as those who don’t use assistive
technology.
There are a couple terms to know as you read through this article:
Focus is where your mouse is on the page. Focus is usually indicated by a blue border surrounding an object.
Canvas is the page area of your report.
The following sections describe the accessibility tools available for consuming Power BI reports.
Keyboard navigation
When you launch Power BI Desktop or the Power BI service, as soon as you press Tab , a tooltip appears in the
upper-right hand corner. The link titled Tips for using Power BI with a screen reader directs you to this
article, providing information on how to consume a report with accessibility tools. Clicking on the Skip to main
content link takes you to the report canvas.
Pressing ? opens a dialog with the most frequently used keyboard shortcuts in Power BI. To see a full list of
keyboard shortcuts available in Power BI, you can navigate to the link at the bottom of the dialog, which takes you
to the Power BI documentation on keyboard shortcuts.
You can switch focus between the report page tabs, or objects on a given report page using Ctrl + F6 . When
focus is on a loaded report page, use the Tab key to shift focus to each object on the page, which includes all
textboxes, images, shapes, and charts.
In general, using Enter to select or enter, and using Esc to exit are common commands in Power BI.
Keyboard navigation for visuals
Many Power BI report creators are building reports that contain a lot of data. As you move through a visual, it can
be annoying to tab through every element in a visual. Keyboard navigation for visuals has been designed as a
hierarchy, with three levels. Those three levels are described in the following paragraphs.
To navigate through the first level, when you navigate to a visual press Ctrl + right arrow to enter that visual.
Once you enter that visual, you can press Tab to cycle through the main areas of the visual. Those main areas you
can cycle through are the data plot area, the axis categories (if applicable to the visual), and the legend (if the visual
has one).
The following .gif shows how a user cycles through the first level of a visual:
The second level of the hierarchy is entering one of the main areas (data plot area, x-axis categories, legend) of the
visual. As you consume a report, you can move into one of these main areas and cycle through the data points or
categories in that section of the visual. Once you decide which area you’d like to explore further, you can press
Enter to cycle through that specific area.
If you’d like to select all the data points in a series, navigate to the legend and press Enter . Once in the legend, you
can press Tab to navigate through the different categories in the legend. Press Enter to select a specific series.
If you’d like to select specific data points, navigate to the data plot area and press Enter . Once in the data plot area
you can press Tab to navigate through the data points. If your visual has multiple series, you can press the Up
arrow or Down arrow to jump to the data points in a different series.
If you’d like to select all the data points in a categorical axis, navigate to the axis labels and press Enter . Once in the
axis labels, you can press Tab to navigate through the label names. Press Enter to select a label name.
If you’ve navigated into a layer, you can press Esc to come out of that layer. The following .gif shows how a user
can enter and exit the levels of a visual and select data points, x-axis category labels, jump to a different series, and
select all the data points in a series.
If you find yourself unable to navigate to an object or visual while using a keyboard, it may be because the report
author has decided to hide that object from the tab order. Report authors commonly hide decorative objects from
the tab order. If you find that you cannot tab through a report in a logical manner, you should contact the report
author. Report authors can set the tab order for objects and visuals.
Keyboard navigation for slicers
Slicers also have accessibility functionality built in. When you select a slicer, to adjust the value of a slicer use Ctrl
+ Right arrow to move through the various controls within the slicer. For example, when you initially press Ctrl
+ Right arrow , the focus is on the eraser. Then, pressing the spacebar is equivalent to clicking the eraser button,
which erases all values on the slicer.
You can move through the controls in a slicer by pressing Tab . Pressing Tab when on the eraser moves to the
drop-down button. Another Tab then moves to the first slicer value (if there are multiple values for the slicer, such
as a range).
Switching pages
When focus is on report page tabs, use the Tab or Arrow keys to move focus from one report page to the next.
The screen reader reads out the title of the report page, and whether it's currently selected. To load the report page
currently under focus, use the Enter key or spacebar .
Accessing the visual header
As you navigate between visuals, you can press Alt + Shift + F10 to move focus to the visual header. The visual
header contains various options including sorting, exporting the data behind the chart, and Focus mode. The icons
you see in the visual header will depend on the options the report author has decided to show.
Screen reader
When viewing a report it's best to leave scan mode off. Power BI should be treated more like an application and
less like a document, so it’s been set up with custom navigation to make it easier to navigate. When using a screen
reader with Power BI Desktop, you should also make sure your screen reader is open before you open Power BI
Desktop.
When navigating around objects, the screen reader reads the type of object and the object's title (if it has one). The
screen reader also reads a description of that object (alt text) if it's provided by the report author.
Show data
You can press Alt + Shift + F11 to present an accessible version of the Show data window. This window lets
you explore the data used in the visual in an HTML table, using the same keyboard shortcuts you normally use
with your screen reader.
The Show data feature is an HTML table that is only accessible to a screen reader through this keyboard shortcut.
If you open Show data from the option in the visual header, a table that is not screen reader compatible is
displayed. When using Show data through keyboard shortcuts, turn on scan mode to take advantage of all the
hot keys your screen reader provides.
To exit the Show Data view and return to a report, press Esc .
Keyboard shortcuts are helpful for moving around in Power BI reports using a keyboard. The tables in this article
describe the shortcuts available in a Power BI report.
When using Power BI Desktop, you can press Shift + ? to show keyboard shortcuts, as shown in the following
image.
In addition to using these keyboard shortcuts in Power BI Desktop , these shortcuts work in the following
experiences as well:
Q&A Explorer dialog
Getting Star ted dialog
File menu and About dialog
Warning bar
File Restore dialog
Frowns dialog
In our continued effort to improve accessibility, the previous list of experiences also support screen readers and
high contrast settings.
On visual
TO DO T H IS A C T IO N P RESS
Move focus up / down one cell (across all cells in all areas) Up arrow key / Down arrow key
Move focus left / right one cell (across all cells in all areas) Left arrow key / Right arrow key
Pane navigation
TO DO T H IS A C T IO N P RESS
Slicer
TO DO T H IS A C T IO N P RESS
Selection pane
TO DO T H IS A C T IO N P RESS
DAX editor
TO DO T H IS A C T IO N P RESS
Copy line up / down Shift + Alt + Up arrow key / Down arrow key
Enter data
TO DO T H IS A C T IO N P RESS
Next steps
The collection of articles for Power BI accessibility are the following:
Overview of accessibility in Power BI
Creating accessible Power BI reports
Consuming reports in Power BI with accessibility tools
Creating Power BI reports with accessibility tools
Report accessibility checklist
You might also be interested in the following:
Use Report Themes in Power BI Desktop
Enter data directly in a paginated report in Report
Builder - Power BI
8/13/2020 • 4 minutes to read • Edit Online
In this article, you learn about a feature in the new version of Microsoft Power BI Report Builder that lets you enter
data directly into an RDL report as an embedded dataset. This feature is similar to Power BI Desktop. You can type
the data directly in a dataset in your report, or paste it from another program like Microsoft Excel. After you've
created a dataset by entering data, you can use it just like you would any other embedded dataset you've created.
Plus you can add more than one table and use one as a filter for the other. This feature is especially useful for small,
static datasets you might need to use in your report, like report parameters.
Prerequisites
To enter data directly in a paginated report, download and install Power BI Report Builder.
To save your paginated report to the Power BI service, you need a Power BI Pro account and write access to a
workspace in a Power BI Premium capacity.
To save your paginated report to a report server, you need permissions to edit the RsReportServer.config file.
2. In the Dataset Proper ties dialog box, select Use a dataset embedded in my repor t .
3. Next to Data source , select New .
4. In the Data Source Proper ties dialog box, select Use a connection embedded in my repor t .
5. In the Select connection type box, select ENTER DATA > OK .
6. Back in the Dataset Proper ties dialog box, select Quer y Designer .
7. In the Quer y Designer pane, right-click and paste your data in the table.
8. To set the column names, double-click each NewColumn and type the column name.
9. If the first row contains column headings from the original data, right-click and delete it.
10. By default, the data type for each column is String. To change the data type, right-click the column header >
Change Type , and set it to another data type, such as Date or Float.
You can use your dataset as the basis for data visualizations in your report. You can also add another dataset and
use the same data source for it.
3. In the Arrange fields page, drag fields you want to group by from the Available fields box to the Row
groups box. In this example:
CountryRegion
SalesYear
4. Drag the fields you want to aggregate from the Available fields box to the Values box. In this example:
SalesAmount
By default, Report Builder sums the fields in the Values box, but you can choose another aggregation.
5. Select Next .
6. In the Choose the layout page, keep all the default settings, but clear Expand/collapse groups . In
general, expanding and collapsing groups is great, but this time we want to see all the data.
7. Select Next > Finish . The table is displayed on the design surface.
Run the report
To see the actual values and preview the report, you run it.
1. Select Run in the Home ribbon.
Now you see the values. The matrix has more rows than you saw in Design view! You can either format the
page or decide to use the default settings before saving to your local computer or publishing to the service.
2. To see how your report will look when you print it, select Print Layout .
<Extension Name="ENTERDATA"
Type="Microsoft.ReportingServices.DataExtensions.XmlDPConnection,Microsoft.ReportingServices.DataExtensions">
<Configuration>
<ConfigName>ENTERDATA</ConfigName>
</Configuration>
</Extension>
After you've edited it, here's what the list of data providers in the config file should look like:
That’s it – you can now publish reports that use this new functionality to your report server.
Next steps
What are paginated reports in Power BI Premium?
What is Power BI Report Server?
Create an embedded data source for paginated
reports in the Power BI service
8/13/2020 • 3 minutes to read • Edit Online
In this article, you learn how to create and modify an embedded data source for a paginated report in the Power BI
service. You define an embedded data source in a single report, and use it only in that report. Currently, paginated
reports published to the Power BI service need embedded datasets and embedded data sources, and can connect
to these data sources:
Azure Analysis Services
Azure SQL Database and
Azure SQL Data Warehouse
SQL Server
SQL Server Analysis Services
Oracle
Teradata
For the following data sources, use the SQL Server Analysis Services connection option:
Power BI Premium datasets
Paginated reports connect to on-premises data sources by way of a Power BI gateway. You set up the gateway after
you publish the report to the Power BI service.
See Report Data in Power BI Report Builder for more detailed information.
3. In the Name text box, type a name for the data source or accept the default.
4. Select Use a connection embedded in my repor t .
5. From the Select connection type list, select a data source type.
6. Specify a connection string by using one of these methods:
Type the connection string directly in the Connection string text box.
Select Build to open the Connection Proper ties dialog box for the data source you chose in step 2.
Fill in the fields in the **Connection Properties** dialog box as appropriate for the data source type.
Connection properties include the type of data source, the name of the data source, and the credentials
to use. After you specify values in this dialog box, select **Test Connection** to verify that the data
source is available and that the credentials you specified are correct.
7. Select Credentials .
Specify the credentials to use for this data source. The owner of the data source chooses the type of
credentials that are supported. For more information, see Specify Credential and Connection Information for
Report Data Sources.
8. Select OK .
The data source appears in the Report Data pane.
Next steps
Create an embedded dataset for a paginated report in the Power BI service
What are paginated reports in Power BI Premium?
Create an embedded dataset for a paginated report
in the Power BI service
8/13/2020 • 2 minutes to read • Edit Online
In this article, you learn how to create an embedded dataset, based on an embedded data source, for a paginated
report in the Power BI service. Embedded datasets are contained in a single paginated report, for use in that report.
Currently, paginated reports published to the Power BI service need embedded datasets and embedded data
sources. You create the embedded data source and dataset in Power BI Report Builder, while you're creating your
report.
Before you can create the dataset, you need to create a data source. See Embedded data sources for paginated
reports in the Power BI service to learn how.
3. Under Quer y type , select the type of command or query to use for the dataset.
Text runs a query to retrieve data from the database. It's the default and is used for most queries. Type a
query or import a pre-existing query by selecting Impor t . To build the query graphically, select Quer y
Designer . If you use the query designer to build a query, the text of the query will appear in this box.
Select the Expression (fx ) button to use an expression to dynamically generate the query.
Table selects all the fields within a table. Enter the name of the table that you want to use as a dataset.
Stored Procedure runs a stored procedure by name.
4. In the Query Designer, you can see and interact with the tables and fields in the dataset, import a query, or
edit as text. You can also add filters and parameters here.
5. In the Query Designer, select Run Quer y to test it, then select OK .
6. Back in the Dataset Properties dialog box, in the Time out (in seconds) box, type the number of seconds
until the query times out. The default is 30 seconds. The value for Time out must be empty or greater than
zero. If it is empty, the query does not time out.
7. You can set other properties for the dataset on the other tabs:
Create calculated fields on the Fields tab.
Set advanced options on the Options tab.
Add or update Filters and Parameters on their respective tabs.
8. Select OK
The report opens in Report Design View. The data source, dataset, and dataset field collection appear in the
Report Data pane, and you can continue designing your paginated report.
Next steps
What are paginated reports in Power BI Premium?
Tutorial: Create a paginated report and upload it to the Power BI service
Publish a paginated report to the Power BI service
Create a paginated report based on a Power BI
shared dataset
8/13/2020 • 7 minutes to read • Edit Online
You can use a dataset that you create in Power BI Desktop as a data source for Power BI Report Builder paginated
reports. Picture this scenario: You've created a Power BI report in Power BI Desktop. You spent a lot of time
designing the data model, then created a beautiful Power BI report with all sorts of great visuals. Your report has a
matrix with many rows, so you have to scroll to see them all. Your report readers want a report they can print out,
that will show all the rows in that matrix. A Power BI paginated report can do that: print a table or matrix that runs
to multiple pages, with page headers and footers and a perfect page layout that you design. It will complement the
Power BI Desktop report. You want them to be based on the exact same data, no discrepancies, so you use the same
dataset.
The dataset doesn't have to be in a workspace in a Premium capacity, and you don't need to be a member of that
workspace. You just need to have Build permission for the dataset. To publish your paginated report, you do need a
Power BI Pro license. You also need at least a Contributor role for a workspace in a Premium capacity.
4. Search or browse for the dataset or the workspace where it resides > Select . Report Builder fills in the
dataset name.
5. The dataset is listed under Data Sources in the Report Data pane.
Remember, you can connect to multiple Power BI datasets and other data sources in the same paginated
report.
4. In the Performance Analyzer pane, select Star t recording , then select Refresh visuals .
5. Expand the plus sign (+ ) next to the table name, and select Copy quer y . The query is the DAX formula you
need for the dataset in Power BI Report Builder.
Create the dataset with the query
1. Go back to Power BI Report Builder.
2. Right-click the dataset under Data Sources and select Add Dataset .
NOTE
If your query includes the TOPN function, delete it from your query.
6. Select Execute Quer y (the red exclamation mark, !) to be sure your query works.
2. Choose the dataset you created with the DAX query > Next .
3. To make a flat table, select the fields you want in Available fields . You can select multiple fields at a time by
selecting the first one you want, holding the Shift key, and selecting the last one.
5. Another option is to make sure the number values are formatted well. Select a cell with a number value.
TIP
You can format more than cell at a time by holding down the Shift key while you select the other cells.
6. On the Home ribbon, in the Number section, change the Default format to a numeric format such as
Currency .
7. Change the Placeholder style to Sample Values so you can see the formatting in the cell.
8. If appropriate, in the Number section decrease the decimals to save more space.
Getting rid of blank pages
Even if you've made the margins and the table columns narrower, you may still end up with every other page being
blank. Why? Because of the math.
When you add up the page margins you set, plus the width of the body of the report, it has to be less than the
width of the report format.
For example, say your report has an 8.5" X 11" format and you've set the side margins to 0.75 each. The two
margins together make 1.5", so the body has to be less than 7" wide.
1. Select the right edge of the report design surface, and drag it so it's less than the desired number on the
ruler.
TIP
You can set it more accurately in the Body properties. Under Size , set the Width property.
2. Select Run to preview your report and make sure you've gotten rid of the blank pages. This report now has
only 26 pages, instead of the original 54. Success!
Limitations and considerations
For datasets that use a Live Connection to Analysis Services, you can connect directly by using the underlying
Analysis Services connection instead of a shared dataset.
Datasets with Promoted or Certified endorsements appear in the list of available datasets, but they aren't
marked as such.
You can't embed paginated reports that are based on Power BI shared datasets in the "App Owns Data" scenario.
Next steps
What are paginated reports in Power BI Premium?
Create parameters for paginated reports in the Power
BI service
8/13/2020 • 2 minutes to read • Edit Online
In this article, you learn how to create parameters for paginated reports in the Power BI service. A report parameter
provides a way to choose report data and vary the report presentation. You can provide a default value and a list of
available values, and your report readers can change the selection.
The following illustration shows Design view in Power BI Report Builder for a report with the parameters
@BuyingGroup, @Customer, @FromDate, and @ToDate.
Next steps
See View parameters for paginated reports to see how the parameters look in the Power BI service.
For in-depth information about parameters in paginated reports, see Report parameters in Power BI Report
Builder.
Set report views for paginated reports in the Power BI
service
8/13/2020 • 2 minutes to read • Edit Online
When you render a paginated report in the Power BI service, the default view is HTML based and interactive.
Another report view, for fixed page formats like PDF, is the new Page View option.
Default interactive view
Page View
In Page View, the rendered report looks different compared to the default view. Some properties and concepts in
paginated reports only apply to fixed pages. The view is similar to when the report is printed or exported. You can
still change some elements, like parameter values, but it doesn't have other interactive features such as column
sorting and toggles.
Page View supports all the features the browser's PDF Viewer supports, such as Zoom in, Zoom out, and Fit to
page.
2. You can change the settings of the page view by selecting the Page Settings in View menu on the toolbar.
The Page Settings dialog box has options to set Page Size and Orientation for the Page View. After you
apply page settings, the same options apply when you print the page later.
3. To switch back to the interactive view, select Default in the View dropdown box.
Browser support
Page View is supported in Google Chrome and Microsoft Edge browsers. Make sure that viewing PDFs in the
browser is enabled. It's the default setting for these browsers.
Page View isn't supported in Internet Explorer and Safari, so the option is disabled. It also isn't supported in
browsers on mobile devices, or in the native Power BI mobile apps.
Next steps
View a paginated report in the Power BI service
What are paginated reports in Power BI Premium?
Subreports in Power BI paginated reports
8/13/2020 • 5 minutes to read • Edit Online
A subreport is a paginated report item that displays another paginated report inside the body of a main paginated
report. Conceptually, a subreport in a report is similar to a frame in a Web page. You use it to embed a report
within a report. You can use any report as a subreport. You store the report that is displayed as the subreport in the
same Premium workspace as the parent report. You can design the parent report to pass parameters to the
subreport. A subreport can repeat within data regions, using a parameter to filter data in each instance of the
subreport.
In this illustration, the contact information displayed in the main Sales Order report actually comes from a Contacts
subreport.
You create and modify paginated report definition (.rdl) files in Power BI Report Builder. You can upload subreports
stored in SQL Server Reporting Services to a Premium workspace in the Power BI service. The main reports and
the subreports need to be published to the same workspace. Install Power BI Report Builder.
After signing in, you see a Power BI Ser vice option in Power BI Report Builder for the Open and Save As options
on the File menu. When you select the Power BI Ser vice option to save a report, you create a live connection
between Power BI Report Builder and the Power BI service.
NOTE
You can also upload a report by starting in the Power BI service. The same article, Publish a paginated report to the
Power BI service, has details.
3. In the Save As dialog box, select a Power BI Premium workspace where you can store your paginated
reports. Premium workspaces have a diamond icon next to their name.
4. Select Save .
NOTE
The parameter that you select from the subreport is a report parameter, not a query parameter.
You can place a subreport in the main body of the report or in a data region. If you place a subreport in a data
region, the subreport repeats with each instance of the group or row in the data region. You can pass a value from
the group or row to the subreport. In the subreport value property, use a field expression for the field containing
the value you want to pass to the subreport parameter.
For more about working with parameters and subreports, see Add a subreport and parameters in the SQL Server
Reporting Services documentation.
Considerations
Maintaining the connection
Report Builder doesn’t persist the connection to Power BI when you close the file. It's possible to work with a local
main report with subreports stored in the Power BI workspace. Be sure to save the main report to the Power BI
workspace before closing the report. If you don't, you may get a ‘not found’ message during preview, because
there's no live connection to the Power BI service. In that case, go to a subreport and select its properties. Open the
subreport again from the Power BI service. This re-establishes the connection, and all other subreports should be
fine.
Renaming a subreport
If you rename a subreport in the workspace, you need to fix the name reference in the main report. Otherwise, the
subreport won't render. The main report still renders with an error message inside the subreport item.
Next steps
Troubleshoot subreports in Power BI paginated reports
View a paginated report in the Power BI service
More questions? Try the Power BI Community
Troubleshoot subreports in Power BI paginated
reports
8/13/2020 • 3 minutes to read • Edit Online
Sometimes when using subreports in paginated reports, you may get an unexpected result, or the feature doesn't
work as you expected. This article provides solutions for common issues when using subreports. A subreport is a
report item that displays another report inside the body of a main paginated report. See Subreports in Power BI
paginated reports for more background.
Other errors
Description: Errors that don't fall into any of the previous categories.
Message
"Error: Subreport could not be shown."
Possible reasons
Multiple errors during subreport rendering, for example, parameter mismatch with data retrieval issues.
Unexpected errors.
Troubleshooting steps (for report authors)
1. Verify that the subreport can render directly.
2. If the subreport can render, check the parameters in both the subreport and main report.
3. Make sure the main report doesn't have more than 50 unique subreports, and the subreport isn't nested deeper
than 20 levels.
4. If you can't resolve the issue, contact Power BI support.
For non-authors: Contact the author.
Next steps
Subreports in Power BI paginated reports
View a paginated report in the Power BI service
More questions? Try the Power BI Community
Pass a report parameter in a URL for a paginated
report in Power BI
8/13/2020 • 2 minutes to read • Edit Online
You can pass report parameters to a report by including them in a paginated report URL. All query parameters can
have corresponding report parameters. Therefore, you pass a query parameter to a report by passing the
corresponding report parameter. You need to prefix the parameter name with rp: for Power BI to recognize it in
the URL.
Report parameters are case-sensitive and use these special characters:
A space in the parameter portion of the URL is replaced with a plus sign (+). For example:
rp:Holiday=Christmas+Day
A semicolon in any portion of the string is replaced with the characters %3A .
Browsers should automatically perform the proper URL encoding. You don't have to encode any of the characters
manually.
To set a report parameter within a URL, use the following syntax:
rp:parameter=value
For example, to specify two parameters, "Salesperson" and "State", defined in a report in your My Workspace,you'd
use the following URL:
https://app.powerbi.com/groups/me/rdlreports/xxxxxxx-abc7-40f0-b456-febzf9cdda4d?
rp:Salesperson=Tie+Bear&rp:State=Utah
To specify the same two parameters defined in a report in an app, you'd use the following URL:
https://app.powerbi.com/groups/me/apps/xxxxxxx-c4c4-4217-afd9-3920a0d1e2b0/rdlreports/b1d5e659-639e-41d0-b733-
05d2bca9853c?rp:Salesperson=Tiggee&rp:State=Utah
parameter:isnull=true
For example:
rp:SalesOrderNumber:isnull=true
To pass a Boolean value, use 0 for false and 1 for true. To pass a Float value, include the decimal separator of the
server locale.
NOTE
If your report contains a report parameter that has a default value, and the value of the Prompt property is false (that is,
the Prompt User property isn't selected in Report Manager), then you can't pass a value for that report parameter within a
URL. This provides administrators the option of preventing end users from adding or modifying the values of certain report
parameters.
Power BI does not support a query string of more than 2,000 characters. This value can be exceeded if you are using url
parameters to view your paginated report. It is especially true if you are using multi-value parameters.
Additional examples
The following URL example includes a multi-value parameter "Salesperson”. The format for a multi-value
parameter is to repeat the parameter name for each value.
https://app.powerbi.com/groups/me/rdlreports/xxxxxxx-abc7-40f0-b456-febzf9cdda4d?
rp:Salesperson=Tie+Bear&rp:Salesperson=Mickey
The following URL example passes a single parameter of SellStartDate with a value of "7/1/2005", for a native
mode report server.
https://app.powerbi.com/groups/me/rdlreports/xxxxxxx-abc7-40f0-b456-febzf9cdda4d?rp:SellStartDate=7/1/2005
Next steps
URL parameters in paginated reports in Power BI
What are paginated reports in Power BI Premium?
Publish a paginated report to the Power BI service
8/13/2020 • 2 minutes to read • Edit Online
In this article, you learn about publishing a paginated report to the Power BI service by uploading it from your
local computer. You can upload paginated reports to your My Workspace or any other workspace, as long as the
workspace is in a Premium capacity. Look for the diamond icon next to the workspace name.
If your report data source is on premises, you need to create a gateway after you upload the report. See the Create
a gateway section later in this article.
2. In the Edit workspace dialog box, expand Advanced , then slide Dedicated capacity to On .
You may not be able to change it. If not, then contact your Power BI Premium capacity admin to give you
assignment rights to add your workspace to a Premium capacity.
From Report Builder, publish a paginated report
1. Create your paginated report in Report Builder and save it to your local computer.
2. On the Report Builder File menu, select Save as .
If you aren't signed in to Power BI yet, you need to sign in or create an account now. In the upper-right
corner of Report Builder, select Sign in and complete the steps.
3. In the list of workspaces on the left, select a workspace with the diamond icon next to its name. Type a
File name in the box > Save .
4. Open the Power BI service in a browser and browse to the Premium workspace where you published the
paginated report. On the Repor ts tab, you see your report.
5. Select the paginated report to open it in the Power BI service. If it has parameters, you need to select them
before you can view the report.
6. If your report data source is on premises, read about how to create a gateway in this article to access the
data source.
8. Select it to open it in the Power BI service. If it has parameters, you need to select them before you can view
the report.
9. If your report data source is on premises, read about how to create a gateway in this article to access the
data source.
Create a gateway
Just like any other Power BI report, if the report data source is on premises, then you need to create or connect to
a gateway to access the data.
1. Next to the report name, select Manage .
2. See the Power BI service article What is an on-premises data gateway for details and next steps.
Next steps
View a paginated report in the Power BI service
What are paginated reports in Power BI Premium?
Tutorial: Embed Power BI paginated reports into an application for your customers
Introduction to dashboards for Power BI designers
8/13/2020 • 3 minutes to read • Edit Online
A Power BI dashboard is a single page, often called a canvas, that tells a story through visualizations. Because it's
limited to one page, a well-designed dashboard contains only the highlights of that story. Readers can view related
reports for the details.
Dashboards are a feature of the Power BI service only. They're not available in Power BI Desktop. Although you
can't create dashboards on mobile devices, you can view and share them there.
Dashboard basics
The visualizations you see on the dashboard are called tiles. You pin tiles to a dashboard from reports. If you're new
to Power BI, you can get a good foundation by reading Basic concepts for designers in the Power BI service.
The visualizations on a dashboard originate from reports and each report is based on a dataset. One way to think
of a dashboard is as an entryway to the underlying reports and datasets. Selecting a visualization takes you to the
report (and dataset) that it's based on.
Advantages of dashboards
Dashboards are a wonderful way to monitor your business and see all of your most important metrics at a glance.
The visualizations on a dashboard can come from one underlying dataset or many, and from one underlying report
or many. A dashboard combines on-premises and cloud data, providing a consolidated view regardless of where
the data lives.
A dashboard isn't just a pretty picture. It's highly interactive and the tiles update as the underlying data changes.
IMPORTANT
You need a Power BI Pro license to create dashboards in workspaces. You can create dashboards in your own My Workspace
without a Power BI Pro license.
C A PA B IL IT Y DA SH B O A RDS REP O RT S
Data sources One or more reports and one or more A single dataset per report
datasets per dashboard
Subscribe Yes. Can subscribe to a dashboard Yes. Can subscribe to a report page
Filtering No. Can't filter or slice Yes. Many different ways to filter,
highlight, and slice
Favorite Yes. Can set multiple dashboards as Yes. Can set multiple reports as
favorites favorites
Natural language queries (Q&A) Yes Yes, provided you have edit permissions
for the report and underlying dataset
C A PA B IL IT Y DA SH B O A RDS REP O RT S
Can see underlying dataset tables and No. Can export data but can't see tables Yes
fields and fields in the dashboard itself
Next steps
Get comfortable with dashboards by taking a tour of one of our sample dashboards.
Learn about dashboard tiles.
Want to track an individual dashboard tile and receive an email when it reaches a certain threshold? Create an
alert on a tile.
Learn how to use Power BI Q&A to ask a question about your data and get the answer in the form of a
visualization.
Intro to dashboard tiles for Power BI designers
8/13/2020 • 4 minutes to read • Edit Online
A tile is a snapshot of your data, pinned to the dashboard. A tile can be created from a report, dataset, dashboard,
the Q&A box, Excel, SQL Server Reporting Services (SSRS) reports, and more. This screenshot shows many
different tiles pinned to a dashboard.
Dashboards and dashboard tiles are a feature of Power BI service, not Power BI Desktop. You can't create
dashboards on mobile devices but you can view and share them there.
Besides pinning tiles, you can create standalone tiles directly on the dashboard by using the Add tile control.
Standalone tiles include: text boxes, images, videos, streaming data, and web content.
Need help with understanding the building blocks that make up Power BI? See Basic concepts for designers in the
Power BI service.
NOTE
If the original visualization used to create the tile changes, the tile doesn't change. For example, if you pinned a line chart
from a report and then you changed the line chart to a bar chart, the dashboard tile continues to show a line chart. The
data refreshes, but the visualization type does not.
Pin a tile
There are many different ways to add (pin) a tile to a dashboard. You can pin tiles from:
Power BI Q&A
A report
Another dashboard
Excel workbook on OneDrive for Business
Quick Insights
An on-premises paginated report in Power BI Report Server or SQL Server Reporting Services
You create standalone tiles for images, text boxes, videos, streaming data, and web content directly on the
dashboard by using the Add tile control.
Interact with tiles on a dashboard
After you've added a tile to a dashboard, you can move and resize it, or change its appearance and behavior.
Move and resize a tile
Grab a tile and move it around on the dashboard. Hover and select the handle to resize the tile.
Hover over a tile to change the appearance and behavior
1. Hover over the tile to display the ellipsis.
NOTE
An exception is video tiles created directly on the dashboard by using Add tile . Selecting a video tile (that was created this
way) causes the video to play directly on the dashboard.
Next steps
Create a card (large number tile) for your dashboard
Introduction to dashboards for Power BI designers
Data refresh in Power BI
Basic concepts for designers in the Power BI service
Integrating Power BI tiles into Office documents
Pin Reporting Services items to Power BI dashboards
More questions? Try the Power BI Community.
Create a Power BI dashboard from a report
8/13/2020 • 3 minutes to read • Edit Online
You've read Introduction to dashboards in Power BI, and now you want to create your own. There are many
different ways to create a dashboard. For example, you can create a dashboard from a report, from scratch, from a
dataset, or by duplicating an existing dashboard.
We start by creating a quick and easy dashboard that pins visualizations from a report that's already been built.
After you complete this article, you'll have a good understanding of:
The relationship between dashboards and reports
How to open Editing view in the report editor
How to pin tiles
How to navigate between a dashboard and a report
NOTE
Dashboards are a feature of the Power BI service, not Power BI Desktop. Although you don't create dashboards in the Power
BI mobile apps, you can view and share there.
5. Navigate to the location where you saved the Procurement Analysis sample Excel file. Select it and choose
Connect .
TIP
Did you know? You can narrow the nav pane by selecting the icon with three lines at the top . That gives you more
room for the report itself.
The report opens in Reading view. Notice it has two tabs on the left: Discount Analysis and Spend
Over view . Each tab represents a page of the report.
2. Select More options (...) > Edit repor t to open the report in Editing view.
3. Hover over a visualization to reveal the options available. To add a visualization to a dashboard, select the
pin icon .
4. Because we're creating a new dashboard, select the option for New dashboard and give it a name.
5. When you select Pin , Power BI creates the new dashboard in the current workspace. After the Pinned to
dashboard message appears, select Go to dashboard . If you're prompted to save the report, choose
Save .
Power BI opens the new dashboard. It has one tile: the visualization you just pinned.
6. Select the tile to return to the report. Pin a few more tiles to the new dashboard. When the Pin to
dashboard window displays, select Existing dashboard .
2. We want all of the visuals in the report on your dashboard. In the upper-right corner of the menubar, select
Pin live page . On a dashboard, live page tiles update each time the page is refreshed.
3. When the Pin to dashboard window appears, select Existing dashboard .
4. After the Success message appears, select Go to dashboard . There you see the tiles you pinned from the
report. In the example below, we've pinned two tiles from page one of the report and one live tile, which is
page two of the report.
Next steps
Congratulations on creating your first dashboard! Now that you have a dashboard, there's much more you can do
with it. Follow one of the suggested articles below, or start exploring on your own:
Resize and move tiles
All about dashboard tiles
Share your dashboard by creating an app
Power BI - Basic Concepts
Tips for designing a great dashboard
More questions? Try the Power BI Community.
Create a copy of a dashboard in Power BI service
8/13/2020 • 2 minutes to read • Edit Online
There are many different reasons to make a copy of a dashboard. Maybe you want to make changes and test its
performance against the original; or create slightly different versions to distribute by colleague, region, or team.
Perhaps a colleague admires your dashboard design and wants to use it for reporting out to their managers.
Another reason would be if you have a new database with the same data structure and data types and want to
reuse the dashboard you've already created -- this too can be done but would require some work in Power BI
Desktop.
Dashboards are created (and copied) using Power BI service and can be viewed in Power BI mobile and Power BI
Embedded. Dashboards are not available in Power BI Desktop.
To make a copy of a dashboard, you must be the dashboard creator. Dashboards that have been shared with you as
an app cannot be duplicated.
1. Open the dashboard.
2. From the top-right corner, select More options (...) and choose Duplicate dashboard .
Next steps
Tips for designing a great dashboard
More questions? Try the Power BI Community
Pin a tile to a Power BI dashboard from a report
8/13/2020 • 2 minutes to read • Edit Online
One way to add a dashboard tile is from within a Power BI report. When you select one of these tiles, it opens in
the report.
An entire report page can be pinned to a dashboard, which is called pinning a live tile. It's called a live tile because
you can interact with the tile on the dashboard. Unlike with individual visualization tiles, changes made in the
report are automatically synced with the dashboard. For more information, see Pin an entire report page.
You can't pin tiles from reports that have been shared with you or from Power BI Desktop.
TIP
Because some visualizations use background images, pinning might not work if the background image is too large. Try
reducing the image size or using image compression.
1. In the report, hover over the visualization you want to pin, and select the pin icon. . Power BI opens the
Pin to dashboard screen.
NOTE
Some formatting options are not applied to visuals when they're pinned to a dashboard. Border, shadow, and background
settings will be ignored in the pinned tile. For card visuals, the text used for the value is always shown in dashboards using
the 'DIN' font family.
Next steps
Dashboards for Power BI service consumers
Dashboard tiles in Power BI
Reports in Power BI
Data refresh in Power BI
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Pin a tile from one dashboard to another dashboard
8/13/2020 • 2 minutes to read • Edit Online
One way to add a new dashboard tile is by copying it from another dashboard. Each of these tiles, when clicked, is
a link back to where it was created -- either in Q&A or a report.
NOTE
You cannot pin tiles from shared dashboards.
5. Select Pin . A Success message (near the top right corner) lets you know the visualization was added, as a
tile, to the selected dashboard.
6. Select Go to dashboard to see the pinned tile. There, you can rename, resize, link, and move the pinned
visualization.
Next steps
Tiles in Power BI
Dashboards in Power BI
More questions? Try the Power BI Community
Pin a tile to a Power BI dashboard from Excel
8/13/2020 • 3 minutes to read • Edit Online
Before you can pin a tile from your Excel workbook, you'll connect that workbook to Power BI service
(app.powerbi.com). Connecting a workbook essentially brings a linked read-only version of that workbook into
Power BI service and allows you to pin ranges to dashboards. You can even pin an entire worksheet to a
dashboard.
If a workbook has been shared with you, you'll have the ability to view the tiles pinned by the owner, but not create
any dashboard tiles yourself.
For in-depth information about how Excel and Power BI work together, see Get data from Excel workbook files.
Watch Will demonstrate several ways to import data from, and connect to, Excel workbooks.
https://www.youtube.com/embed/l8JoB7w0zJA
3. In Power BI, the workbook is added to the Workbooks tab of your workspace. The icon indicates this is
an Excel workbook and a yellow asterisk indicates it's new.
4. Open the workbook in Power BI by selecting the workbook name.
Changes you make to the workbook in Power BI are not saved and do not affect the original workbook on
OneDrive for Business. If you sort, filter, or change values in Power BI, those changes cannot be saved or
pinned. If you need to make changes that will be saved, select Edit from the upper-right corner to open it
for editing in Excel Online or Excel. Changes made this way may take a few minutes to update the tiles on
the dashboards.
5. Select Go to dashboard . From here you can rename, resize, link, and move the pinned visualization. By
default, selecting the pinned tile opens the workbook in Power BI.
A tile created from a table or PivotTable will show the entire table. If you add/remove/filter rows or columns in the
original workbook, they will also be added/removed/filtered in the tile.
Next steps
Share a dashboard that has links to an Excel workbook
Get data from Excel workbooks
More questions? Try the Power BI Community
Pin a tile to a dashboard from Q&A
8/13/2020 • 2 minutes to read • Edit Online
3. For example, as you type "last year sales by month and territory"...
4. To add the chart to your dashboard as a tile, select the pin on the top-right side of the canvas. If the
dashboard has been shared with you, you won't be able to pin any visualizations.
5. Pin the tile to an existing dashboard or to a new dashboard.
Existing dashboard: select the name of the dashboard from the dropdown. Your choices will be limited to
only those dashboards within the current workspace.
New dashboard: type the name of the new dashboard and it will be added to your current workspace.
6. Select Pin .
A success message (near the top-right corner) lets you know the visualization was added, as a tile, to your
dashboard.
7. Select Go to dashboard to see the new tile. There, you can rename, resize, add a hyperlink, reposition the
tile, and more on your dashboard.
How does Q&A know which datasets to use ? Q&A has access to all datasets that have at least one
visualization pinned to that dashboard.
Don't see the question box ? Check with your Power BI administrator. The administrator has the ability to
disable Q&A.
Next steps
Rename, resize, add a hyperlink, reposition the tile, and more
Display your dashboard tile in Focus mode
Back to Q&A in Power BI
More questions? Try the Power BI Community
Pin an entire report page, as a live tile, to a Power BI
dashboard
8/13/2020 • 2 minutes to read • Edit Online
Another way to add a new dashboard tile is by pinning an entire report page. This is an easy way to pin more than
one visualization at a time. Also, when you pin an entire page, the tiles are live; you can interact with them right
there on the dashboard. And changes you make to any of the visualizations back in the report editor, like adding a
filter or changing the fields used in the chart, are reflected in the dashboard tile as well.
Pinning live tiles from reports to dashboards is only available in Power BI service (app.powerbi.com).
NOTE
You can't pin tiles from reports that are shared with you.
3. Pin the tile to an existing dashboard or to a new dashboard. Notice the highlighted text: Pin live page
enables changes to reports to appear in the dashboard tile when the page is refreshed.
Existing dashboard: select the name of the dashboard from the dropdown. Dashboards that have
been shared with you will not appear in the dropdown.
New dashboard: type the name of the new dashboard.
4. Select Pin live . A Success message (near the top right corner) lets you know the page was added, as a tile,
to your dashboard.
Next steps
Dashboards in Power BI
More questions? Try the Power BI Community
Data alerts in the Power BI service
8/13/2020 • 3 minutes to read • Edit Online
Set alerts to notify you when data in your dashboards changes beyond limits you set.
You can set alerts on tiles in your My Workspace. You can also set alerts if someone shares a dashboard that's in a
Premium capacity. If you have a Power BI Pro license, you can set alerts on tiles in any other workspace, too. Alerts
can only be set on tiles pinned from report visuals, and only on gauges, KPIs, and cards. Alerts can be set on visuals
created from streaming datasets that you pin from a report to a dashboard. Alerts can't be set on streaming tiles
created directly on the dashboard using Add tile > Custom streaming data .
Only you can see the alerts you set, even if you share your dashboard. Even the dashboard owner can't see alerts
you set on your view of their dashboard. Data alerts are fully synchronized across platforms; set and view data
alerts in the Power BI mobile apps and in the Power BI service. They aren't available for Power BI Desktop. You can
even automate and integrate alerts with Power Automate. You can try it yourself in this Power Automate and Power
BI article.
WARNING
Data-driven alert notifications provide information about your data. If you view your Power BI data on a mobile device and
that device is lost or stolen, we recommend using the Power BI service to turn off all data-driven alert rules.
2. Select the bell icon to add one or more alerts for Total Stores .
3. To start, select + Add aler t rule , ensure the Active slider is set to On , and give your alert a title. Titles help
you easily recognize your alerts.
4. Scroll down and enter the alert details. In this example, you'll create an alert that notifies you once a day if
the number of total stores goes above 100.
Alerts appear in your Notification center . Power BI also sends you an email about the alert, if you select
the check box.
5. Select Save and close .
Receiving alerts
When the tracked data reaches one of the thresholds you've set, several things happen. First, Power BI checks to see
if it's been more than an hour or more than 24 hours (depending on the option you selected) since the last alert. If
the data is past the threshold, you'll get an alert.
Next, Power BI sends an alert to your Notification center and, optionally, an email. Each alert contains a direct
link to your data. Select the link to see the relevant tile where you can explore, share, and learn more.
If you've set the alert to send you an email, you'll find something like this in your Inbox.
Power BI adds a message to your Notification center and adds a new alert icon to the applicable tile.
NOTE
Alerts only work on refreshed data. When data refreshes, Power BI looks to see if an alert is set for that data. If the
data has reached an alert threshold, Power BI triggers an alert.
Managing alerts
There are many ways to manage your alerts:
From the dashboard tile.
From the Power BI Settings menu.
On a tile in the Power BI mobile apps.
From the dashboard tile
1. If you need to change or remove an alert for a tile, reopen the Manage aler ts window by selecting the bell
icon .
Power BI displays the alert(s) that you've set for that tile.
2. To modify an alert, select the arrow to the left of the alert name.
3. To delete an alert, select the trashcan to the right of the alert name.
.
2. Under Settings select Aler ts .
3. From here you can turn alerts on and off, open the Manage aler ts window to make changes, or delete the
alert.
Next steps
Create a Power Automate that includes a data alert.
Set data alerts on your mobile device.
What is Power BI?
More questions? Try asking the Power BI Community
Add images, videos, and more to your dashboard
8/13/2020 • 6 minutes to read • Edit Online
By adding a tile to your dashboard, you can place an image, text box, video, streaming data, or web code on your
dashboard.
Watch Amanda add tiles to a dashboard.
https://www.youtube.com/embed/e2PD8m1Q0vU
Add a video
When you add a YouTube or Vimeo video tile to your dashboard, the video plays right on your dashboard.
1. From the Add tile window, select Video > Next .
2. Add video information in the Add video tile window:
a. To display a title and subtitle at the top of the video tile, select Display title and subtitle and enter a
Title and an optional Subtitle . In this example, we'll add a Subtitle , and then convert it to a hyperlink to
the entire YouTube playlist.
b. Enter the Video URL for the video.
c. Add a hyperlink for the Title and Subtitle , so that your colleagues can view the entire playlist on
YouTube after they watch the embedded video. To do so, under Functionality , select Set custom link ,
and then enter the URL for the playlist.
d. Select Apply .
3. On the dashboard, resize and move the web content tile as needed.
Tips for embedding web content
For iframes, use a secure source. If you enter your iframe embed code and get a blank tile, verify you're not
using http for the iframe source. If you are, change it to https.
<iframe src="https://xyz.com">
Edit width and height information. The embed code embeds a video and sets the video player to 560 x 315
pixels. This size doesn't change as you resize the tile.
If you'd like the player to resize to fit the tile size, set the width and height to 100%.
This code embeds a tweet and retains, as separate links on the dashboard, links for the AFK podcast,
@GuyInACube's Twitter page, Follow, #analytics, reply, retweet, and like. Selecting the tile itself takes you to
the podcast on Twitter.
Edit a tile
To make changes to an existing tile:
1. Hover over the top-right corner of the tile and select More options (...).
2. Select Edit details to display the Tile details window and make changes.
Considerations and troubleshooting
To make it easier to move the tile on your dashboard, add a title and an optional subtitle.
If you'd like to embed content from a website, but the website doesn't provide embed code to copy and paste,
see embed.ly for help with generating the embed code.
Next steps
Intro to dashboard tiles for Power BI designers
More questions? Try the Power BI Community.
Edit or remove a dashboard tile
8/13/2020 • 3 minutes to read • Edit Online
TIP
To change the visualization shown on the tile itself, delete the tile and add a new dashboard tile.
Prerequisites
To follow along, open Power BI service (not Power BI Desktop) and download the IT Spend Analysis sample.
When the "Success" message appears, select Go to dashboard
2. Open the report in Editing view by selecting Edit repor t from the top menubar.
3. Add a new report page by selecting the plus sign (+) at the bottom of the report.
4. From the FIELDS pane, select Fact > Amount and Business Area > Business Area .
5. From the VISUALIZATIONS pane, select the Donut chart icon to convert the visualization to a Donut
chart.
6. Select the pin icon and pin the Donut chart to the IT Spend Analysis sample dashboard.
7. When the "Success"message appears, select Go to dashboard . You will be prompted to save your
changes. Select Save .
2. Hover over the "Account" tile and select the ellipses to display the options. The options available will
vary by tile type. For example, the options available for a live tile are different from options available for
a standard visualization tile. Also, if a dashboard has been shared with you (you are not the owner), you
will have fewer options.
3. Select Apply .
4. The new title displays on the tile. And, when you select the tile, Power BI opens the Human Resources
dashboard.
Next steps
Dashboard tiles in Power BI
Dashboards in Power BI
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Tips for designing a great Power BI dashboard
8/13/2020 • 4 minutes to read • Edit Online
Now that you've created a dashboard and added some tiles, think about how to make your dashboard not just
pretty, but also functional. In general, it means making the most important information stand out and making it
clean and uncluttered.
TIP
Like this dashboard? You can download it and related reports from AppSource. Go to Get data > Ser vices . Search for
Microsoft Sample - Sales & Marketing > Get it now .
Next steps
Create a dashboard from a report
Basic concepts for designers in the Power BI service
More questions? Try the Power BI Community
Optimize a dashboard for mobile phones - Power BI
8/13/2020 • 2 minutes to read • Edit Online
When you view dashboards in portrait mode on a phone, you notice the dashboard tiles are laid out one after
another, all the same size. In the Power BI service, you can create a customized view of a dashboard, specifically for
portrait mode on phones. Even if you create a phone view, when you turn the phone sideways, you see the
dashboard as it's laid out in the service.
Are you looking for information about viewing dashboards on a mobile device? Try this quickstart Explore
dashboards and reports in the Power BI mobile apps instead.
NOTE
As you edit the phone view, anyone viewing the dashboard on a phone can see the changes you make in real time. For
example, if you unpin all tiles on the dashboard phone view, the dashboard on the phone will suddenly have no tiles.
If you aren't the dashboard owner, you won't see this option.
The phone dashboard edit view opens. Here you can unpin, resize, and rearrange tiles to fit the phone view.
The web version of the dashboard doesn't change.
3. Select a tile to drag, resize, or unpin it. You notice the other tiles move out of the way as you drag a tile.
The unpinned tiles go in the Unpinned tiles pane, where they stay unless you add them back.
4. If you change your mind, select Reset tiles to put them back in the size and order they were before.
Just opening Phone Edit view in the Power BI service slightly changes the size and shape of the tiles on a
phone. So to return the dashboard to its exact state before you opened it in Phone Edit view, select Reset
tiles .
5. When you're satisfied with the phone dashboard layout, select the arrow next to Phone view in the upper-
right corner > select Web view .
Power BI saves the phone layout automatically.
Next steps
Create reports optimized for the Power BI phone apps
Create responsive visuals optimized for any size
More questions? Try asking the Power BI Community
Create a QR code for a tile in Power BI to use in the
mobile apps
8/13/2020 • 2 minutes to read • Edit Online
QR codes in Power BI can connect anything in the real world directly to related BI information no navigation or
search needed.
You can create a QR code in the Power BI service for tiles in any dashboard, even in dashboards you can't edit. Then
place the QR code in a key location. For example, you could paste it in an email, or print it out and paste it in a
specific location.
Colleagues you've shared the dashboard with can scan the QR code for access to the tile, right from their mobile
device. They can use either the QR code scanner located in the Power BI app, or any other QR scanner installed on
their device.
2. Select More options (...) in the top-right corner of the tile and select Focus mode .
3. Select More options (...) in the top-right corner and select Generate QR code .
5. From here you can scan the QR code or download and save it so you can:
Add it to an email or other document, or
Print it and place it in a specific location.
TIP
The JPG file has the same name as the tile. For example, "Opportunity Count - by Month, Sales Stage.jpg".
Next steps
Connect to Power BI data from the real world with the mobile apps
Scan a Power BI QR code from your mobile device
Create a QR code for a report
Questions? Try asking the Power BI Community
Dashboard data classification
8/13/2020 • 3 minutes to read • Edit Online
Every dashboard is different, and depending on the data source you are connecting to, you will likely find that you
and the colleagues you share with will need to take different precautions depending on the sensitivity of the data.
Some dashboards should never be shared with those outside your company or printed out, while others can be
shared freely. By using dashboard data classification, you will be able to raise awareness with those viewing your
dashboards about what level of security should be used. You can tag your dashboards with classifications defined
by your company’s IT department, so everyone viewing the content will have the same level of understanding
around the sensitivity of the data.
It will also show up next to the dashboard tile in your Favorites list.
When you hover over the tag, you will see the full name of the classification.
Admins can also set an URL for a tag to provide additional information.
NOTE
Depending the classification settings set by your admin, some classification types may not show as a tag on the dashboard. If
you are a dashboard owner, you can always check your dashboard classification type under the dashboard settings.
2. Under Dashboard settings, you will be able to see the current classification for your dashboard and use the
drop down to change the classification type.
3. Select Apply when finished.
After you apply the change, anyone you shared with will see the update the next time they reload the dashboard.
2. Switch Data classification for dashboards and repor ts to on within the Tenant settings tab.
Once turned on, you will be presented with a form to create the various classifications in your organization.
Each classification has a name and a shor thand which will appear on the dashboard. For each classification, you
can decide if the shorthand tag will appear on the dashboard or not by selecting Show tag . If you decide not to
show the classification type on the dashboard, the owner will still be able to see the type by checking the dashboard
settings. Additionally, you can optionally add a URL that contains more information about your organization’s
classification guidelines and usage requirements.
The last thing you need to decide is which classification type will be the default.
Once you fill in the form with your classification types, select Apply to save the changes.
At this point, all dashboards will be assigned the default classification. Dashboard owners can now update the
classification type to the one appropriate for their content. You can return here in the future to add or remove
classification types or change the default.
NOTE
There are a few important things to remember when you come back to make changes:
If you turn data classification off, none of the tags are remembered. You will need to start over if you decide to turn it back
on later.
If you remove a classification type, any dashboards assigned the removed classification type will be assigned back to the
default until the owner goes and sets it again.
If you change the default, all dashboards that weren’t already assigned a classification type by the owner will change to
the new default.
Use Dashboard Themes in Power BI service
8/13/2020 • 2 minutes to read • Edit Online
With Dashboard Themes you can apply a color theme to your entire dashboard, such as corporate colors,
seasonal coloring, or any other color theme you might want to apply. When you apply a Dashboard Theme , all
visuals on your dashboard use the colors from your selected theme (a few exceptions apply, described later in this
article).
Changing the colors of the report visuals on the dashboard will not affect the visuals in the report. Also, when you
pin tiles from a report that already has a report theme applied, you'll have the choice to keep the current theme or
use the dashboard theme.
Prerequisites
To follow along, open the Sales and Marketing sample dashboard.
You can also save your custom theme as a JSON file and then share it with other dashboard creators.
Use a theme from the Theme Gallery
Like the built-in and custom options, when the theme is uploaded, the colors will automatically be applied to all tiles
on the dashboard.
1. Hover over a theme and choose View repor t .
2. Scroll down and find the link to the JSON file. Select the download icon and save the file.
3. Back in Power BI service, in the Custom Dashboard theme window, select Upload JSON theme .
4. Navigate to the location where you saved the JSON theme file and select Open .
5. On the Dashboard theme page, select Save . The new theme is applied to your dashboard.
Dashboard themes cannot be applied to pinned live report pages, iframe tiles, SSRS tiles, workbook tiles, or
images.
Dashboard themes can be viewed on mobile devices but creating a dashboard theme can only be done in
Power BI service.
Dashboard custom themes only work with tiles pinned from reports.
Get started with deployment pipelines (preview)
8/13/2020 • 8 minutes to read • Edit Online
This article walks you through the basic settings required for using deployment pipelines.
NOTE
You'll also be able to see the deployment pipelines button, if you previously created a pipeline, or if a pipeline was shared
with you.
NOTE
Only workspaces that can be used with deployment pipelines, will show in the list of workspaces you can select from.
Selective deployment
To deploy only specific items, click the Show more link, and select the items you wish to deploy. When clicking
the deploy button, only the selected items are deployed to the next stage.
Since dashboards, reports and datasets are related and have dependencies, you can use the select related button
to check all items that those items are dependent on. For example, if you want to deploy a report to the next stage,
clicking the select related button will mark the dataset that the report is connected to, so that both will be
deployed at once and the report will not break.
NOTE
You can't deploy a report or dashboard to next stage if the items it's dependent on do not exist in the stage you are
deploying to.
You might get unexpected results if you choose to deploy a report or dashboard without its dataset. This can happen
when the dataset in the target stage, has changed and is no longer identical to the one in the stage you're deploying
from.
Backwards deployment
You can choose to deploy to a previous stage, for example in a scenario where you assign an existing workspace to
a production stage and then deploy it backwards, first to the test stage, and then to the development one.
Deploying to a previous stage works only if the previous stage is empty of content. When deploying to previous
stage, you can't select specific items. All content in the stage will be deployed.
NOTE
Dataset rules work only when the source and target data source are of the same type.
2. From the Deployment settings pane, select the dataset you want to create a rule for.
3. Select the type of rule you want to create, expand the list, and click Add rule .
Dataset rule types
There are two types of rules you can create:
Data source rules The data source list is taken from the dataset of the source pipeline stage. From the
data source list, select a data source to be replaced. Use one of the following methods to select a value to
replace the one from the source stage:
1. Select from a list.
2. Click Other and manually add the new data source. You can only change to a data source from the
same type.
Parameter rules Select a parameter from the list of parameters; the current value is shown. Edit the value
to the value you want to take effect after each deployment.
Dataset rule limitations
You must be the dataset owner to create a dataset rule.
Dataset rules cannot be created in the development stage.
When an item is removed or deleted, its rules are deleted too. These rules cannot be restored.
If the data source or parameters defined in a rule are changed or removed from the source dataset, the rule
will not be valid and the deployment will fail.
Parameter rules cannot be defined for parameters that are of type Any or Binary. For more information, see
datasets update parameters restrictions.
Data source rules can only be defined for the following data sources:
Azure Analysis services
SQL Server Analysis Services (SSAS)
Azure SQL Server
SQL server
Odata Feed
Oracle
SapHana (only supported for import mode; not direct query mode)
SharePoint
Teradata
For other data sources, we recommend using parameters to configure your data source.
Comparing stages
When two sequential stages have content, the content is compared based on the content items metadata. This
comparison doesn't include comparing data or refresh time between stages.
To allow a quick visual insight into the differences between two sequential stages, a comparison icon indicator
appears between them. The comparison indicator has two states:
Green indicator – The metadata for each content item in both stages, is the same.
Orange indicator - Appears if one of these conditions is met:
Some of the content items in each stage, were changed or updated (have different metadata).
There is a difference in the number of items between the stages.
When two sequential stages aren't the same, a compare link appears underneath the orange comparison icon.
Clicking the link opens the content item list in both stages in Compare view. Compare view helps you track
changes or differences between items, in each pipeline stage. Changed items get one of the following labels:
New – A new item in the source stage. This is an item that doesn't exist in the target stage. After
deployment, this item will be cloned to the target stage.
Different – An item that exists both in the source and the target stage, were one of the versions was
changed after the last deployment. After deployment, the item in the source stage will overwrite the item in
the target stage, regardless of where the change was made.
Missing from – This label indicates that an item appears in the target stage, but not in the source stage.
NOTE
Deployment will not impact missing from items.
Overriding content
When you deploy after making changes to content in the source stage, the content you changed in the target stage
is overwritten. After clicking deploy, you'll get a warning listing the number of items that will be overwritten.
You can learn more about which items are copied to the next stage, and which items are not copied, in Understand
the deployment process.
Next steps
Introduction to deployment pipelines
Understand the deployment pipelines process
Deployment pipelines troubleshooting
Deployment pipelines best practices
Deployment pipelines troubleshooting (preview)
8/13/2020 • 5 minutes to read • Edit Online
General
What's deployment pipelines in Power BI
To understand what's deployment pipelines in Power BI, refer to the deployment pipelines overview.
How do I get started with deployment pipelines?
Get started with deployment pipelines using the get started instructions.
Why can't I see the deployment pipelines button?
If the following conditions are not met, you'll not be able to see the deployment pipelines button.
You're a Power BI Pro user
You belong to an organization that has Premium capacity
A workspace can only be assigned to a single pipeline
You're an admin of a new workspace
Licensing
What licenses are needed to work with deployment pipelines?
To use deployment pipelines, you need to be a Pro user with Premium capacity. For more information, see
accessing deployment pipelines.
What type of capacity can I assign to a workspace in a pipeline?
All workspaces in a deployment pipeline must reside within a dedicated capacity for the pipeline to be functional.
However, you can use different capacities for different workspaces in a pipeline. You can also use different capacity
types for different workspaces in the same pipeline.
For development and testing, you can use A or EM capacity alongside a Pro Power BI account for each user.
For production workspaces, you need a P capacity. If you're an ISV distributing content through embedded
applications, you can also use A or EM capacities for production.
Technical
Why can't I see all my workspaces when I try to assign a workspace to a pipeline?
To assign a workspace to a pipeline, the following conditions must be met:
The workspace is a new workspace experience
You're an admin of the workspace
The workspace is not assigned to any other pipeline
The workspace resides on a premium capacity
Workspaces that don't meet these conditions, are not displayed in the list of workspaces you can select from.
How can I assign workspaces to all the stages in a pipeline?
You can assign one workspace per pipeline. Once a workspace is assigned to a pipeline, you can deploy it to the
next pipeline stages. During first time deployment, a new workspace is created with copies of the items in the
source stage. The relationships of the copied items are kept. For more information, see how to assign a workspace
to a deployment pipeline.
Why did my first deployment fail?
Your first deployment may have failed due to a number of reasons. Some of these reasons are listed in the table
below.
ERRO R A C T IO N
You don't have premium capacity permissions. To get premium capacity permissions, ask a capacity admin to
add your workspace to a capacity, or ask for assignment
permissions for the capacity. After the workspace is in a
capacity, redeploy.
You don't have workspace permissions. To deploy you need to be a workspace member. Ask your
workspace admin to grant you the appropriate permissions.
Your Power BI admin disabled the creation of workspaces. Contact your Power BI admin for support.
Your workspace isn't a new workspace experience. Create your content in the new workspace experience. If you
have content in a classic workspace, you can upgrade it to a
new workspace experience.
Your using selective deployment and are not selecting your Do one of the following:
content's dataset. Unselect the content that is linked to your dataset. Your
unselected content (such as reports or dashboards) will not
be copied to the next stage.
I'm getting a warning that I have 'unsupported artifacts' in my workspace when I'm trying to deploy. How can I
know which artifacts are not supported?
For a comprehensive list of items and artifacts that are not supported in deployment pipelines, see the following
sections:
Unsupported items
Item properties that are not copied
Why did my deployment fail due to broken rules?
If you have problems configuring dataset rules, visit dataset rules, and make sure you follow the dataset rule
limitations.
If your deployment was previously successful, and is suddenly failing with broken rules, it may be due to a dataset
being republished. The following changes to the source dataset, result in a failed deployment:
Parameter rules
A removed parameter
A changed parameter name
Data source rules
Your dataset rules are missing values. This may have happened if your dataset changed.
When a previously successful deployment fails due to broken links, a warning is displayed. You can click
Configure rules to navigate to the deployment settings pane, where the failed dataset is marked. When you click
the dataset, the broken rules are marked.
To deploy successfully, fix or remove the broken rules, and redeploy.
How can I change the data source in the pipeline stages?
You can’t change the data source connection in Power BI service.
If you want to change the data source in the test or production stages, you can use dataset rules or APIs. Dataset
rules will only come into effect after the next deployment.
I fixed a bug in production, but now I can't click the 'deploy to previous stage' button. Why is it greyed out?
You can only deploy backwards to an empty stage. If you have content in the test stage, you will not be able to
deploy backwards from production.
After creating the pipeline, use the development stage to develop your content, and the test stages to review and
test it. You can fix bugs in these stages, and then deploy the fixed environment to the production stage.
NOTE
Backwards deployment only supports full deployment. It doesn't support selective deployment
Permissions
What is the deployment pipelines permissions model?
The deployment pipelines permissions model is described the permissions section.
Who can deploy content between stages?
Content can be deployed to an empty stage or to a stage that contains content. The content must reside on a
premium capacity.
Deploying to an empty stage - Any Pro user that's a member or admin in the source workspace.
Deploying to a stage with content - Any Pro user who's a member or admin of both workspaces in the
source and target deployment stages.
Overriding a dataset - Deployment overrides each dataset that is included in the target stage, even if the
dataset wasn't changed. The user must be the owner of all the target stage datasets specified in the
deployment.
Which permissions do I need to configure dataset rules?
To configure dataset rules in deployment pipelines, you must be the dataset owner.
Why can't I see workspaces in the pipeline?
Pipeline and workspace permissions are managed separately. You may have pipeline permissions, but not
workspace permissions. For more information, review the permissions section.
Next steps
Introduction to deployment pipelines
Get started with deployment pipelines
Understand the deployment pipelines process
Deployment pipelines best practices
Rename almost anything in Power BI service
8/13/2020 • 2 minutes to read • Edit Online
This article teaches you how to rename a dashboard, report, report page, workbook, dataset, app, and workspace in
Power BI service.
Can I change the name?
Published apps Not from the App screen, but the app No
name can be changed from the
workspace and re-published with a new
name if you have Admin permissions
App content (dashboard, report, Not from the App screen, but the app's No
workbook, dataset) content can be renamed from the
workspace and re-published with a new
name if you have Admin permissions
rename, and select the gear icon . If there is no gear icon, you do not have permissions to rename.
2. On the Settings page, type the new name and select Save .
Rename a dataset
1. Start in a workspace and select the Datasets tab.
2. Hover over the item to rename, select More options (...), and choose Rename .
NOTE
The options in the dropdown will vary.
Rename a workspace
Anyone with Admin permissions can rename a workspace.
1. Start in the workspace you'd like to rename.
2. In the top-right corner, select More options (...) and choose Edit workspace . If you don't see this option,
then you don't have permissions to rename this workspace.
3. Type a new workspace name and select Save .
3. Open the report page that you'd like to rename by selecting the tab.
4. Double-click the name on the tab to highlight it.
This article teaches you how to set contact information for a dashboard or report in the Power BI service.
NOTE
Contact information can be set for items in a classic or new workspace. You can't set contact information for items in your My
Workspace. The info card is shown when viewing a report or dashboard in the new look.
You can add multiple users or groups to the contact for an item. They can be:
A person
A Microsoft 365 group
An email enabled security group
A distribution list
By default the person who creates a new report or dashboard is the contact for it. If you set a value, it overrides the
default. You can of course remove all the people or groups from the contact list. When you do this, for classic
workspaces, the Microsoft 365 group for the workspace will be shown. For new workspace experience workspaces,
the workspace contact list will be used. If the workspace contact list is not set, then workspace admins are shown.
The contact information is shown to people viewing the item.
When you click the list of contacts, an email is created so you can ask questions or get help.
The contact list information is also used in other places. For example, it is shown in some error scenarios in the
error dialog box. Automated email messages related to the item, like access requests, are sent to the contact list.
NOTE
When publishing an app, the contact information set on individual items is set to the person who published or updated the
app. You can set the app support URL so app users get the help they need.
Next steps
More questions? Try the Power BI Community
Delete almost anything in Power BI service
8/13/2020 • 4 minutes to read • Edit Online
This article teaches you how to delete a dashboard, report, workbook, dataset, app, visualization, and workspace in
Power BI service.
Delete a dashboard
Dashboards can be removed. Removing the dashboard does not delete the underlying dataset or any reports
associated with that dashboard.
If you are the owner of the dashboard, you can remove it. If you've shared the dashboard with colleagues,
removing the dashboard from your Power BI workspace will remove the dashboard from their Power BI
workspaces.
If a dashboard is shared with you and you no longer want to see it, you can remove it. Removing a dashboard
does not remove it from anyone else's Power BI workspace.
If a dashboard is part of an organizational content pack, the only way to remove it is to remove the associated
dataset.
To delete a dashboard
1. In your workspace, select the Dashboards tab.
2. Locate the dashboard to delete and select the Delete icon .
Delete a report
Don't worry, deleting a report does not delete the dataset that the report is based on. And any visualizations that
you pinned from the report are also safe -- they remain on the dashboard until you delete them individually.
To delete a report
1. In your workspace, select the Repor ts tab.
2. Locate the report to delete and select the Delete icon .
3. Confirm the deletion.
NOTE
If the report is part of a content pack, you will not be able to delete it using this method. See Remove your
connection to an organizational content pack.
Delete a workbook
Workbooks can be removed. However, removing a workbook also removes all reports and dashboard tiles that
contain data from this workbook.
If the workbook is stored on OneDrive for Business, deleting it from Power BI does not delete it from OneDrive.
To delete a workbook
1. In your workspace, select the Workbooks tab.
Delete a dataset
Datasets can be deleted. However, deleting a dataset also deletes all reports and dashboard tiles that contain data
from that dataset.
If a dataset is part of one or more organizational content packs, the only way to delete it is to remove it from the
content packs where it's being used, wait for it to be processed, and then try deleting it again.
To delete a dataset
1. In your workspace, select the Datasets tab.
2. Locate the dataset to delete and select More options (...).
Delete a workspace
WARNING
When you create a workspace, you create a Microsoft 365 group. And when you delete a workspace you delete that
Microsoft 365 group. What this means is that the group will also be deleted from other Microsoft 365 products like
SharePoint and Microsoft Teams.
As the workspace author, you can delete it. When you delete it, the associated app is also deleted for all group
members and removed from your AppSource if you had published the app to your entire organization. Deleting a
workspace is different from leaving a workspace.
To delete a workspace - if you are an Admin
1. From the nav pane, select Workspaces
2. Select More options (...) to the right of the workspace to be deleted and choose Edit workspace .
3. In the Edit workspace window, select Delete workspace > Delete .
IMPORTANT
If you are the only Admin for the workspace, Power BI will not allow you to leave.
2. Hover over the app to delete, and select the Delete icon.
If you remove an app accidentally, you have several options for getting it back. You can ask the app creator
to re-send it, you can find the original email with the link to the app, you can check your Notifications center
to see if the notification for that app is still listed, or you can check your organization's AppSource.