Forum Discussion

SoulsSama's avatar
SoulsSama
Frequent Visitor
4 years ago

How to hide other options in the filter using powerBi Embed ?

Hello guys, so I am appling a basic filter in my config object for my report, it's working but the problem is that the rest of the selections are shown in the filter section, so the user can remove the filtered data and get all the data they want, is there a way to disable this and make only the filtered option visible? Or hide the basic filter while its doing its job in the background?

here is the object i am using:

 

 

            const facilityFilter = {
                $schema: "http://powerbi.com/product/schema#basic",
                target: {
                    table: "HealthFacilities",
                    column: "FacilityName"
                },
                operator: "In",
                values: ["Test Facility"],
                filterType: models.FilterType.BasicFilter,
                requireSingleSelection: true
            };

 

 

 

Here is a Demonstration Screenshot:

2 Replies