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
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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors