Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register 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);
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
6 | |
4 | |
2 | |
2 |
User | Count |
---|---|
4 | |
3 | |
3 | |
3 | |
3 |