Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Omitting Zero Values from Chart

Status
Not open for further replies.

ProgressiveJL

IS-IT--Management
Jul 5, 2006
46
CA
Hi All,

Is it possible to set a condition for displaying items on a chart? (ie. omitting zero sum items from the x-axis)

If so, how?

Thanks in advance!
 
Let's say you are using a line chart, and that you are showing values on change of month with a separate line per year. First you would create a formula {@null} where you open a new formula and save and close it without adding anything to the formula area. Then create conditional formulas for the two lines:

//{@lastyear}:
if year({table.date}) = year(currentdate)-1 then {table.amt} else tonumber({@null})

//{@thisyear}:
if year({table.date}) = year(currentdate) then {table.amt} else tonumber({@null})

For the current year, the line will stop at the current month instead of dropping to zero.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top