Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
I integrated a report using powerbi-client-react, and the customer requested to extract some common filters that can be filtered externally, It is best to have internal and external filter linkage.
For eg. there is a site filter within the report, I want to create a site filter on an external page as well. How can I pass the external filter to the report and monitor changes to the internal filter in the report?
According to my investigation, getFilters and setFilters are the closest solutions. control-report-slicers
But there is no way to control the default value of the filter, also cannot find the ‘filterApplied’ event.
Can anyone help?
Solved! Go to Solution.
Hi @JinHe ,
Thanks for the follow-up! You're correct, Power BI’s current embed API doesn't directly support setting default selected filter values inside a slicer or tracking filter changes via a dedicated filterApplied event.
However, we can achieve the same goal using a combination of available tools.
You can pass filters from your external UI into the embedded Power BI report using setFilters() or updateFilters(). This means when a user selects something in your custom dropdown (like "Cambridge" or "Harlow"), you can apply that selection inside the report.
While you can't define "default selected" items directly in the filter model, you can simulate it by automatically applying a filter right after the report loads.
There's no direct event like filterApplied, but there are workarounds:
Use slicers in Power BI embedded analytics | Microsoft Learn
GetSlicerState from a Custom Slicer - Microsoft Fabric Community
If the issue still persists, I’d recommend raising a support ticket with Microsoft. The support team can look into the backend and provide more in-depth assistance tailored to your environment.
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! |
Regards,
B Manikanteswara Reddy
Hi @JinHe ,
Thank you for reaching out to Microsoft Fabric Community Forum.
It looks like the issue you're facing is very similar to one that other users encountered earlier. Those issues have been resolved, and the solutions might be helpful in your case as well.
Solved: Power BI Embed in React app - Microsoft Fabric Community
Solved: Embedded Report add filter to EmbedConfig - Microsoft Fabric Community
Embed Power BI on React App with filters coming fr... - Microsoft Fabric Community
The last one was not closed, but solution might helpful for our scenario.
Please refer to the posts linked below for the full explanation and steps:
Use filters in a Power BI embedded analytics report | Microsoft Learn
How to embed a Power BI item in a React app | Microsoft Learn
CategoryEntry.FilterApplied Event (System.Activities.Presentation.PropertyEditing) | Microsoft Learn
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! |
Regards,
B Manikanteswara Reddy
Sorry, there is no solution that meets my needs.
const basicFilter = {
$schema: "http://powerbi.com/product/schema#basic",
target: {
table: "Store",
column: "Count"
},
operator: "In",
values: [1, 2, 3, 4],
filterType: models.FilterType.BasicFilter
};
Because there are two problems that cannot be solved:
Hi @JinHe ,
Thanks for the follow-up! You're correct, Power BI’s current embed API doesn't directly support setting default selected filter values inside a slicer or tracking filter changes via a dedicated filterApplied event.
However, we can achieve the same goal using a combination of available tools.
You can pass filters from your external UI into the embedded Power BI report using setFilters() or updateFilters(). This means when a user selects something in your custom dropdown (like "Cambridge" or "Harlow"), you can apply that selection inside the report.
While you can't define "default selected" items directly in the filter model, you can simulate it by automatically applying a filter right after the report loads.
There's no direct event like filterApplied, but there are workarounds:
Use slicers in Power BI embedded analytics | Microsoft Learn
GetSlicerState from a Custom Slicer - Microsoft Fabric Community
If the issue still persists, I’d recommend raising a support ticket with Microsoft. The support team can look into the backend and provide more in-depth assistance tailored to your environment.
https://learn.microsoft.com/en-us/power-bi/support/create-support-ticket
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it! |
Regards,
B Manikanteswara Reddy
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
8 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
2 |