This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreGet Fabric Certified for FREE during AI Skills Fest. This week only. Secure your voucher now.
I'm using PowerBI-JavaScript to show dashboard mobile view on the website and it doesn't work, it is fine when I choose type: report then the MobilePortrait layout is applied but with dashboard, this layout is completely ignored and the default MobileLandscape layout is shown instead.
I would expect that embedding mobile layout will work for reports and dashboards: https://github.com/Microsoft/PowerBI-JavaScript/wiki/Embed-For-Mobile
var models = window['powerbi-client'].models;
var permissions = models.Permissions.All;
var embedConfiguration = {
type: 'dashboard',
tokenType: models.TokenType.Embed,
accessToken: "<some token>",
id: '<dashboard id>',
embedUrl: 'https://app.powerbi.com/dashboardEmbed',
settings: {
layoutType: models.LayoutType.MobilePortrait
}
// pageView: 'fitToWidth',
};
var embedContainer = $('#reportContainer')[0];
report = powerbi.embed(reportContainer, embedConfiguration);
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 |