Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
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.
The Analytics pane allows you to add dynamic reference lines, like min, max, or average, to your visuals. These lines can help you zoom in on important trends or insights. This article discusses how to create Power BI visuals that can present and manage dynamic reference lines in the Analytics pane.
Note
The Analytics pane is available in API version 2.5.0. To find out which version you’re using, check the apiVersion
in the pbiviz.json file.
Managing properties in the Analytics pane is similar to the managing properties in the Format pane. You define an object in the visual's capabilities.json file.
For the Analytics pane, the object is defined as follows:
Under the object's definition, add only the object name, property name and type as explained here. Example:
{
"objects": {
"YourAnalyticsPropertiesCard": {
"properties": {
"show": {
"type": {
"bool": true
}
},
"displayName": {
"type": {
"text": true
}
},
... //any other properties for your Analytics card
}
}
...
}
}
In the formatting settings card, specify that this card belongs to the analytics pane by setting the set card analyticsPane
parameter to true
. By default, analyticsPane
parameter is false and the card will be added to formatting pane. See the following implementations:
class YourAnalyticsCardSettings extends FormattingSettingsCard {
show = new formattingSettings.ToggleSwitch({
name: "show",
displayName: undefined,
value: false,
topLevelToggle: true
});
displayNameProperty = new formattingSettings.TextInput({
displayName: "displayName",
name: "displayName",
placeholder: "",
value: "Analytics Instance",
});
name: string = "YourAnalyticsPropertiesCard";
displayName: string = "Your analytics properties card's name";
analyticsPane: boolean = true; // <=== Add and set analyticsPane variable to true
slices = [this.show, this.displayNameProperty];
}
Define other properties the same way that you do for Format objects, and enumerate objects just as you do in the Format pane.
Note
selector: null
), and Power BI visuals can't have multiple instances of a user-defined card.integer
aren't displayed correctly. As a workaround, use type numeric
instead.Events
Power BI DataViz World Championships
Feb 14, 4 PM - Mar 31, 4 PM
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
Perform advanced analytics in Power BI - Training
You'll learn how to use Power BI to perform data analytical functions, how to identify outliers in your data, how to group data together, and how to bin data for analysis. You'll also learn how to perform time series analysis. Finally, you'll work with advanced analytic features of Power BI, such as Quick Insights, AI Insights, and the Analyze feature.
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.