Uredi

Deli z drugimi prek


Sync slicers across pages in Power BI reports

Slicers are a useful way to filter information and focus on a specific portion of the semantic model. They allow you to select exactly which values to display in your Power BI visual.

Sometimes you might want to use a slicer on only one specific page of the report. Other times, you might want to apply the slicer to several pages. By using the sync slicers feature, a slicer selection on any page will affect visualizations on all selected pages.

For information about sync slicers and how they work, see Sync and use slicers on other pages.

How to enable the sync slicer feature

In the capabilities.json file, set "supportsSynchronizingFilterState": true, as shown in the following example:

{
    ...
    "supportsHighlight": true,
    "suppressDefaultTitle": true,
    "supportsSynchronizingFilterState": true,
    "sorting": {
        "default": {}
    }
}

After you've updated the capabilities.json file, you can view the Sync slicers pane when you select your custom slicer visual.

Screenshot of Power BI Desktop, which shows the View Sync slicers pane.

From the Sync slicers pane, you can select which report pages the slicer visibility and filtration should apply to.

For more information on how to sync slicers, see Sync and use slicers on other pages.

Note

A report using the sync slicers feature must use API version 1.13.0 or later.

Considerations and limitations

The sync slicers feature only supports one field at a time. If your slicer has more than one field (Category or Measure), the sync slicers feature is disabled.

Add a context menu to your Power BI visual