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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
asbpowerbi
Helper IV
Helper IV

2nd passed filter is not being used- I do not know why?

Hello Friends,

 

   I have an embeded Power BI report. In the developer's code, we pass the user's email address as a filter. In looking at the code, it appeard that we could send additional filters. My developer created the code below. We are running into the issue where the 2nd filter argument is not being acted upon...like it is being ignored. How do we get the report to accept the second filter argument?

 

    var filter = [{

        $schema: "http://powerbi.com/product/schema#basic",

        target: {

            table: "st_Tickets",

            column: "CustomerEmailAddress"

        },

        operator: "In",

        values: "test@test.test,

        filterType: models.FilterType.BasicFilter

    }, {

        $schema: "http://powerbi.com/product/schema#basic",

        target: {

            table: "st_Departments",

            column: "DepartmentId"

        },

        operator: "In",

        values: [2],

        filterType: models.FilterType.BasicFilter

    }];

 

 

  var config = {

    type: 'report',

    id: embedReportId,

    embedUrl: embedUrl,

    accessToken: accessToken,

    permissions: models.Permissions.All,

      tokenType: models.TokenType.Embed,

      viewMode: models.ViewMode.View,

    filters: filter,

    settings: {

      filterPaneEnabled: false,

      navContentPaneEnabled: true,

    }

  };

 

Cheers,

 

Peter

3 REPLIES 3
asbpowerbi
Helper IV
Helper IV

Going to give it one more chance for help

asbpowerbi
Helper IV
Helper IV

Any ideas why the second filter is not being accepted?

 

Cheers!

Any ideas or is this not possible?

 

Cheers!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.