Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello all,
I am sorry if there is another question on this I couldn't find.
My aim is to initially embed a dashboard into container.
Then when a tile is clicked I would like to replace the dashboard , in the current page,with the report.
I managed to extract the report id from the clicked tile and create a new config.
Then I reset the current element, the one with the embedded dashboard.
However, when I try to embed again with the new config nothing appears on the screen.
The tileClicked code is:
dashboard.on("tileClicked", function (event) { var clickedTile = event.detail.tileId; if (clickedTile = 'TILE ID') { //window.open('EmbedReport', '_blank'); var url = new URL(event.detail.reportEmbedUrl); var c = url.searchParams.get("reportId"); // Read embed application token from Model var accessToken2 = "@Model.EmbedToken.Token"; // Read embed URL from Model var embedUrl2 = "@Html.Raw(Model.EmbedUrl)"; var models2 = window['powerbi-client'].models; var config2 = { type: 'report', tokenType: models2.TokenType.Embed, accessToken: accessToken2, embedUrl: embedUrl2, id: c, permissions: models2.Permissions.All, settings: { filterPaneEnabled: true, navContentPaneEnabled: true } }; powerbi.reset(dashboardContainer); var reportEmbed = powerbi.embed(dashboardContainer, config2); } });
Thank you in advance!
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
6 | |
6 | |
3 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
3 |