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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
hakada
Frequent Visitor

Using operator: "Contains" in a slicer filter via the API

Hi

 

I am trying to set the slicers of a report via the javascript API. I have it working using basic filters, but using basic filters I have to specify the exact value for the slicer. 

 

Using advanced filters for page filters it is possible to set the operator to "Contains", but this does not seem to work for slicers. Does anyone know if this is possible, or does slicers only accept specific values?

 

My filter setting is as follows,

 

    const filterAdv = {
        $schema: "http://powerbi.com/product/schema#advanced",
        conditions: [
            {
                operator: "Contains"
                value: "Den"
            }
        ],
        filterType: 0
        logicalOperator: "And",
        target: {
            table: setSlicer.table,
            column: setSlicer.column
        }
    };
0 REPLIES 0

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.