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
erfansha
New Member

How to filter all visuals in a Power BI custom visual without specifying a table name?

I have a custom visual in Power BI, and I've written the following code to filter other tables based on a column called DateID:

 

  public update(options: VisualUpdateOptions) {
    const filter = {
      $schema: "http://powerbi.com/product/schema#basic",
      target: {
        table: "MRS3 vwMrsFactSales",
        column: "DateID",
      },
      operator: "In",
      values: [13991002, 13991006],
    };
    this.host.applyJsonFilter(
      filter,
      "general",
      "filter",
      powerbi.FilterAction.merge
    );
  }

 

 

it works when i specify table name in target but what i want is to filter all tables in report and i dont know waht are table names and when i remove table from target it broke. what should i do?

I searched a lot, but there is no good documentation or YouTube video about this.

0 REPLIES 0

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.

Top Solution Authors