Showing results for 
Search instead for 
Did you mean: 
gokulreva Occasional Visitor
Occasional Visitor

PowerBi Embedded Dashboard - title click event issue

Hi All,


I am trying to extend the embedded dashboard to support drill through using "tileClicked" event but I am getting "TileClickError" whenever I am clicking the dashboard. 


Below is the code I am using 


// Read embed application token from Model
var accessToken = "@Model.EmbedToken.Token";

// Read embed URL from Model
var embedUrl = "@Html.Raw(Model.EmbedUrl)";

// Read dashboard Id from Model
var embedDashboardId = "@Model.Id";

// Get models. models contains enums that can be used.
var models = window['powerbi-client'].models;

// Embed configuration used to describe the what and how to embed.
// This object is used when calling powerbi.embed.
// This also includes settings and options such as filters.
// You can find more information at
var config = {
type: 'dashboard',
tokenType: models.TokenType.Embed,
accessToken: accessToken,
embedUrl: embedUrl,
id: embedDashboardId,
pageView: 'fitToWidth'

// Get a reference to the embedded dashboard HTML element
var dashboardContainer = $('#dashboardContainer')[0];

// Embed the dashboard and display it within the div container.
var dashboard = powerbi.embed(dashboardContainer, config);


// removes a given event handler if it exists."loaded");

// Dashboard.on will add an event handler which prints to Log window.
dashboard.on("loaded", function () {

dashboard.on("error", function (event) {
// alert(JSON.stringfy(event.detail));
dashboard.on("tileClicked", function (event) {
alert("Inside titleclicked");



Thanks in advance for your help.