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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I have embedded Power BI tile into web application using javascript. Tile loaded perfectly but when we click on the tile nothing happen in the tile. I need when the user click on the tile it should show like clicked bar only active others should be inactive mode.
Please give how to do this. here below is my code.
var width = 800;
var height = 600;
var embedTileUrl = "https://app.powerbi.com/embed?dashboardId=a36a459767f437-c8cc539ce78e&tileId=f541e144-4sdsd389e-bc03...";
window.onload = function () {
updateEmbedTile();
};
function updateEmbedTile() {
if ("" === embedTileUrl)
return;
iframe = document.getElementById('iFrameEmbedTile');
iframe.src=embedTileUrl + "&width=" + width + "&height=" + height;
iframe.onload = postActionLoadTile;
}
function postActionLoadTile() {
var accessToken = 'eMNksdOnasdfCJhbGciOiJSUzI1NiIsIng1dCI6ImEzUU4wQlpTN3M0bk4tQmRyam..............................................;
if ("" === accessToken)
return;
var h = height;
var w = width;
var m = { action: "loadTile", accessToken: accessToken, height: h, width: w };
message = JSON.stringify(m);
iframe = document.getElementById('iFrameEmbedTile');
iframe.contentWindow.postMessage(message, "*");
}
<body>
<div>
<iframe id="iFrameEmbedTile" src="" height="900" width="900" frameborder="0" seamless></iframe>
</div>
</body>
@Pitchaimuthu wrote:
I have embedded Power BI tile into web application using javascript. Tile loaded perfectly but when we click on the tile nothing happen in the tile. I need when the user click on the tile it should show like clicked bar only active others should be inactive mode.
It is by design that the tiles don't have interaction as you described. You can check this idea Interactive dashboard tiles and vote it up.
The workaround can be embedding a dashboard with live page or embedding a report instead.
Thank you @Eric_Zhang. could you help me? I have facing one more issues in Power BI embedded. I have embedded Power BI Report, but when I execute the application in IE browser that the drill down option does not shown in IE, but others browser showing the drill down option in report.
@Pitchaimuthu wrote:
Thank you @Eric_Zhang. could you help me? I have facing one more issues in Power BI embedded. I have embedded Power BI Report, but when I execute the application in IE browser that the drill down option does not shown in IE, but others browser showing the drill down option in report.
Could you be more specific on the visual? Or perhaps you can provide the pbix to help reproduce the issue? Once the issue identifed, I'll escalate it to the product team.
Thank you @Eric_Zhang for your response. I have used the clustered bar chart in embedded report. I could see the drill down option in other browser, but IE browser does not show the drill down, maximize menu, export option. below I have attached my screens.
@Pitchaimuthu wrote:
Thank you @Eric_Zhang for your response. I have used the clustered bar chart in embedded report. I could see the drill down option in other browser, but IE browser does not show the drill down, maximize menu, export option. below I have attached my screens.
![]()
I can't reproduce that behavior. When I hover the mouse on the visual, the "drill" button just shows up, both in IE(ver IE11) and Chrome. What is your IE version and how you embed the reports? By the way, the snapshot looks more like a tile embedded other than a report, drilling down is not supported in a tile anyway.
In my case, I test with a static HTML.
<html>
<script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/jquery/dist/jquery.js"></script>
<script src="https://microsoft.github.io/PowerBI-JavaScript/demo/node_modules/powerbi-client/dist/powerbi.js"></script>
<script type="text/javascript">
window.onload = function () {
var embedConfiguration = {
type: 'report',
accessToken: 'yourTokenHere',
embedUrl: 'https://app.powerbi.com/reportEmbed?reportId=8067fc7f-xxxxxx4234ac5a984e'
};
var $reportContainer = $('#reportContainer');
var report = powerbi.embed($reportContainer.get(0), embedConfiguration);
}
</script>
<div id="reportContainer" ></div>
</html>
Thank you @Eric_Zhang for your response. I have used the IE browser version 11.
I have embedded report only, not in a single tile. In our requirement, we need to have Power BI dashboard need to embedded in asp.net application. So that I have tried single tile, But I could not able get the drill down option when I embedded in single tile. So that I have created single widget in single report, like that I have created all widget in each report. And also I got another issues on a single report with single widget, When I click on a report(widget) it does not affect another report(widget). I could understand, I have embedded each widget in seperate report so that it does not affect. So please give me this also, how to do this?..
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 63 | |
| 45 | |
| 41 | |
| 36 | |
| 23 |
| User | Count |
|---|---|
| 189 | |
| 124 | |
| 106 | |
| 78 | |
| 52 |