Hide zeros in pivot graph

monaldo12

New Member
Joined
Mar 17, 2016
Messages
45
Hi,

I have a pivot which contains values with percentages, the source data contains formulas with zero outcomes, this will be updated automatically with every period new data arrives. So these zeros will always be in the source data.
Now I'm trying to make a graph of the pivot but it shows zeros and I would like to hide them in a line graph.
How can I make the orange line stop at week 11 and not show the zeros? Workaround with formulas besides the pivot is also fine.

graph zero.png
graph zero2.png
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.

Attachments

  • Schermafbeelding 2022-03-31 173849.png
    Schermafbeelding 2022-03-31 173849.png
    44.3 KB · Views: 4
Upvote 0
in your source for your pivottable, make the values with normally zero outcome an error-value with na()
Cell Formulas
RangeFormula
A2:A29A2=TRUNC(ROW()/5)
B2:B29B2=IF(A2<4,RAND(),NA())

Don't think I understand it correctly and doubt if it's what I'm searching for. My source data is like this.
This contains a formula which basically looks into a different file and returns the values. Empty cells are shown as zeros in the input file.
 

Attachments

  • graph zero3.png
    graph zero3.png
    6.7 KB · Views: 5
Upvote 0
suppose A are the values in another file, you check if there is a number in that other file, if not the result is na()
Map1
ABCD
1other workbook------>actual formulaimproved formula
2222
3333
4444
5555
6666
7777
8888
9999
100#N/B
110#N/B
120#N/B
130#N/B
140#N/B
150#N/B
160#N/B
170#N/B
180#N/B
190#N/B
Blad3
Cell Formulas
RangeFormula
C2:C19C2=+A2
D2:D19D2=IF(ISNUMBER(A2),A2,NA())
A2:A9A2=ROW()
 
Upvote 0
Solution
Upvote 0
you're welcome.
I see now you sum the values per week.
i didn't check but instead of na(), you can also use "-" (or another a character or string) and then you use the sum even for an incomplete week in your pivottable
 
Upvote 0

Forum statistics

Threads
1,214,875
Messages
6,122,046
Members
449,063
Latest member
ak94

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