Forum Discussion

Juramirez's avatar
Juramirez
Resolver I
8 years ago
Solved

Embedding report and dashboard at the same time

Hi! 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 dashb...
  • Juramirez's avatar
    Juramirez
    8 years ago

    I just solved this! I used the code to embed Reports and Dashboard simultaneously donwlodable here: Power BI Developer

    The code provided by Eric_Zhang goes in EmbedDashboard.cs like this: 

    if(clickedTile = 'TILE ID'){
    	window.open('EmbedReport', '_blank');
    	}

     It opens the EmbedReport.cs and you just need to set the needed configuration to open in the page that you want depending the tile clicked.