Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hey guys. I have a question about embedding a power bi on react application. I was able tosuccessfully embed some reports on my react application but I was wondering if I could have custom filters (like specific dates or data source) on my application and send them to powerBI so they can update the reports based on the filters I select on my react application. Is this possible? How would I go about doing this? Observation (I embedded the reports using powerbi-client-react)
Hi @pedro3 ,
You can refer the following links to get it:
Embed PowerBI reports in React application
const report = powerbi.embed(reportContainer, embedConfiguration);
report.off("loaded");
report.on("loaded", function () {
const existingFilters = report.getFilters()
.then(function(response) {
const newFiltersArr = [...response, countryFilter];
report.setFilters(newFiltersArr);
});
});
How To Embed Microsoft Power BI Charts Into Your React Application
Embedded Report add filter to EmbedConfig
var config = {
type: 'report',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedReportId,
permissions: models.Permissions.Read,
filters: [filter1,filter2], //filter array here
settings: {
filterPaneEnabled: true,
navContentPaneEnabled: false
}
};
Best Regards