Show 0 for Line chart when no data

fparker61

New Member
Joined
Apr 26, 2017
Messages
31
I have a line chart with monthly totals and when there is no data I want the line to be at zero. This isn't a case of blank cells, it is no data at all.
I am able to modify the pivot table settings to show 0 when no data and that works but only when there is another column that has data or if there is data in the last row with intermediate zeros.
In the case below, I want to report on 3 values that all are 0 in Feb-22. If I select other columns that have a value, the 0 is there, if not, it goes away.
Is there another setting I can use to show this? I am using the latest version of Excel.
 

Attachments

  • pivot 1.PNG
    pivot 1.PNG
    41.1 KB · Views: 4
  • pivot 2.PNG
    pivot 2.PNG
    5.5 KB · Views: 4
  • office version.PNG
    office version.PNG
    6 KB · Views: 4

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
39,339
Office Version
  1. 365
  2. 2019
  3. 2016
  4. 2010
Platform
  1. Windows
  2. MacOS
Try right-clicking the date field and then Field Settings, and on the Layout and Print tab, check the option to show items with no data.
 
Solution

fparker61

New Member
Joined
Apr 26, 2017
Messages
31
That worked but now I am getting all of 2022. I only want data up to my current date which right now is 2/22. My filter is only for months. It is on a date/time field. Maybe I can change that.

1649694451689.png
1649694560586.png
 

Forum statistics

Threads
1,176,169
Messages
5,901,737
Members
434,915
Latest member
MyLadysKnight

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
Top