Редактиране

Споделяне чрез


Mobile layout view

APPLIES TO: Power BI Desktop Power BI service

Power BI's mobile layout view is used to create views of report pages that are optimized for viewing on mobile devices. Mobile layout view is available in both Power BI Desktop and in the Power BI service. This article explains how to open the mobile layout view and describes the features it provides.

How to open mobile layout view

You can open mobile layout view in both Power BI Desktop and the Power BI service.

Use the layout switcher at the bottom of the page to toggle between mobile and web layout.

Screenshot showing the layout switcher in Power BI Desktop

Alternatively select the View ribbon and choose Mobile layout.

Screenshot of the mobile layout button on the View ribbon in Power BI Desktop.

The mobile layout view will open.

Screenshot of mobile layout view in Power BI.

The features of the mobile layout view are described below.

  • Mobile layout canvas: You create your mobile optimized layout on the interactive mobile layout canvas. The canvas features a fine-grained grid to help you lay out your visuals. Canvas controls enable you to turn off the grid, enable/disable snap-to-grid, and lock visuals in place to prevent them from accidentally being moved around. The grid scales across phones of different sizes, so your report looks good on small- and large-screen phones. The canvas is interactive, so you can see how your buttons, slicers, and visuals behave before you publish the report. Some limitations apply.
  • Page visuals pane: The page visuals pane lists all of the visuals that are included on the original report page. You create your mobile-optimized layout by dragging and dropping visuals from page visuals pane onto the layout canvas. See Create an initial layout.
  • Visualizations pane: The visuals pane shows the format settings of the visual that is selected on the canvas. You use the visualizations pane to style and format visuals. See Optimize visual formatting. The visualizations pane is empty until you select a visual on the canvas.
  • Selection pane: The selection pane enables you to change the layering order of visuals on the canvas. See Rearrange visual layering.
  • Auto-create mobile layout option: The auto-create mobile layout option generates a mobile-optimized view of your report on the mobile layout canvas. It puts the report visuals on the canvas and tries its best to preserve your report's functionality. For complex reports, auto-creation is a good way to start building your mobile-optimized reports. Once you have the initial layout on the canvas, you can start modifying it as necessary. For more information about the auto-create mobile format feature, see Automatic mobile layout creation.

Start creating your mobile-optimized view by selecting the auto-create mobile layout option or by choosing your visuals and dragging them on to the mobile layout canvas.

Automatic mobile layout creation

The auto-create mobile layout feature enables you to automatically generate a mobile-optimized layout for any new or existing report page.

When you choose the auto-create mobile layout option, a new complete layout with your report's visuals is created on the mobile layout canvas. If the canvas already has a layout, it will be removed and replaced with the new automatically generated layout.

The auto-create engine understands the desktop layout of your report and builds a mobile layout that considers the position, size, type, and order of the visuals that the report contains. It places both visible and hidden visuals, so if you have bookmarks that change a visual's visibility, they'll work in the automatically created mobile layout as well.

The auto-create mobile layout feature is intended to help you get started building mobile-optimized views for your reports. The quality of the result can vary, depending on the structure and complexity of the report's desktop layout. If the autogenerated mobile layout isn't exactly what you wanted or expected, you can tweak it manually until you're satisfied, or you can use Undo (Ctrl+Z) to go back to the previous layout (if any). The auto-create engine uses the same logic every time, so unless you change the source desktop layout, selecting the auto-create option again won’t give you a different result.

The feature works best with simple reports. For simple reports, the autogenerated layout might be usable as is. For more complex reports, tweaking might be required. The following list describes some of the factors that affect the quality of the generated layout. The more you build your desktop layout with these considerations in mind, the better the autogenerated layout will be.

  • The auto-create engine reads the report horizontally from left to right, starting from the top. Therefore, reports whose general layout follows that structure are more likely to be satisfactorily rendered than reports that have a strong vertical component, such as a left-hand report navigation bar.

  • The engine can't handle background images.

  • Too much overlaying is a challenge for the engine. It will do its best, but the result might not be optimal.

  • If there are too many images, not all of them might fit on the mobile layout canvas, in which case you'll still see unplaced visuals on the Page visuals pane after choosing the auto create option. Keep in mind that the engine places both visible and hidden images on the canvas, so if there are many hidden images (such as can be the case if images are used for layout purposes), it might look like there's room on the canvas when in fact there isn't.

The auto-create mobile layout feature is in preview. It's enabled in the Power BI service. In Power BI Desktop the feature is controlled by the Auto-create mobile layout preview feature switch that can be accessed by navigating to File > Options and settings > Options > Preview features. The feature switch is enabled by default.

Considerations and limitations

  • Tooltips are disabled on the mobile layout canvas; they're available when viewing in the mobile app, however.
  • Metric visuals aren't interactive on the mobile layout canvas.​
  • Slicer selections made on the mobile layout canvas don't carry over when you switch to web layout. Also, when you switch back from web layout to mobile layout, any slicer selections will come from the web layout. Likewise, when the report is published, any slicer selections will be those that were defined in web layout, regardless of whether the report is being viewed in the regular desktop-view or a mobile-optimized view.