Events
Power BI DataViz World Championships
14 Feb, 16 - 31 Mar, 16
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sometimes you want to allow the user to interact with the visual by selecting, zooming, or clicking on it. Other times you want the visual to be static, so the user can't interact with the visual.
Visuals can query the value of the allowInteractions
flag, which indicates if the visual allows visual interactions. For example, visuals can be interactive during report viewing or editing, but visuals can be non-interactive when they're viewed in a dashboard. These interactions include click, pan, zoom, selection, and others.
Note
Best practice is to enable tooltips in all scenarios, regardless of the indicated flag.
The allowInteractions
flag is passed as a boolean value during the initialization of the visual as a member of the IVisualHost
interface.
For any Power BI scenario that requires non-interactive visuals (for example, dashboard tiles), set the allowInteractions
flag to false
. Otherwise (for example, Report), set allowInteractions
to true
.
The following code sample shows how to use the allowInteractions
flag to set interactive permissions.
...
let allowInteractions = options.host.hostCapabilities.allowInteractions;
bars.on('click', function(d) {
if (allowInteractions) {
selectionManager.select(d.selectionId);
...
}
});
For more information about using the allowInteractions
flag, see the SampleBarChart visual repository.
Events
Power BI DataViz World Championships
14 Feb, 16 - 31 Mar, 16
With 4 chances to enter, you could win a conference package and make it to the LIVE Grand Finale in Las Vegas
Learn moreTraining
Module
Design interactive data experiences with Power BI Desktop - Training
Power BI enables report authors to produce interactive reports using visuals, slicers, bookmarks, and more.
Certification
Microsoft Certified: Power BI Data Analyst Associate - Certifications
Demonstrate methods and best practices that align with business and technical requirements for modeling, visualizing, and analyzing data with Microsoft Power BI.
Documentation
Power BI visual data point selections - Power BI
Learn how to use the selection manager to add data point selections to Power BI visuals and make them interactive.
Fetch more data from Power BI - Power BI
This article discusses how to enable a segmented fetch of large semantic models for Power BI visuals by using the fetchMoreData API.
Creating a dialog box in a Power BI visual - Power BI
Learn how to create a dialog box in a Power BI visual to display additional information to the customer in a separate window.