Skip to main content

How to Set the Exact Size and Position of a Visual in Power BI

· 4 min read
Jagdish Kumawat
Founder @ Dewiride

Dragging visuals gets them roughly in place; typing their size and position gets them exactly in place, so edges line up and gaps are even. Here's how.

Microsoft's Optimize visual formatting, written for mobile layouts, describes the same position and size settings for when you need to control the exact size and position of the visual. The example fits a text box, Approved expenses over 10.00, to its text: 70 pixels high, at 40 from the left and 940 from the top of the page (How to Add a Text Box to a Power BI Report).

Step 1: Select the Visual and Open Its Properties​

In Editing mode, select the visual. A click on the page can select the wrong visual, so selecting it in the Selection pane is the sure way (How to Open the Selection Pane in Power BI).

In the Visualizations pane, select Format, the brush icon, then its General tab, and expand Properties. Size and Position show the visual's current values in pixels:

The Properties section with Size, Height 290 and Width 900, Lock aspect ratio Off, and Position, Horizontal 40 and Vertical 790

Step 2: Type the New Values​

Select each box, type the value and press Enter:

SettingBeforeAfter
Height29070
Width900900
Horizontal4040
Vertical790940

The Properties section after the change, with Height 70, Width 900, Horizontal 40 and Vertical 940

The visual moves and resizes at once. Horizontal and Vertical count from the page's top-left corner, so two visuals with the same Vertical line up along the top.

Common Mistakes​

MistakeWhat happensDo this instead
Dragging the visual after typing its valuesIt leaves the exact positionType the values last
Lock aspect ratio onChanging the height changes the width tooTurn it off for a free size
Positions past the page's sizeThe visual hangs off the pageKeep it inside the page, or make the page bigger (How to Change the Page Size of a Power BI Report)

Troubleshooting​

SymptomLikely causeFix
No Properties sectionThe Visual tab is openSelect the General tab
The values change another visualThe wrong visual was selectedSelect it in the Selection pane
The text box's text is cutThe height is too small for the fontMake it taller

FAQ​

Why not just drag?​

Dragging is fine for rough placement. Typed values make edges line up exactly, for example every visual in a row at the same Vertical.

What units are the values?​

Pixels of the report page, the same as the page size in Canvas settings.

Conclusion​

Select the visual, Format > General > Properties, and type Height, Width, Horizontal and Vertical, pressing Enter after each. The example's text box became 900 by 70 at 40, 940.

Additional Resources​