• # Creating a Spacer Column in a PowerPivot PivotTable

Mike Alexander has a great blog post on how to Add Column Spacing In A PivotTable. We can also accomplish the same thing through a PowerPivot solution, but using DAX. And in this case, DAX is even easier to use that the old method, taking one less step!

To start, go to the PowerPivot tab and choose:
• 2010: New Measure
• 2013+: Calculated Field --> New Calculated Field

The 2013 user interface is shown below:

As you can see, I called it "Spacer", and the formula is simply =BLANK()

From there it gets added to the PivotTable and already shows up as blank values.

At that point, I just went to one of the fields on the worksheet that said "Spacer", and entered 5 spaces into the cell. (Unfortunately, you can't name the measure/calculated field with a only spaces in the setup, or we wouldn't even have to do that!) Why 5? Well, it controls the width of the column when it's refreshed!

End result (with the blank column selected so you can see it):

I'm afraid that you must be logged in to comment or leave a testimonial. I wish it could be otherwise, but I'm trying to keep my site spam free for everyone's benefit. If you don't yet have an account it's completely free to sign up, and a very quick process. Simply click here to Register. Not only can you post a comment here, but it gives you full access to posts questions in our forum as well!

If you already have an account, and just haven't logged in yet, what are you waiting for? Login Now!

• ### Recent Forum Posts

#### Conditionally filling a table based on non-unique information from another table

Just for completeness, this would be an AND lookup:

=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(\$A\$1:\$A\$13)/((\$C\$1:\$C\$13="Production")*(\$D\$1:\$D\$13="Forward")),ROWS(\$1:1))),"")...

AliGW Yesterday, 03:35 PM

#### Conditionally filling a table based on non-unique information from another table

Yep, that did it! Thank you so much, it works amazing!...

Joecam Yesterday, 03:21 PM

#### Conditionally filling a table based on non-unique information from another table

Maybe this?

=IFERROR(INDEX(A:A,AGGREGATE(15,6,ROW(\$A\$1:\$A\$13)/((\$C\$1:\$C\$13="Production")+(\$C\$1:\$C\$13="Something Else")),ROWS(\$1:1))),"")...

AliGW Yesterday, 03:00 PM

#### Conditionally filling a table based on non-unique information from another table

That worked perfectly! Thank you!

What if column C had more options to choose from and I wanted to allow for multiple variables to be looked...

Joecam Yesterday, 02:55 PM

#### Conditionally filling a table based on non-unique information from another table

And there he was, gone, with not one word of thanks for the solution offered. What happened to good manners and common courtesy, I wonder?...

AliGW Yesterday, 02:32 PM