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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
SoulsSama
Frequent Visitor

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:

Demonstration.png

2 REPLIES 2
v-shex-msft
Community Support
Community Support

Hi @SoulsSama,

AFAIK, the current you can't hide these in filter panels.
I'd like to suggest you set RLS on your report to filter records or add a calculated column as the category to group these records and use the new field to filter records.

Using row-level security with embedded content in Power BI embedded analytics - Power BI | Microsoft...

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hello @v-shex-msft

So If I use RLS I can restrict user even if the filterpane is visible?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.