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: 44
  • pivot 2.PNG
    pivot 2.PNG
    5.5 KB · Views: 44
  • office version.PNG
    office version.PNG
    6 KB · Views: 45

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
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.
 
Upvote 0
Solution
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
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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