Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
maulik
New 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 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?

 

2 REPLIES 2
Anonymous
Not 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

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?

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.