Add a custom on column to Pivot Table

T_Bos

New Member
Joined
Nov 29, 2020
Messages
15
Office Version
  1. 365
Platform
  1. Windows
Hello Community,

I have an annoying issue that I need help with. From the table below, I want to check a column I and if there is no Late record, I want to add a column to my pivot table that shows 0 for each month. How can I achieve this?

1609555892804.png


1609555982829.png
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Maybe you can fool your pivot like this.

  1. In the settings choose "Max" from the drop down to retain items deleted from the data source.

    1609594378227.png
  2. While you are in the settings, on the Layout & Format tab, check this option
    1609594862270.png

  3. And set the field settings to show items with no data

    1609594736026.png
  4. Then add a dummy line to your data, including a "late" label.
  5. Refresh your pivot.
  6. Delete the dummy line.
  7. Refresh again.
 

Attachments

  • 1609594849808.png
    1609594849808.png
    1.4 KB · Views: 3
Upvote 0
Maybe you can fool your pivot like this.

  1. In the settings choose "Max" from the drop down to retain items deleted from the data source.

    View attachment 28935
  2. While you are in the settings, on the Layout & Format tab, check this option
    View attachment 28938
  3. And set the field settings to show items with no data

    View attachment 28936
  4. Then add a dummy line to your data, including a "late" label.
  5. Refresh your pivot.
  6. Delete the dummy line.
  7. Refresh again.
Thank you very much. This did the trick but it creates a blank column heading and I can't seem to change the name to "Late." It also creates a row name blank that I cant seem to delete. See below.

1609633122586.png
 
Upvote 0
Maybe you can fool your pivot like this.

  1. In the settings choose "Max" from the drop down to retain items deleted from the data source.

    View attachment 28935
  2. While you are in the settings, on the Layout & Format tab, check this option
    View attachment 28938
  3. And set the field settings to show items with no data

    View attachment 28936
  4. Then add a dummy line to your data, including a "late" label.
  5. Refresh your pivot.
  6. Delete the dummy line.
  7. Refresh again.
I tried a different way. One thing I noticed is that the "Show items with no data" is greyed out and I can't make a selection. The Late column disappears when I delete the dummy line but you can see the label in the field list.

1609636739238.png


After creating the dummy line and refresh:
1609636924991.png


After deleting the dummy line and refresh:
1609636760918.png
 
Upvote 0
Hi again,

It does work, but you need to follow exactly as I pointed out
- Items with no data is on the field settings, not the pivot settings
- (Blank), you can either filter out as it is the result of the fake row or change existing rows and after the refresh change them back and refresh again
1609667983313.png


Alternative is
- converting the range to a table
- then create the pivot
- change/add rows to have all labels
- refresh the pivot
- Change back/delete the "dummy" rows
- refresh again

1609668371728.png
 
Upvote 0
Hi again,

It does work, but you need to follow exactly as I pointed out
- Items with no data is on the field settings, not the pivot settings
- (Blank), you can either filter out as it is the result of the fake row or change existing rows and after the refresh change them back and refresh again
View attachment 28993

Alternative is
- converting the range to a table
- then create the pivot
- change/add rows to have all labels
- refresh the pivot
- Change back/delete the "dummy" rows
- refresh again

View attachment 28994
Super! It finally worked for me. Thank you very much for this trick.
 
Upvote 0
Glad to read it works out. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,987
Messages
6,122,613
Members
449,090
Latest member
vivek chauhan

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top