Forum Discussion
maulik
2 years agoNew Member
How to get Embed Report filter value from power bi api call?
I have UI application where i have embed my power bi report with below tables. Like as example employees address and phone and other information. In react application i have applied filters inside ...
Anonymous
2 years agoNot applicable
Hi maulik ,
Please review the following links, hope it can help you.
Use filters when embedding a report in Power BI embedded analytics | Microsoft Learn
// Assuming you have a reference to the embedded report
let report = powerbi.get(embedContainer);
// Get the filters applied to the report
report.getFilters()
.then(filters => {
console.log('The filters applied to the report are:', filters);
})
.catch(error => {
console.error(error);
});
javascript - PowerBi Embedded report.getFilters() - convert promise to syncronous - Stack Overflow
Power BI Embedded - Get current filters with Javascript - Stack Overflow
Best Regards
maulik
2 years agoNew Member
Is this possible from back end power bi "https://learn.microsoft.com/en-us/rest/api/power-bi/" api rather then script ?do we have any api which can give us this filter values ?
as power bi already maintain this state?