cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
DanT Frequent Visitor
Frequent Visitor

Bookmark in Powerbi embed not Working

I want to apply a bookmark on load in an embed report. I referenced the doc. All work well, but the bookmark just don't apply. The loaded report always display as the default bookmark, rather than the specified bookmark in config. No error or Waring found.

Here's the code:

var embedConfiguration = {
type: 'report',
accessToken:'eyJ********************',
embedUrl: 'https://app.powerbi.com/reportEmbed?XXXXX',
bookmark:{
name:"switch"
}
};

var dashboardContainer = document.getElementById('dashboardContainer');
var report = powerbi.embed(dashboardContainer, embedConfiguration);

 

Anyone has an idea on this?