Forum Discussion

ksauhard's avatar
ksauhard
New Member
5 years ago
Solved

Is there any option/function/api to get Fields (Table, column) details of a report?

Is there any option/function/api to get Feilds  (table names and columns) used in a Power BI report? 

Basically, I want to apply dynamic filters on reports in Power BI embedded, where I need to pass the table name and column name in filter object

const filter = {
    $schema: "http://powerbi.com/product/schema#basic",
    target: {
        table: "Geo",
        column: "Region"
    },
    operator: "In",
    values: ["West"]
};

 In the above snippet, table and column values are hard code, but I want them to be dynamic. 

1 Reply