Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
In a report we have 5 filters on the page.
If the application manage a filter , as if the other filters on the page didn t exist anymore.
the others filter on a visual its ok.
idea ?
Best regards
Thanks for your help.
Hi @Cobra77,
May I ask how you did this? Are they all Report Level filters? Did you get the right results?
Best Regards,
Dale
Hi @Dale
For example the report in powerbi.com is filtered with : TypeAccident on accident de travail
the code :
if (accessToken && reportId && embedURL) {
var embedConfiguration = {
type: 'report',
accessToken: accessToken,
id: reportId,
embedUrl: embedURL,
settings: {
filterPaneEnabled: false
}
};
window.powerbi.embed(document.getElementById('reportContainer'), embedConfiguration);
if (projectName) {
var Promise = require('es6-promise').Promise;
var report = window.powerbi.get(document.getElementById('reportContainer'));
report.on('loaded', function() {
const filter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "011 - Projets",
column: "01 - Projet"
},
operator: "In",
values: [projectName]
};
report.setFilters([filter]);
});
}
}
and when we are in embedded it is as if the filter TypeAccident is on All
Thanks
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
13 | |
2 | |
2 | |
1 | |
1 |