The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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?
User | Count |
---|---|
5 | |
3 | |
2 | |
2 | |
2 |
User | Count |
---|---|
11 | |
7 | |
5 | |
4 | |
4 |