Skip to main content

Power BI

Needs Votes

Show true X, Y, Width, Height for visuals instead of approximations

Vote (1) Share
Anthony Flynn's profile image

Anthony Flynn on 04 Aug 2020 00:30:21

Currently, PowerBI displays incorrect X,Y, width and height co-ordinates, rounding to an integer.

This is an issue, as this location is easily moved to locations with non-integer values using the mouse, and in fact by default is usually not plased on an integer location.

For example, I created a new PowerBI file, and created a table with some dummy data. The table was placed using my mouse at:

x: 422.77904328018229
y: 279.90888382687928

The fact it was able to be placed in a sub-pixel location with a mouse is strange, but not the point of this issue.

When viewing in PowerBI desktop, it appeared to be at:

x: 423
y: 280

The consequence of this is that two items can appear to be in the same location when viewed using the PowerBI Desktop UI, but in fact are in different locations.

This causes issues when not manually setting the x and y co-ordinates using the UI, as it makes determining if two visuals are level or at the same location impossible using the UI.

This has caused issues in the past, where lines of buttons appearing to have the same Y co-ordinate would mis-align when the report was scaled up.

There are two potential solutions:

Either expose the full x,y, width, height properties using the PowerBI Desktop UI, or "snap" these properties to their closest integer values.

If there is a seperate location for bugs, I am happy to post this there instead.