No, you can't filter the data using embeddedUrl
. You should use filters to achieve that. Let's say you have a table named AccountsData
in your model, and a column named DatesId
in it. When you embed the report in your application, define a filter for this column, e.g. like this:
const basicFilter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "AccountsData",
column: "DatesId"
},
operator: "In",
values: [1],
filterType: models.FilterType.BasicFilter
}
And then pass this filter in embed configuration details:
var config = {
type: embedType,
accessToken: accessToken,
tokenType: tokenType,
embedUrl: embedUrl,
id: embedId,
dashboardId: dashboardId,
permissions: permissions,
filters: [basicFilter],
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: true
}
};
where 1
is the unique ID for that selection. Change it every time, when the report is shown in your application (i.e. 2, 3, 4, etc.).
More information on how to filter data with Power BI Embedded can be found in Filters documentation.