cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Regular 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
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors