Show zero value but hide NA

K

KateB

I have a report that calculates the percentage compliance on various
questions and these are then charted in a bar chart. It could be that the
compliance is zero (i.e. not doing any of the required competencies), or it
may be that the section is not applicable. Therefore, the calculation will
return either NA (not applicable) or 0%. I want the data labels in the chart
to show 0% but not NA (which currently shows as 0%, but I also tried NA(),
#NA etc and the label shows that as its value). I've tried various things
but it either hides both or shows both.

Any suggestions please?

Kate
 
K

KateB

Sorry Luke, I hadn't had notification that anyone had replied!

Its just a simple bar chart. At the moment it has a custom format for the
labels of 0%;;; I didn't know if there was something similar for #NA.

Kate
 
J

Jon Peltier

The NA() trick only is relevant to line or XY charts. In a bar chart use
0, since a zero-height bar isn't visible. Your custom number format will
work just fine.

- Jon
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top