Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Read Filter in Custom Visual

Hi,

 

Is it possible to read the filter settings in the custom Visual? So not only receiving filtered data, but actually to read it somehow?

The custom visual should react to the filter, but not only to the new data provided. It is needed to navigate in a map in a read-only report.

 

If I'm correct the filter API, does not provide read functinality. The api only sets filters.

Also the InteractivityFilterService does not do the job.

 

 

 

import { InteractivityFilterService } from "powerbi-visuals-utils-interactivityutils/lib/interactivityFilterService";

 

 

 

And the options.jsonFilters property in the update-function is always empty.

 

I saw in an example the following: Capabilites.json

 

 

 

"selfFilter": {
                    "type": {
                        "filter": {
                            "selfFilter": true
                        }
                    }
                }

 

But this does not provide anything.

 

I also tried the following (which is also always empty)

 dataViewObjects.getValue(data.metadata.objects, Filter.filter)

 

Maybe someone can provide an good example, because all examples from microsoft are outdated.

 

Thanks.

0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.