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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

embedConfiguration filter parameter issue

We have been experiencing this type of problem for several days.
If I use the filter parameter in my embedded configuration ... an error is displayed when I instantiate the report.
Here is my code ...

-----------------------------------------------------------------------------------
const filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: mReport.srcTable,
column: "targa"
},
operator: "eq",
values: ["AA123"]
};

var models = window['powerbi-client'].models;

 

//console.log('models: ' + models);

var embedConfiguration = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: mReport.accessToken,
embedUrl: mReport.embedUrl,
id: mReport.id,
permissions: models.Permissions.All,
filters: [filter],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};

 

var $reportContainer = $('#reportContainer');

var report = powerbi.embed($reportContainer.get(0), embedConfiguration);

-----------------------------------------------------------------------------------

 

Can you inform me if the configuration settings of the parameters for the embedded report have changed?
If the way of setting the filter has changed?



 

Status: New
Comments
v-chuncz-msft
Community Support

@Logomaniak 

 

You may visit the powerbi-models repo to find more details.