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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.