Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Power BI Service bookmarks work well and I can save filters and personalise visual and once bookmark is applied - both filters and personalised view is presented.
When embedding same single page report in Power Apps portal for our Customers (non-AD users), I'm using Bookmarks API in JavaScript to Save and Load bookmarks state. As a result I can see that only Filters are applied, not Personalised visual.
Can this be fixed to work properly and apply both filters and personalised visual state.
JavaScript code used to Save and Load bookmarksManager state:
var yourGlobalVariable;
let btn = document.createElement("button");
btn.innerHTML = "Save";
btn.onclick = async function () {
var embedContainer = $(".powerbi")[0];
var report = powerbi.get(embedContainer);
let capturedBookmark = await report.bookmarksManager.capture({
allPages: true,
personalizeVisuals: true
});
yourGlobalVariable = capturedBookmark;
console.log(JSON.stringify(capturedBookmark));
};
document.body.appendChild(btn);
let btn2 = document.createElement("button");
btn2.innerHTML = "Load";
btn2.onclick = async function () {
var embedContainer = $(".powerbi")[0];
var report = powerbi.get(embedContainer);
report.bookmarksManager.applyState(yourGlobalVariable.state);
};
document.body.appendChild(btn2);
$(document).ready(function () {
console.log("starting power bi Config");
var embedContainer = $(".powerbi")[0];
if (embedContainer) {
var report = powerbi.get(embedContainer);
report.on("loaded", function () {
report.updateSettings({
panes: {
filters: {
visible: true
},
pageNavigation: {
visible: false
}
}
}).catch(function (errors) {
console.log(errors);
});
})
}
console.log("finished power bi Config");
});
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.