Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Juramirez
Resolver I
Resolver I

Dashboard embedded

Hi! I'm embedding a Dashboard using this code from Github and it works fine but what I want is that the dashboard that is embedded works as the Dashboard that I have in my own workspace (on app.powerbi.com). This means that when I clicked on a tile that is pinned from one report, the report gets open (where the visual graph is) and I can see the information that is there. Actually the embedded dashboard and his tiles just are like images and this can't be done. There's a way to do this? 

1 ACCEPTED SOLUTION
Eric_Zhang
Microsoft Employee
Microsoft Employee


@Juramirez wrote:

Hi! I'm embedding a Dashboard using this code from Github and it works fine but what I want is that the dashboard that is embedded works as the Dashboard that I have in my own workspace (on app.powerbi.com). This means that when I clicked on a tile that is pinned from one report, the report gets open (where the visual graph is) and I can see the information that is there. Actually the embedded dashboard and his tiles just are like images and this can't be done. There's a way to do this? 


@Juramirez

That is not possible in embedding scenario. When embedding a dashboard, the embedding token has no more access to any other reports/dashboards than the embedded dashboard. Actually you can still customize the tile click events with Power BI Javascript API. See snippet below.

 

    var config = {
        type: 'dashboard',
        tokenType: models.TokenType.Embed,
        accessToken: accessToken,
        embedUrl: embedUrl,
		pageView: "fitToWidth",
        id: embedDashboardId
    };
 
    var dashboardContainer = $('#dashboardContainer')[0] ;
 
    var dashboard = powerbi.embed(dashboardContainer, config); 
	
    dashboard.on("tileClicked", function() {
    console.log("tileClicked");
});

View solution in original post

2 REPLIES 2
Eric_Zhang
Microsoft Employee
Microsoft Employee


@Juramirez wrote:

Hi! I'm embedding a Dashboard using this code from Github and it works fine but what I want is that the dashboard that is embedded works as the Dashboard that I have in my own workspace (on app.powerbi.com). This means that when I clicked on a tile that is pinned from one report, the report gets open (where the visual graph is) and I can see the information that is there. Actually the embedded dashboard and his tiles just are like images and this can't be done. There's a way to do this? 


@Juramirez

That is not possible in embedding scenario. When embedding a dashboard, the embedding token has no more access to any other reports/dashboards than the embedded dashboard. Actually you can still customize the tile click events with Power BI Javascript API. See snippet below.

 

    var config = {
        type: 'dashboard',
        tokenType: models.TokenType.Embed,
        accessToken: accessToken,
        embedUrl: embedUrl,
		pageView: "fitToWidth",
        id: embedDashboardId
    };
 
    var dashboardContainer = $('#dashboardContainer')[0] ;
 
    var dashboard = powerbi.embed(dashboardContainer, config); 
	
    dashboard.on("tileClicked", function() {
    console.log("tileClicked");
});

Thanks @Eric_Zhang. Can I embed a dashboard and a report and show only the dashboard and when a tile is clicked that the  embedded report opens in the page of this one that I want? I mean, by example, I have a dashboard with 2 tiles and a report with 2 pages. Only the dashboard is shown to the client (when he get into the page) and when he clicked on tile 2 that the report opens in the page 2 (i don't know if this can be done modifying the JS of the embedded dashboard).

 

 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.