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:

Name:  calfield.jpg
Views: 1662
Size:  50.4 KB

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):

Name:  pivot.jpg
Views: 1526
Size:  59.6 KB



Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Latest Posts