Sub topic 16
When to use a custom visual from AppSource
This chapter assumes you can build the built-in visuals covered earlier, you know how field wells work, and you can read a basic DAX measure. It explains when a custom visual from AppSource is worth adding to a report, and when a built-in visual is the safer choice.
What a custom visual is
A custom visual is a chart type that someone other than the Power BI core team wrote. Microsoft partners and independent developers publish them to Microsoft AppSource, the marketplace for Microsoft business apps. In Power BI Desktop you open them from the Visualizations pane by selecting the ellipsis (...) and choosing Get more visuals.
Once you add a custom visual to a report, its code is saved inside the .pbix file. It then behaves much like a built-in visual. It has field wells, a Format pane, and filtering. How well it supports each of these depends on the author.
You can get custom visuals from three places:
- AppSource: Public listings, with ratings, descriptions and a version history.
- Organizational store: Visuals that your Power BI administrators have approved and pushed to everyone in the tenant.
- A .pbiviz file: A package you import from disk. Use this only for files from a source you trust, because nobody has reviewed it.
The default is a built-in visual
The built-in visuals cover most questions: comparison, trend, composition, relationship, single values, detail and location. A built-in visual is maintained by Microsoft, works in every Power BI feature, and needs no approval from your administrator. A custom visual must justify the extra cost in review time, risk and maintenance.
A custom visual is justified when all of these are true:
- The question needs a chart shape that no built-in visual or simple configuration can produce.
- The shape suits the data. Examples are flows between stages (Sankey), schedules with start and end dates (Gantt), and actual against target ranges (bullet chart).
- The visual passes the checks in the next section.
"It looks more impressive" is not a reason. A fancy visual often makes the answer harder to read, which is the pitfall described in the chapter on misleading visuals.
Try the built-ins first
Before you search AppSource, check whether a built-in visual can do the job with different settings:
| You want | Try this built-in first |
|---|---|
| A bullet-style target comparison | A clustered bar with a target line from the Analytics pane, or a KPI visual |
| A bridge from start to end value | The waterfall chart |
| A ranked list with shares | A bar chart sorted by value, using a share-of-total measure |
| A progress indicator | A card or KPI with a target measure |
| A stage-by-stage drop-off | A bar chart ordered by stage |
If one of these answers the question, stop there.
Checks before you adopt a visual
Run through these checks before you add a visual to a report that other people will use.
Certification
AppSource marks some visuals as Power BI certified. Microsoft reviews the code of a certified visual. It must not access external services or resources. Certified visuals also work in features such as email subscriptions and export to PowerPoint. A visual without the badge is not necessarily unsafe, but nobody at Microsoft has reviewed it. It may send your data to an external service. Read the privacy statement on the listing.
Tenant policy
Administrators control custom visuals in the Power BI admin portal. They can block all custom visuals, allow only certified ones, or distribute an approved list. If a visual shows an error after you publish, tenant policy is a common cause. Ask your administrator before you build a report around a visual they might block.
Feature support
Custom visuals vary in which features they support. Test each one against the features your report depends on:
- Cross-filtering and cross-highlighting with other visuals
- Drill-down and drill-through
- Tooltips and report page tooltips
- Bookmarks
- Row-level security (RLS). The visual should only show data the viewer is allowed to see.
- Export of data and export to PowerPoint or PDF
Accessibility
Built-in visuals support keyboard navigation, screen readers and high-contrast themes. A custom visual might support none of them. Test with the keyboard and check the alt text and contrast. If your audience needs accessible reports, a visual that fails these tests is not acceptable, however good it looks.
Maintenance and cost
Look at the publisher, the date of the last update, the ratings and the licence terms. Some visuals are free. Others need a paid licence for full features or show a watermark without one. An abandoned visual may break when Power BI changes. Decide who will replace it if that happens.
Decision flow
A worked example: target comparison
Suppose a sales manager asks, "How does each region's sales compare with its target?" The tempting answer is a bullet chart from AppSource. First, build the measures that any version of this chart needs. Assume the model has a Targets table with a TargetAmount column, linked to the Region table:
Sales Target = SUM ( Targets[TargetAmount] )Sales vs Target % =
DIVIDE ( [Total Sales] - [Sales Target], [Sales Target] )Put Region on the axis and both [Total Sales] and [Sales Target] in a built-in clustered bar chart. Or put [Sales vs Target %] in a bar chart sorted from lowest to highest. This answers the question and works with cross-filtering, accessibility and export. A bullet chart adds a compact view of performance bands. It is worth the adoption checks only if the manager needs those bands, for example "poor, acceptable, good" zones, and the built-in options cannot show them.
The measures are the same either way. A custom visual changes how the numbers are drawn, not what they mean. If you later swap the visual, the data model and measures do not change.
Common errors
- Choosing a custom visual first. Starting from the AppSource gallery leads you to pick a chart and then look for a question to fit it. Start from the question.
- Importing an unknown .pbiviz file. An unreviewed file runs code inside your report. Use it only from a publisher you trust, and check with your administrator.
- Ignoring the licence. A visual that looks free may show watermarks or disable features until a licence is bought. Discover this in development, not when the report is shared.
- Not testing after publishing. A visual that works in Desktop can fail in the service because of tenant policy or a feature it does not support, such as email subscriptions. Always open the published report and test it there.
- Depending on one visual for a critical report. Keep a built-in fallback design in mind. Note in the report documentation which custom visuals are used and why.
- Leaving out the data limit check. Some custom visuals handle only a limited number of data points and quietly drop the rest. Compare the totals the visual shows with a table to confirm nothing is missing.
Summary
Treat a custom visual as an exception that has to earn its place. Use the question to find the chart shape. Try the built-in visuals and their settings first. If you still need a custom visual, check certification, tenant policy, feature support, accessibility and maintenance before you adopt it. Test the published report, not just the Desktop file.
Exercise
A colleague wants to replace a bar chart of sales by region with a flashy, uncertified AppSource chart. The chart will go into a report that is emailed to customers every week as a subscription. List three checks you would run before agreeing.
Show answer
Check whether your tenant policy allows the visual, since administrators may block uncertified visuals. Check whether it supports email subscriptions, which are usually reliable only for certified visuals. Check the privacy statement for external data access, because the report contains customer-facing data. You could also check keyboard and screen reader support. If the bar chart answers the question, the best answer is to keep it, because the new visual adds risk without answering a new question.
Exercise
You need to show how revenue moves between three sales stages, and a built-in bar chart cannot show the flow. The Sankey visual you found on AppSource has no certification badge. What are your options?
Show answer
First confirm that a built-in approach really cannot work, for example a bar chart ordered by stage that shows drop-off. If a flow chart is truly needed, look for a certified Sankey visual, or ask the administrator to review and approve the uncertified one through the organizational store. Then test cross-filtering, accessibility and the published report before you rely on it. If none of these is possible, redesign the view with built-in visuals.