How to standardize column widths in a Table Visual

Welcome to the post about standardizing column widths in a Power BI Table Visual.

Power BI is over a decade old, yet the developer team only just got around to giving us the ability to make all the column widths the same in a table visual. People that design with Power BI have been asking for this functionality for just about as long as Power BI has existed. So have faith.. Microsoft WILL listen to its users to add basic functionality to a table visual, but it’ll take over 10 years

Let’s explore how to implement it.

If you want to use the same Power BI file I use in the video below (and the screenshots in the written summary below), here’s the pbix file to download. You can also click the graphic below to get it.

Video Instructions:

Written Instructions:

We’re starting off with just a basic Power BI file that has a table visual already built (if you’re looking for posts on how to make and format a table visual or even how to hide/show columns in a table, I got you!).

It’s really evident that our columns are different widths in the above screenshot, and if we had longer region names or longer state names, those columns would stretch out even wider, because Power BI has a default “auto-fit” setting for column widths.

If you want all your columns to be the same width, there was NO setting to do this in Power BI until very recently. There ARE hacks to make it happen, but they are a ton of work and hassle for something which SHOULD be possible to do with one click.

But now, that one-click option is essentially here. Let me show you where it is.

With your table visual selected, we’re going to go into the Visual Formatting options in the Visualizations Pane and find the Layout section.

You can see that the default Column width “auto-size behavior” setting is “Fit to content”.

We’re gonna change that selection to “Fixed Width”, which changes that Layout section considerably. It pops open a “Default width” option where we can enter the number of pixels we want our columns to all be, but it also opens up a “Custom widths” section (which is turned on by default) where we can control the width of each and every one of our columns.

However, because Microsoft never seems to think about how people actually use their products, we can NOT make all our columns the same width with that “Custom widths” on/off switch turned on (which we didn’t turn on… Power BI turned it on when we selected “Fixed width”. So annoying Microsoft.

So, keep it on if you want to manually control how wide each column is, but if you want to standardize the width across ALL of your columns, turn it off. Turning it off makes the per-column settings disappear.

Also, when we turned it off, a standard width of 90 px (the default number for some reason) gets applied to our table.

We can now tweak our standardized column width to better fit our content, especially our Region and State data, which is being wrapped, mid-word (again, ugh…) when it’s too long to fit.

Nice and easy, right? Finally, we can do this easily.

Take care everyone,

Joe.

Like these posts but need more formal (but still engaging and fun) training in Power BI? Contact me, Joe Travers or at joe@traversdata.com. I got you.

Contact Joe | TraversData.com | People-Friendly Power BI | LinkedIn