Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.
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 emabded report based on phone number city etc.
i want to get all filters in my back end by calling power bi api ?
Is there any Api there which can give us all filters we applied inside emebeaded report in UI.
and when we call power bi api it gives all filter i applied inside my power bi emabded report inside UI?
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
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?