Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Friends,
I have an embeded Power BI report. In the developer's code, we pass the user's email address as a filter. In looking at the code, it appeard that we could send additional filters. My developer created the code below. We are running into the issue where the 2nd filter argument is not being acted upon...like it is being ignored. How do we get the report to accept the second filter argument?
var filter = [{
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "st_Tickets",
column: "CustomerEmailAddress"
},
operator: "In",
values: "test@test.test,
filterType: models.FilterType.BasicFilter
}, {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "st_Departments",
column: "DepartmentId"
},
operator: "In",
values: [2],
filterType: models.FilterType.BasicFilter
}];
var config = {
type: 'report',
id: embedReportId,
embedUrl: embedUrl,
accessToken: accessToken,
permissions: models.Permissions.All,
tokenType: models.TokenType.Embed,
viewMode: models.ViewMode.View,
filters: filter,
settings: {
filterPaneEnabled: false,
navContentPaneEnabled: true,
}
};
Cheers,
Peter
Going to give it one more chance for help
Any ideas why the second filter is not being accepted?
Cheers!
Any ideas or is this not possible?
Cheers!
User | Count |
---|---|
5 | |
5 | |
2 | |
2 | |
2 |
User | Count |
---|---|
9 | |
7 | |
4 | |
4 | |
4 |