I've been trying to develop a power bi embedded app which contains an azure website containing power bi reports.
I can set filter parameters in a Power BI app embedded in an iframe, like this:
function onFrameLoaded() {
var m = {
action: "loadReport",
reportId: reportId,
accessToken: accessToken
};
iframe.contentWindow.postMessage(JSON.stringify(m), "*");
This works when you embed a Power BI report published on web. But it doesn't work on Power BI Embedded. What's the issue?